Skip to content

Commit 5407f93

Browse files
authored
pdf backend: Ignore FullScreen PageMode catalog entry (#633)
Prior to this change, Xreader would open in full screen mode if a PDF had the PageMode entry in its catalog dictionary set to FullScreen. As this behavior is generally unwanted by the consumer of a PDF document, this entry is now ignored.
1 parent 1cde192 commit 5407f93

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

backend/pdf/ev-poppler.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,9 @@ pdf_document_get_info (EvDocument *document)
725725
info->mode = EV_DOCUMENT_MODE_USE_OC;
726726
break;
727727
case POPPLER_PAGE_MODE_FULL_SCREEN:
728-
info->mode = EV_DOCUMENT_MODE_FULL_SCREEN;
728+
// Ignore full screen page mode, since automatically opening
729+
// in full screen mode is generally unwanted behavior
730+
//info->mode = EV_DOCUMENT_MODE_FULL_SCREEN;
729731
break;
730732
case POPPLER_PAGE_MODE_USE_ATTACHMENTS:
731733
info->mode = EV_DOCUMENT_MODE_USE_ATTACHMENTS;

0 commit comments

Comments
 (0)