PDF::Parse - Library with parsing functions for PDF library
$version = $pdf->Version;
$bool = $pdf->IsaPDF;
$bool = $pdf->IscryptPDF;
$info = $pdf->GetInfo ($key);
$pagenum = $pdf->Pages;
@size = $pdf->PageSize ($page);
@size = $pdf->PageSize;
$rotation = $pdf->PageRotation ($page);
$rotation = $pdf->PageRotation;
The main purpose of the PDF::Parse library is to provide parsing functions for the more general PDF library.
The available methods are:
This method links the filename to the pdf descriptor and parses all kind of header information.
This function loads the information for all pages. This process can take some time for big PDF-files.
Returns the PDF version used for writing the object file.
Returns true, if the file could be parsed and is a PDF-file.
Returns true if the PDF contains a crypt object. This indicates that the data of the PDF-File is encrypted. In this case, not all function work as expected.
Returns the various information contained in the info section of a PDF file (if present). A PDF file can have:
a title ==> GetInfo ("Title")
a subject ==> GetInfo ("Subject")
an author ==> GetInfo("Author")
a creation date ==> GetInfo("CreationDate")
a creator ==> GetInfo("Creator")
a producer ==> GetInfo("Producer")
a modification date ==> GetInfo("ModDate")
some keywords ==> GetInfo("Keywords")
Returns the number of pages of the PDF-file.
Returns the size of a page in the PDF-file. If no parameter is given, the default size of the root page will be returned. This value may be overridden for any page.
If the size of an individual page is requested and the page data is not already loaded, the method LoadPageInfo will be executed. This may take some time for large PDF-files. The size of the root page is always available and will never execute LoadPageInfo.
Returns the rotation of a page in the PDF-file. If no parameter is given, the default rotation of the root page will be returned. This value may be overridden for any page.
If the rotation of an individual page is requested and the page data is not already loaded, the method LoadPageInfo will be executed. This may take some time for large PDF-files. The rotation of the root page is always available and will never execute LoadPageInfo.
The only available variable is :
Contains the version of the library installed
Copyright (c) 1998 - 2000 Antonio Rosella Italy firstname.lastname@example.org, Johannes Blach email@example.com
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The latest version of this library is likely to be available from:
To install PDF, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.