ssimms / pdfapi2

Create, modify, and examine PDF files in Perl
Other
15 stars 21 forks source link

Viewer preference non_full_screen_page_mode returns invalid value #50

Closed sciurius closed 2 years ago

sciurius commented 2 years ago

By default, PDF::API2 provides the value use_none for viewer preference non_full_screen_page_mode. However, this value is not understood by the viewer_prefrences method.

my $pdf = PDF::API2->new;
my %i = $pdf->viewer_preferences;
warn("viewer_preferences non_full_screen_page_mode = ",
     $i{non_full_screen_page_mode}, "\n");
$pdf->viewer_preferences(%i);
ssimms commented 2 years ago

viewer_preferences will now correctly return the same values that it accepts (minus the use_ prefix).