CAM::PDF::Content 1.07 review

Download
by rbytes.net on

CAM::PDF::Content is a PDF page layout parser. SYNOPSIS use CAM::PDF; my $pdf = CAM::PDF->new($filename); m

License: Perl Artistic License
File size: 726K
Developer: Clotho Advanced Media Inc.
0 stars award from rbytes.net

CAM::PDF::Content is a PDF page layout parser.

SYNOPSIS

use CAM::PDF;
my $pdf = CAM::PDF->new($filename);

my $contentTree = $pdf->getPageContentTree(4);
$contentTree->validate() || die 'Syntax error';
print $contentTree->render('CAM::PDF::Render::Text');
$pdf->setPageContent(5, $contentTree->toString());

This class is used to manipulate the layout commands for a single page of PDF. The page content is passed as a scalar and parsed according to Adobe's PDF Reference 3rd edition (for PDF v1.4). All of the commands from Appendix A of that document are parsed and understood.
Much of the content object's functionality is wrapped up in renderers that can be applied to it. See the canonical renderer, CAM::PDF::GS, and the render() method below for more details.

What's New in This Release:
Perl

CAM::PDF::Content 1.07 search tags