Skip to content

Commit

Permalink
Default page size to US Letter (8.5" x 11").
Browse files Browse the repository at this point in the history
  • Loading branch information
deven committed Nov 25, 2020
1 parent 70468f7 commit 4838aa8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/PDF/Data.pm
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ sub new {
sub add_page {
my ($self, $x, $y) = @_;

# Default page size to US Letter (8.5" x 11").
($x, $y) = (8.5, 11) if @_ == 1;

# Make sure page size was specified.
croak "Error: Paper size not specified!\n" unless $x and $y and $x > 0 and $y > 0;

Expand Down

0 comments on commit 4838aa8

Please sign in to comment.