mirror of https://github.com/JakubMelka/PDF4QT.git
Some minor bugfixing
This commit is contained in:
parent
326e5567f7
commit
87d4935489
|
@ -272,9 +272,12 @@ PDFDocument PDFDocumentReader::readFromBuffer(const QByteArray& buffer)
|
|||
};
|
||||
|
||||
// Now, we are ready to scan all objects
|
||||
progressStart(occupiedEntries.size(), PDFTranslationContext::tr("Reading contents of document..."));
|
||||
PDFExecutionPolicy::execute(PDFExecutionPolicy::Scope::Unknown, occupiedEntries.cbegin(), occupiedEntries.cend(), processEntry);
|
||||
progressFinish();
|
||||
if (!occupiedEntries.empty())
|
||||
{
|
||||
progressStart(occupiedEntries.size(), PDFTranslationContext::tr("Reading contents of document..."));
|
||||
PDFExecutionPolicy::execute(PDFExecutionPolicy::Scope::Unknown, occupiedEntries.cbegin(), occupiedEntries.cend(), processEntry);
|
||||
progressFinish();
|
||||
}
|
||||
|
||||
if (m_result != Result::OK)
|
||||
{
|
||||
|
|
|
@ -116,7 +116,7 @@ PDFSignature PDFSignature::parse(const PDFObjectStorage* storage, PDFObject obje
|
|||
result.m_byteRanges.push_back(byteRange);
|
||||
}
|
||||
|
||||
result.m_references = loader.readObjectList<PDFSignatureReference>(dictionary->get("References"));
|
||||
result.m_references = loader.readObjectList<PDFSignatureReference>(dictionary->get("Reference"));
|
||||
std::vector<PDFInteger> changes = loader.readIntegerArrayFromDictionary(dictionary, "Changes");
|
||||
|
||||
if (changes.size() == 3)
|
||||
|
|
Loading…
Reference in New Issue