Skip to content

Commit bda6c41

Browse files
committed
Add more PageModes
1 parent b8f07d6 commit bda6c41

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/structure.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ pub enum PageMode {
202202
UseThumbs,
203203
/// Show the document page in full screen mode, with no chrome.
204204
FullScreen,
205+
/// Show the optional content group panel. PDF 1.5+.
206+
UseOC,
207+
/// Show the attachments panel. PDF 1.6+.
208+
UseAttachments,
205209
}
206210

207211
impl PageMode {
@@ -211,6 +215,8 @@ impl PageMode {
211215
Self::UseOutlines => Name(b"UseOutlines"),
212216
Self::UseThumbs => Name(b"UseThumbs"),
213217
Self::FullScreen => Name(b"FullScreen"),
218+
Self::UseOC => Name(b"UseOC"),
219+
Self::UseAttachments => Name(b"UseAttachments"),
214220
}
215221
}
216222
}

0 commit comments

Comments
 (0)