| PDF-FromHTML documentation | Contained in the PDF-FromHTML distribution. |
PDF::FromHTML::Template::Container::Footer
To provide footer text and to specify where the footer starts, for looping.
FOOTER
PDF::FromHTML::Template::Container::Margin
None
Indicates to LOOP tags where to pagebreak.
None
<pagedef>
... Stuff here ...
<footer footer_height="1i">
... Children here will render on every page ...
</footer>
</pagedef>
Rob Kinyon (rkinyon@columbus.rr.com)
ALWAYS, HEADER, LOOP
| PDF-FromHTML documentation | Contained in the PDF-FromHTML distribution. |
package PDF::FromHTML::Template::Container::Footer; use strict; BEGIN { use vars qw(@ISA); @ISA = qw(PDF::FromHTML::Template::Container::Margin); use PDF::FromHTML::Template::Container::Margin; } sub enter_scope { my $self = shift; my ($context) = @_; $self->SUPER::enter_scope($context); @{$self}{qw/OLD_X OLD_Y/} = map { $context->get($self, $_) } qw(X Y); $context->{X} = 0; $context->{Y} = $context->get($self, 'FOOTER_HEIGHT'); return 1; } 1; __END__