| PDF-FromHTML documentation | Contained in the PDF-FromHTML distribution. |
PDF::FromHTML::Template::Element::HorizontalRule
To create a horizontal rule across the page
HR
PDF::FromHTML::Template::Element::Line
None
Nothing
None
<hr/>
That will create a line across the page at the current Y-position.
Rob Kinyon (rkinyon@columbus.rr.com)
LINE
| PDF-FromHTML documentation | Contained in the PDF-FromHTML distribution. |
package PDF::FromHTML::Template::Element::HorizontalRule; use strict; BEGIN { use vars qw(@ISA); @ISA = qw(PDF::FromHTML::Template::Element::Line); use PDF::FromHTML::Template::Element::Line; } sub deltas { my $self = shift; my ($context) = @_; my $y_shift = $self->{Y2} - $self->{Y1}; $y_shift = -1 * ($context->get($self, 'H') || 0) unless $y_shift; return { Y => $y_shift, }; } 1; __END__