mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-01-30 00:55:12 +01:00
Bugfix: Some PDFs use bool for trapping
This commit is contained in:
parent
80e3dfbe1e
commit
bc0bc27b72
@ -187,6 +187,10 @@ void PDFDocument::initInfo()
|
||||
throw PDFException(tr("Bad format of document info entry in trailer dictionary. Trapping information expected"));
|
||||
}
|
||||
}
|
||||
else if (nameObject.isBool())
|
||||
{
|
||||
m_info.trapped = nameObject.getBool() ? Info::Trapped::True : Info::Trapped::False;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw PDFException(tr("Bad format of document info entry in trailer dictionary. Trapping information expected"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user