mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Fixing bugs (uncolored tiling pattern should ignore colors), refactoring
This commit is contained in:
@ -101,7 +101,7 @@ void PDFDocument::initInfo()
|
||||
}
|
||||
else if (!stringObject.isNull())
|
||||
{
|
||||
throw PDFParserException(tr("Bad format of document info entry in trailer dictionary. String expected."));
|
||||
throw PDFException(tr("Bad format of document info entry in trailer dictionary. String expected."));
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -124,12 +124,12 @@ void PDFDocument::initInfo()
|
||||
|
||||
if (!fillEntry.isValid())
|
||||
{
|
||||
throw PDFParserException(tr("Bad format of document info entry in trailer dictionary. String with date time format expected."));
|
||||
throw PDFException(tr("Bad format of document info entry in trailer dictionary. String with date time format expected."));
|
||||
}
|
||||
}
|
||||
else if (!stringObject.isNull())
|
||||
{
|
||||
throw PDFParserException(tr("Bad format of document info entry in trailer dictionary. String with date time format expected."));
|
||||
throw PDFException(tr("Bad format of document info entry in trailer dictionary. String with date time format expected."));
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -156,18 +156,18 @@ void PDFDocument::initInfo()
|
||||
}
|
||||
else
|
||||
{
|
||||
throw PDFParserException(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
|
||||
{
|
||||
throw PDFParserException(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 (!info.isNull()) // Info may be invalid...
|
||||
{
|
||||
throw PDFParserException(tr("Bad format of document info entry in trailer dictionary."));
|
||||
throw PDFException(tr("Bad format of document info entry in trailer dictionary."));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user