Skip to content

Commit

Permalink
Add more PageModes
Browse files Browse the repository at this point in the history
  • Loading branch information
reknih committed Sep 27, 2024
1 parent b8f07d6 commit bda6c41
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/structure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ pub enum PageMode {
UseThumbs,
/// Show the document page in full screen mode, with no chrome.
FullScreen,
/// Show the optional content group panel. PDF 1.5+.
UseOC,
/// Show the attachments panel. PDF 1.6+.
UseAttachments,
}

impl PageMode {
Expand All @@ -211,6 +215,8 @@ impl PageMode {
Self::UseOutlines => Name(b"UseOutlines"),
Self::UseThumbs => Name(b"UseThumbs"),
Self::FullScreen => Name(b"FullScreen"),
Self::UseOC => Name(b"UseOC"),
Self::UseAttachments => Name(b"UseAttachments"),
}
}
}
Expand Down

0 comments on commit bda6c41

Please sign in to comment.