PDF::FromHTML::TemplatePDF layout system | |
Download |
PDF::FromHTML::Template Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Rob Kinyon
- Publisher web site:
- http://search.cpan.org/~audreyt/
PDF::FromHTML::Template Tags
PDF::FromHTML::Template Description
PDF layout system PDF::FromHTML::Template is a PDF layout system that uses the same data structures as HTML::Template.SYNOPSIS use PDF::FromHTML::Template; my $pdf = PDF::FromHTML::Template->new({ file => 'some_template.xml', }); $pdf->param(%my_params); print "Content/type: application/pdf ", $pdf->get_buffer; $pdf->write_file('some_file.pdf');NOTE: This is a fork of PDF::Template 0.30, originally released by Rob Kinyon, but (as of September 11, 2006) currently not available on CPAN. Use of this module outside PDF::FromHTML is not advised.PDF::FromHTML::Template is a PDF layout system that uses the same data structures as HTML::Template.OVERVIEWUnlike HTML::Template, this is a full layout system. This means you will have to describe where each item will be on the page. (This is in contrast to HTML::Template, which adds on to HTML::Templateut is determined by the HTML, not HTML::Template.)PDF::FromHTML::Template uses an XML document as the template. However, the XML is not completely compliant. The only difference (that I'm aware of) is that any node can have any parameter. (This prevents the creation of a DTD.) The reason for this is to allow scoping by parents for parameters used by children. (More on this later.)Each node in the document corresponds to an object, with each parameter mapping (mostly) 1 to 1 to an object attribute. Parent-child relationships are strictly preserved. Each parent provides a scope (similar to variable scope) to its children. (This is why any node can have any parameter.) If a child needs the value of a parameter and it doesn't have that value as an attribute, it will ask its parent for the value. If the parent doesn't have it, it will ask its parent, and so on. Requirements: · Perl
PDF::FromHTML::Template Related Software