THotPDF.DecompressAllObjectStreams Method
Forces a loaded PDF that used /Type /ObjStm containers to be saved through HotPDF's normal object writer, with compact objects emitted as regular indirect objects
Declaration
procedure DecompressAllObjectStreams;
Unit
HPDFDoc
Usage
- Call after
LoadFromFileorLoadFromStreamand beforeSaveLoadedDocumentwhen the output must not preserve the source object-stream layout - The method marks the compact objects materialized by the xref-stream loader as dirty, so
SaveLoadedDocumentperforms a full rewrite instead of using the unchanged-source copy path - The writer also prunes reloaded structural
/Type /ObjStmand/Type /XRefcontainers, so the saved file uses the normal cross-reference table unless the caller explicitly enables object-stream output again - Calling the method on a document without loaded compact objects is a no-op