Main > Free Download Search >

Free api2 software for linux

api2

Sponsored Links
Sponsored Links
Sort by >> Relevance
rss
Secleted [ 0 ] software to compare
Results 1 - 15 of about 5
PDF::API2 0.53

PDF::API2 0.53


PDF::API2 is The Next Generation of Text::PDF::API, a Perl module-chain that facilitates the creation PDF files. more>>
PDF::API2 is The Next Generation of Text::PDF::API, a Perl module-chain that facilitates the creation and modification of PDF files.
It features support for the 14 base PDF Core Fonts, TrueType fonts, and Adobe-Type1, with unicode mappings, embedding of bitmap images, compression via zlib, and a rich object-oriented API.
Main features:
- Works with more than one PDF file open at once
- It presents a object-oriented API to the user
- Modification of existing PDF Documents
- Import Pages from existing PDF Documents
- the 14 base PDF Core Fonts
- a subset of the base PDF CJK Fonts
- a subset of the Microsoft Webfonts (not embedded)
- Adobe-Type1 Fonts in both ascii and binary format (.pfa/pfb)
- TrueType fonts (.ttf)
- OpenType Fonts with TrueType Outlines (.ttf)
- OpenType Fonts with Postscript Outlines (.otf)
- Joint Photographics Experts Group images (.jpeg)
- Portable Network Graphics images (.png)
- Graphics Interchange Format images (.gif)
- Tagged Image File Format images (.tiff)
- Portable AnyMap images (.pbm/pgm/ppm)
<<less
Download (MB)
Added: 2006-07-08 License: Artistic License Price:
1210 downloads
PDF::API2::Simple 1.1.2

PDF::API2::Simple 1.1.2


PDF::API2::Simple is a simplistic wrapper for the excellent PDF::API2 modules. more>>
PDF::API2::Simple is a simplistic wrapper for the excellent PDF::API2 modules.

SYNOPSIS

use PDF::API2::Simple;

my $pdf = PDF::API2::Simple->new(
file => output.pdf
);

$pdf->add_font(VerdanaBold);
$pdf->add_font(Verdana);
$pdf->add_page();

$pdf->link( http://search.cpan.org, A Hyperlink,
x => 350,
y => $pdf->height - 150 );

for (my $i = 0; $i < 250; $i++) {
my $text = "$i - All work and no play makes Jack a dull boy";

$pdf->text($text, autoflow => on);
}

$pdf->save();

Take note that PDF coordinates are not quite what youre used to. The coordinate, (0, 0) for instance is at the lower-left hand corner. Thus, x still grows to the right, but y grows towards the top.

METHODS

new
PDF::API2::Simple->new(
file => output.txt,
width => 612,
height => 792,
line_height => 10,
margin_left => 20,
margin_top => 20,
margin_right => 20,
margin_bottom => 50,
width_right => 0,
height_bottom => 0,
effective_width => 0,
effective_height => 0,
header => undef,
footer => undef,
);

Creates a new PDF::API2::Simple instance. A good strategy is to create a new object for each pdf file you want to create. That is, of course, up to you.

file - The PDF file you want to write to. No default, parameter required

width - The width of the PDF file. Defaults to 612, the 8 1/2 x 11 US Letter width

height - The height of the PDF file. Defaults to 792, the 8 1/2 x 11 US Letter height

line_height - The standard height you want to define for lines. The default is 10

margin_left - The amount of margin space you want on the left side. Of course, you can specify whatever coordniates you want. Default is 20

margin_top - The amount of margin space you want on the top of each page. Default is 20

margin_right - The amount of margin space you want of the right side of each page. Default is 20

margin_bottom - The amount of margin space you want on the bottom of each page. Default is 50

width_right - A convenience property that contains the furthest x of the page, accounting for the margins specified

height_bottom - A convenience property that contains the largest y of the page, accounting for the bottom margin

effective_width - A convenience property that contains the width of the page, after the left and right margin have been accounted for

effective_height - A convenience property that contains the height of the page, after the top and bottom margin have been accounted for

header - This CODE reference will be called everytime a page is appended to the PDF, allowing you to specifiy a header for your pages

footer - This CODE reference will be called everytime a page is ended, allowing you to specifiy a footer for your pages

open
PDF::API2::Simple->open(
open_file => my_pdf.pdf,
open_page => 1, # Default is 1.
# Any other options to new.
);

This method opens an existing PDF for editing. You can include any other arguments that are valid for new and they will be set in the resulting object.

<<less
Download (0.030MB)
Added: 2007-06-12 License: Public Domain Price:
868 downloads
a2pdf 1.13

a2pdf 1.13


a2pdf project converts ASCII text to PDF format, with optional line/page numbering and Perl syntax highlighting. more>>
a2pdf project converts ASCII text to PDF format, with optional line/page numbering and Perl syntax highlighting.

Usage:

a2pdf [options] input.txt >output.pdf

Options:

a2pdf recognises the following command line options:

--help
Prints usage details and exits.

--doc
Displays full documentation and exits.

--version
Prints version number and exits.

--title
Sets the title to be included in the page header. If unspecified, the title will default to the name of the file which is being converted, or to STDIN if a2pdf is processing from standard input.

--timestamp
Boolean option - if set, the timestamp of the file to be converted will be included in the page header. This option is turned off by default.

--icon
Path to an image file which will be included as part of the header in the top left of each page. Image files may be in any format supported by PDF::API2.

--icon-scale
Scaling value for icon images, default is 0.25.

--header | --noheader | --notitle
Prints a header consististing of the page title, and optionally the timestamp and an image icon at the top of each page. This option is enabled by default, use "--notitle" or "--noheader" to disable.

