Skip to content

Commit

Permalink
tweak PDF::API6::Preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarring committed Aug 20, 2023
1 parent 863307e commit 46cf7e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/PDF/API6/Preferences.rakumod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#| A flattened view of preferences, which are spread between the
#| catalog and catalog /ViewerPreferences.
class PDF::API6::Preferences {
use PDF::Catalog;
has PDF::Catalog $.catalog handles <OpenAction PageMode PageLayout>;
has PDF::Catalog:D $.catalog is required handles <OpenAction PageMode PageLayout>;
method ViewerPreferences handles <HideToolbar HideMenubar HideWindowUI FitWindow CenterWindow DisplayDocTitle Direction NonFullScreenPageMode after-fullscreen PrintScaling Duplex> {
$!catalog.ViewerPreferences //= {};
}
Expand Down

0 comments on commit 46cf7e7

Please sign in to comment.