Visitor for performance measures

This commit is contained in:
Jakub Melka
2018-12-01 11:36:07 +01:00
parent 670a260265
commit 26a2a8deb5
10 changed files with 529 additions and 15 deletions

View File

@ -260,6 +260,9 @@ PDFDocument PDFDocumentReader::readFromBuffer(const QByteArray& buffer)
// Now, we are ready to scan all objects
std::for_each(std::execution::parallel_policy(), occupiedEntries.cbegin(), occupiedEntries.cend(), processEntry);
PDFObjectStorage storage(std::move(objects), PDFObject(xrefTable.getTrailerDictionary()));
return PDFDocument(std::move(storage));
}
catch (PDFParserException parserException)
{