THotPDF Advanced Workflow Methods

This page collects advanced public THotPDF methods that support loaded-document repair, file-backed rewriting, xref-stream parsing, conformance output, and shaping workflows

Prefer the task-focused pages such as page operation methods, loaded form field methods, utility methods, and ShapingFeatures for common application code

Loaded Document Resolution

Method Usage
DoPageOperationProgressSupports loaded-document resolution, form-field lookup, encryption metadata, or object-number bookkeeping in advanced workflows
ResolveLoadedObjectSupports loaded-document resolution, form-field lookup, encryption metadata, or object-number bookkeeping in advanced workflows
ResolveLoadedDictionarySupports loaded-document resolution, form-field lookup, encryption metadata, or object-number bookkeeping in advanced workflows
ResolveLoadedArraySupports loaded-document resolution, form-field lookup, encryption metadata, or object-number bookkeeping in advanced workflows
EnsureLoadedRootIndexSupports loaded-document resolution, form-field lookup, encryption metadata, or object-number bookkeeping in advanced workflows
MaterializeLazyStreamsSupports loaded-document resolution, form-field lookup, encryption metadata, or object-number bookkeeping in advanced workflows
FindLoadedFormFieldByIndexSupports loaded-document resolution, form-field lookup, encryption metadata, or object-number bookkeeping in advanced workflows
FindLoadedFormFieldByNameSupports loaded-document resolution, form-field lookup, encryption metadata, or object-number bookkeeping in advanced workflows
ConfigurePDFVersionSupports loaded-document resolution, form-field lookup, encryption metadata, or object-number bookkeeping in advanced workflows
RecoverReloadFEKFromBytesSupports loaded-document resolution, form-field lookup, encryption metadata, or object-number bookkeeping in advanced workflows
LoadedEncryptVersionSupports loaded-document resolution, form-field lookup, encryption metadata, or object-number bookkeeping in advanced workflows
IsObjStmMemberObjectSupports loaded-document resolution, form-field lookup, encryption metadata, or object-number bookkeeping in advanced workflows
SyncMaxObjNumFromLoadedObjectsSupports loaded-document resolution, form-field lookup, encryption metadata, or object-number bookkeeping in advanced workflows

Direct File State and Rewrite

Method Usage
ClearDirectFileStateSupports file-backed direct rewriting, AES-256 encryption or decryption, and object-source state handling
GetDirectFileIndexSupports file-backed direct rewriting, AES-256 encryption or decryption, and object-source state handling
DAFindReplacementIndexSupports file-backed direct rewriting, AES-256 encryption or decryption, and object-source state handling
DAReadObjectSourceSupports file-backed direct rewriting, AES-256 encryption or decryption, and object-source state handling
DAStoreObjectSourceSupports file-backed direct rewriting, AES-256 encryption or decryption, and object-source state handling
DAAppendObjectSourceInternalSupports file-backed direct rewriting, AES-256 encryption or decryption, and object-source state handling
DATryBuildCompressedFileStateSupports file-backed direct rewriting, AES-256 encryption or decryption, and object-source state handling
DADirectLoadObjectFromBodySupports file-backed direct rewriting, AES-256 encryption or decryption, and object-source state handling
DARecoverAES256FileKeySupports file-backed direct rewriting, AES-256 encryption or decryption, and object-source state handling
DADirectPrepareObjectForAES256EncryptSupports file-backed direct rewriting, AES-256 encryption or decryption, and object-source state handling
DADirectDecryptObjectAES256Supports file-backed direct rewriting, AES-256 encryption or decryption, and object-source state handling
DAWriteDirectAES256RewriteSupports file-backed direct rewriting, AES-256 encryption or decryption, and object-source state handling
DADirectEncryptFileAES256Supports file-backed direct rewriting, AES-256 encryption or decryption, and object-source state handling
DADirectDecryptFileAES256Supports file-backed direct rewriting, AES-256 encryption or decryption, and object-source state handling
DAWriteFullRewriteSupports file-backed direct rewriting, AES-256 encryption or decryption, and object-source state handling

XRef Stream and Object Parsing

