Thomas Drillich for the iso latin1 support Ross Moore ross ics. For more information on module installation, please visit the detailed CPAN module installation guide. The library is now splitted in 2 section : PDF::Core that contains the data structure, the constructor and low level access fuctions; PDF::Parse all kind of functions to parse the PDF-files and provide information about the content.
Check the help-files of these modules for more details. Copyright Copyright c - Antonio Rosella Italy antro tiscalinet. To install PDF, copy and paste the appropriate command in to your terminal. Fork metacpan. It is designed to be easy to use and simple to install and maintain.
It provides a couple of subroutines to handle text, fonts, images and drawing primitives. Simple documents are easy to create with the supplied routines. In addition to be reasonable simple PDF::Create is written in pure Perl and has no external dependencies libraries, other modules, etc. It should run on any platform where perl is available. In this case it might be better go with the more complete PDF::API2 modules to gain more features at the expense of a steeper learning curve.
It returns an object handle which can be used to add more stuff to the PDF. The parameter keys to the constructor are detailed as below:. Add a page to the document using the given parameters.
Returns a handle to the newly created page. Parameters can be:. Prepare a font using the given arguments. This font will be added to the document only if it is used at least once before the close method is called. Parameters are listed below:.
Adds an outline to the document using the given parameters. Return the newly created outline. Possible values are a0-a6, a4l,letter,broadsheet,ledger,tabloid,legal,executive and 36x Default is a4.
Close does the work of creating the PDF data from the objects collected before. You must call close after you have added all the contents as most of the real work building the PDF is performed there. If omit calling close you get no PDF output. Returns the raw content of the PDF. If fh was provided when creating object of PDF::Create then it does not try to close the file handle. It is, therefore, advised you call flush rather than close. Adds an annotation object, for the time being we only do the 'Link' - 'URI' kind This is a sensitive area in the PDF document where text annotations are shown or links launched.
URI links have two components,the text or graphics object and the area where the mouseclick should occur. For the object to be clicked on you'll use standard text of drawing methods. To define the click-sensitive area and the destination URI. The point x, y is the bottom left corner of the rectangle containing hotspot rectangle, w, h are the width and height of the hotspot rectangle.
The Border describes the thickness of the border surrounding the rectangle hotspot. Prepare an XObject image using the given arguments. This image will be added to the document if it is referenced at least once before the close method is called. Usage of interlaced GIFs are slower because they are decompressed, modified and compressed again.
Learn how your comment data is processed. Programmer Books. Software Development Perl. Modern Perl 4th edition. C and XML Primer. Learning Concurrent Programming in Scala, 2nd Edition. Essentials of Computer Architecture, 2nd Edition. Handbook of Big Data Technologies.
Please enter your comment!
0コメント