mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Advanced page navigation
This commit is contained in:
@ -575,6 +575,11 @@ PDFViewerPreferences PDFViewerPreferences::parse(const PDFObject& catalogDiction
|
||||
throw PDFException(PDFTranslationContext::tr("Expected integer."));
|
||||
}
|
||||
}
|
||||
|
||||
// Enforce
|
||||
PDFDocumentDataLoaderDecorator loader(document);
|
||||
std::vector<QByteArray> enforce = loader.readNameArrayFromDictionary(viewerPreferencesDictionary, "Enforce");
|
||||
result.m_optionFlags.setFlag(EnforcePrintScaling, std::find(enforce.cbegin(), enforce.cend(), "PrintScaling") != enforce.cend());
|
||||
}
|
||||
else if (!viewerPreferencesObject.isNull())
|
||||
{
|
||||
|
Reference in New Issue
Block a user