--footer | --nofooter | --page-numbers | --nopage_numbers
Adds the current page number to the bottom of each page. This is enabled by default, use --nofooter or --nopage-numbers to disable.

--line-numbers | --noline-numbers
By default, line numbers will be included in the output PDF file. To disable this behaviour, use the --noline-numbers option.

--perl-syntax | --noperl-syntax
Enables or disables (default is enabled) Perl syntax highlighting. This feature requires that the Perl::Tidy module is installed.

--page-height
Page height in points. Default is 842 (A4).

--page-width
Page with in points. Default is 595 (A4).

--margins
--left-margin
--right-margin
--top-margin
--bottom-margin
Specifies the non-printable area of the page. The margin option will set all margins to the same value, however individual margins may be altered with the appropriate options. Values must be given in points. The default value for all margins is 48 points (0.75").

--font-face
Sets the font to use for the PDF file - currently this must be one of the PDF core fonts. The default font face is Courier.

--font-size
Font size in points, default value is 10.

--line-spacing
Line spacing in points, default value is the font size + 2.

--noformfeed
By default, any formfeed characters in the input stream will be processed and will act as expected, i.e. a new page will be started in the output PDF file. This can be disabled with the "--noformfeed" option which will cause all formfeed characters to be ignored.

Options may be given in any format recognised by the Getopt::Long Perl module, e.g. --name=value or --name value. Option names may be abbreviated to their shortest unique value.

If the input filename is not given, then a2pdf will expect to receive input from STDIN.

<<less
Download (2.7MB)
Added: 2007-05-11 License: Artistic License Price:
897 downloads
PDF::Table 0.91

PDF::Table 0.91


PDF::Table is a utility class for building table layouts in a PDF::API2 object. more>>
PDF::Table is a utility class for building table layouts in a PDF::API2 object.

SYNOPSIS

use PDF::API2;
use PDF::Table;

my $pdftable = new PDF::Table;
my $pdf = new PDF::API2(-file => "table_of_lorem.pdf");
my $page = $pdf->page;

# some data to layout
my $some_data =[
["1 Lorem ipsum dolor",
"Donec odio neque, faucibus vel",
"consequat quis, tincidunt vel, felis."],
["Nulla euismod sem eget neque.",
"Donec odio neque",
"Sed eu velit."],
... and so on
];

# build the table layout
$pdftable->table(
# required params
$pdf,
$page,
$some_data,
x => $left_edge_of_table,
w => 570,
start_y => 500,
next_y => 700,
start_h => 300,
next_h => 500,
# some optional params
padding => 5,
padding_right => 10,
background_color_odd => "gray",
background_color_even => "lightblue", #cell background color for even rows
);

# do other stuff with $pdf
...

This class is a utility for use with the PDF::API2 module from CPAN. It can be used to display text data in a table layout within the PDF. The text data must be in a 2d array (such as returned by a DBI statement handle fetchall_arrayref() call). The PDF::Table will automatically add as many new pages as necessary to display all of the data.

Various layout properties, such as font, font size, and cell padding and background color can be specified for each column and/or for even/odd rows. Also a (non)repeated header row with different layout properties can be specified.
See the METHODS section for complete documentation of every parameter.

<<less
Download (0.011MB)
Added: 2006-09-20 License: Perl Artistic License Price:
1140 downloads
REXML 3.1.5

REXML 3.1.5


REXML is a conformant XML processor for the Ruby programming language. more>>
REXML is a conformant XML processor for the Ruby programming language. REXML passes 100% of the Oasis non-validating tests and includes full XPath support.
REXML is reasonably fast, and is implemented in pure Ruby. Best of all, it has a clean, intuitive API. REXML is included in the standard library of Ruby.
This software is distribute under the Ruby license.
REXML arose out of a desire for a straightforward XML API, and is an attempt at an API that doesnt require constant referencing of documentation to do common tasks. "Keep the common case simple, and the uncommon, possible."
REXML avoids The DOM API, which violates the maxim of simplicity. It does provide a DOM model, but one that is Ruby-ized. It is an XML API oriented for Ruby programmers, not for XML programmers coming from Java.
Some of the common differences are that the Ruby API relies on block enumerations, rather than iterators. For example, the Java code:
for (Enumeration e=parent.getChildren(); e.hasMoreElements(); ) {
Element child = (Element)e.nextElement(); // Do something with child
}
in Ruby becomes:
parent.each_child{ |child| # Do something with child }
Cant you feel the peace and contentment in this block of code? Ruby is the language Buddha would have programmed in.
One last thing. If you use and like this software, and youre in a position of power in a company in Western Europe and are looking for a software architect or developer, drop me a line. I took a lot of French classes in college (all of which Ive forgotten), and I lived in Munich long enough that I was pretty fluent by the time I left, and Id love to get back over there.
Main features:
- Four intuitive parsing APIs.
- Intuitive, powerful, and reasonably fast tree parsing API (a-la DOM
- Fast stream parsing API (a-la SAX)1
- SAX2-based API2
- Pull parsing API.
- Small
- Reasonably fast (for interpreted code)
- Native Ruby
- Full XPath support3
- XML 1.0 conformant4
- ISO-8859-1, UNILE, UTF-16 and UTF-8 input and output; also, support for any encoding the iconv supports.
- Documentation
Enhancements:
- Bugfixes and a couple of feature requests were made.
<<less
Download (0.51MB)
Added: 2006-09-11 License: Other/Proprietary License Price:
1138 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 1
  • 1