Closed pr-apes closed 1 year ago
Perhaps the showbookmarks, showattachments etc. should be depreciated in favour of a generic command pagemode with the options "attachments", "layers" (or "oc"), "fullscreen", "thumbs" (can't test), "outlines" and "none" since these options are exclusive and for example showbookmarks="yes" and showattachments="yes" contradict.
@pgundlach,
/PageMode
allows: /UseNone
, /UseOutlines
, /UseThumbs
, /FullScreen
, /UseOC
and /UseAttachments
.
When using /PageMode /FullScreen
, there is also a /NonFullScreenPageMode
(in the /ViewerPreferences
dictionary), which also allows /UseNone
, /UseOutlines
, /UseThumbs
, /
and /UseOC
.
I don't think it makes sense to implement /NonFullScreenPageMode
and /UseOC
, at least. I cannot find that Publisher makes use of OCG.
displaymode
may be a good attribute name with values: bookmarks
, thumbnails
, fullscreen
and attachments
.
This would also remove showbookmarks
(which I think it shouldn't be be true by default [otherwise, it would impossible to use it for other values]).
Thanks. Closed with your fix.
Thank you for you improved code!
@pgundlach,
here you have partial implementation to have
<AttachFile showattachments="yes"/>
.I'm afraid in only replicated the code from
showbookmarks
. But I don't know what triggers it.I hope it might help.