mirror of https://github.com/JakubMelka/PDF4QT.git
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"));
|
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
|
else
|
||||||
{
|
{
|
||||||
throw PDFException(tr("Bad format of document info entry in trailer dictionary. Trapping information expected"));
|
throw PDFException(tr("Bad format of document info entry in trailer dictionary. Trapping information expected"));
|
||||||
|
|
Loading…
Reference in New Issue