Method Usage
LoadXRefStreamDocumentSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
LoadXRefStreamDocumentFromFileSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
LoadXRefStreamDocumentEncFromFileSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
XRefProbeObjCountSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
XRefProbeObjNumSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
XRefProbeCompactCountSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
XRefProbeType2MismatchesSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
XRefProbeObjHasKeySupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
XRefProbeObjNameValSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
XRefProbeCompactObjNumSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
XRefProbeType2EncryptedSkippedSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
XRefProbeCountReplacementCharsSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
XRefProbeObjStringValSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
XRefProbeDecryptObjStmSkipsSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
TryParseModernPDFSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
CreateBasicPageContentSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
CreatePDF16PageReferenceSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
CreateBasicResourcesSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
CreatePDF16ResourcesSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
ParseSimplePageObjectSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
ParseRealPageContentSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
ProcessObjectStreamsForDecompressionSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
ScanAndLoadReferencedObjectsSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
ForceLoadMissingReferencedObjectsSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
FindAllObjectStreamsSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
ExtractStreamParametersSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
ProcessFlateDecodeSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
AnalyzePageObjectSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
ExtendPageArrSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
ParseSimpleDictionarySupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
ParseSimpleArraySupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
ParseSimpleStreamSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
FindAndProcessObjectStreamSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
ExtractObjectFromStreamSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
ExtractRawObjectFromStreamSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
IsObjectInStreamSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
GetObjectFromStreamSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
ParseModernPageObjectSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
IntelligentDecompressSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
DecompressFlateDecodeSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
ParseObjectStreamSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
ReorderPageArrByPagesTreeSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
GetCorrectPageOrderFromPagesTreeSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
GetPageObjectIdSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
GetPageArrIndexForObjectNumberSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
ExtractNumericValueSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
ParseDecompressedObjectsSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
LoadCompressedXrefStreamSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
LoadObjectStreamsDirectlySupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
ParseXrefStreamDataSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files
ProcessObjectStreamObjectsSupports xref-stream and object-stream parsing, recovery, and diagnostics for modern PDF files

Conformance and Font Output

Method Usage
BuildAndApplyUnicodeFontSubsetSupports Unicode font-subset sharing and PDF/A, PDF/X, or PDF/UA conformance checks during output
EnsurePDFUATabsOnAnnotatedPagesSupports Unicode font-subset sharing and PDF/A, PDF/X, or PDF/UA conformance checks during output
EnsurePDFAOutputIntentSupports Unicode font-subset sharing and PDF/A, PDF/X, or PDF/UA conformance checks during output
EnsurePDFAColorSpaceConsistencySupports Unicode font-subset sharing and PDF/A, PDF/X, or PDF/UA conformance checks during output
EmitDocumentDefaultColorSpacesSupports Unicode font-subset sharing and PDF/A, PDF/X, or PDF/UA conformance checks during output
EnsurePDFXOutputIntentSupports Unicode font-subset sharing and PDF/A, PDF/X, or PDF/UA conformance checks during output
EnsurePDFXPageBoxesSupports Unicode font-subset sharing and PDF/A, PDF/X, or PDF/UA conformance checks during output

Advanced Shaping Helpers

Method Usage
ApplyArabicGSUBPositionalSupports advanced GSUB shaping, glyph mapping, and synthetic-codepoint workflows before text emission
ArabicGSUBShapeToGIDsSupports advanced GSUB shaping, glyph mapping, and synthetic-codepoint workflows before text emission
ApplyArabicGSUBNativeShapingSupports advanced GSUB shaping, glyph mapping, and synthetic-codepoint workflows before text emission
ApplyLatinLigatureFeatureSupports advanced GSUB shaping, glyph mapping, and synthetic-codepoint workflows before text emission
ApplyLatinSingleSubstitutionFeatureSupports advanced GSUB shaping, glyph mapping, and synthetic-codepoint workflows before text emission
ApplyLatinFractionFeatureSupports advanced GSUB shaping, glyph mapping, and synthetic-codepoint workflows before text emission
ApplyArabicGSUBRefinementSupports advanced GSUB shaping, glyph mapping, and synthetic-codepoint workflows before text emission

See also