| PDF-FromHTML documentation | Contained in the PDF-FromHTML distribution. |
PDF::FromHTML::Template::Container::Header
To provide header text and to specify where the header starts, for looping.
HEADER
PDF::FromHTML::Template::Container::Margin
None
Indicates to the PAGEDEF tag where all children may start rendering.
None
<pagedef>
<header header_height="1i">
... Children here will render on every page ...
</header>
... Stuff here ...
</pagedef>
Rob Kinyon (rkinyon@columbus.rr.com)
ALWAYS, FOOTER, PAGEDEF
| PDF-FromHTML documentation | Contained in the PDF-FromHTML distribution. |
package PDF::FromHTML::Template::Container::Header; 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, 'PAGE_HEIGHT'); return 1; } 1; __END__