We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a25d60 commit 22e39a3Copy full SHA for 22e39a3
src/structure.rs
@@ -290,6 +290,14 @@ impl<'a> ViewerPreferences<'a> {
290
self
291
}
292
293
+ /// Write the `/DisplayDocTitle` attribute to set whether the viewer should
294
+ /// display the document's title from the `Title` entry as the window's title.
295
+ /// PDF 1.4+
296
+ pub fn display_doc_title(&mut self, display: bool) -> &mut Self {
297
+ self.pair(Name(b"DisplayDocTitle"), display);
298
+ self
299
+ }
300
+
301
/// Write the `/NonFullScreenPageMode` attribute to set which chrome
302
/// elements the viewer should show for a document which requests full
303
/// screen rendering in its catalog when it is not shown in full screen
0 commit comments