mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Dictionary optimalization
This commit is contained in:
@ -537,7 +537,7 @@ bool PDFOptimizer::performRecompressFlateStreams()
|
||||
{
|
||||
bytesSaved += currentBytesSaved;
|
||||
PDFDictionary updatedDictionary = *dictionary;
|
||||
updatedDictionary.setEntry("Length", PDFObject::createInteger(recompressedData.size()));
|
||||
updatedDictionary.setEntry(PDFInplaceOrMemoryString("Length"), PDFObject::createInteger(recompressedData.size()));
|
||||
entry.object = PDFObject::createStream(std::make_shared<PDFStream>(qMove(updatedDictionary), qMove(recompressedData)));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user