PDF::FromHTML::Template::Container::Footer - PDF::FromHTML::Template::Container::Footer documentation


PDF-FromHTML documentation Contained in the PDF-FromHTML distribution.

Index


Code Index:

NAME

Top

PDF::FromHTML::Template::Container::Footer

PURPOSE

Top

To provide footer text and to specify where the footer starts, for looping.

NODE NAME

Top

FOOTER

INHERITANCE

Top

PDF::FromHTML::Template::Container::Margin

ATTRIBUTES

Top

CHILDREN

Top

None

AFFECTS

Top

Indicates to LOOP tags where to pagebreak.

DEPENDENCIES

Top

None

USAGE

Top

  <pagedef>
    ... Stuff here ...
    <footer footer_height="1i">
      ... Children here will render on every page ...
    </footer>
  </pagedef>

AUTHOR

Top

Rob Kinyon (rkinyon@columbus.rr.com)

SEE ALSO

Top

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__