Bugfix: Some PDFs use bool for trapping

This commit is contained in:
Jakub Melka 2020-07-09 16:27:21 +02:00
parent 80e3dfbe1e
commit bc0bc27b72
1 changed files with 4 additions and 0 deletions

View File

@ -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"));