THotPDF Methods

 

THotPDF Methods

 

Top 

 

Create

Destroy

BeginDoc

EndDoc

AddImage

AddPage

EnablePubKeyEncryption

AddPubKeyRecipient

AddPubKeyRecipientCertificate / AddPubKeyAgreementRecipient

InsertSignatureHexAt / RenewPAdESLTATimestamp

Utility methods

Font fallback and glyph diagnostics

SetFontFallbackChain / ResolveFontForCodePoint / AnalyzeUnresolvedGlyphs

GetVerticalGlyphMetrics / SetVerticalDefaultMetrics

Advanced workflow helpers and runtime flags

Advanced workflow methods

PDF MAC: AddStandalonePDFMAC adds a standalone authentication code, SignPDFWithPFXAndAttachedPDFMAC creates a signature-attached authenticated revision, ValidatePDFMAC verifies the active revision, and ValidatePDFMACChain verifies every incremental revision and reports the exact failure

RSA-PSS signing / PDF Portfolio collections / reading-order diagnostics

SetPageLabel

SetDecimalPageLabel

SetUpperRomanPageLabel

SetLowerRomanPageLabel

SetUpperLettersPageLabel

SetLowerLettersPageLabel

ClearPageLabels

SetDocumentCloseAction

ClearDocumentCloseAction

SetDocumentWillSaveAction

ClearDocumentWillSaveAction

SetDocumentDidSaveAction

ClearDocumentDidSaveAction

SetDocumentWillPrintAction

ClearDocumentWillPrintAction

SetDocumentDidPrintAction

ClearDocumentDidPrintAction

SetPageAdditionalAction

SetPageOpenAction

SetPageCloseAction

ClearPageAdditionalAction

ClearPageOpenAction

ClearPageCloseAction

RegisterArticleThread

Text shaping and font-output APIs: ShapingFeatures, SimpleLatinFonts, GSUB script/language, GSUB lookup, GPOS, Indic shaping, Tibetan/Mongolian/Syriac shaping, script shaping preprocess, subset and ToUnicode mapping

BeginIncrementalUpdate

MarkDirty

AddLoadedSignedSignatureField

SaveIncrementalUpdate

SaveIncrementalUpdateAuthenticated

GetIncrementalUpdateSourceInfo

GetLastIncrementalXRefRebuildInfo

DecryptLoadedDocument

SanitiseLoadedDocument

ApplyLoadedRedactions

FlattenLoadedPageTransparency

FlattenLoadedPageComplexGraphics

ScrubLoadedRedactionRemnants

AddEDIFACTSupplementaryFile

GetLoadedFacturXAttachments

GetLoadedInvoiceSummary

GetLoadedPDFAIssues

ValidateVisualXmlConsistency

AddUBLSupplementaryFile

ExtractLoadedPageGlyphs

ExtractLoadedPageCharacters

AnalyzeLoadedPageSemanticText

ExtractLoadedPageSemanticText

ExportLoadedPagesStructured

ExtractLoadedTypedTables

ExportLoadedTypedTables

GetImportedResourceDedupStatistics and ClearImportedResourceDedupCache

ExtractLoadedPageText

GetLoadedFontDecoder

GetLoadedFontDecoderCacheInfo

ResetLoadedFontDecoderCacheStatistics

GetLastJPEGReducedDecodeInfo

GetImageDecodeConcurrencyInfo

AcquireLoadedImageStream

AcquireLoadedImageRegionAtResolution

DecodeLoadedImageStreamCached

DecodeLoadedImageRegionAtResolutionCached

GetLoadedPageContentBytes

OpenLoadedPageContentStream

GetLastPageContentSequenceInfo

RenderLoadedPageToBitmap

ReplaceLoadedDocumentText

ReplaceLoadedPageText

SearchLoadedDocumentText

SearchLoadedPageText

WriteRebuiltStream

ExportLoadedFormToXFDF

ImportLoadedFormFromXFDF

ExportLoadedAnnotationsToXFDF

ImportLoadedAnnotationsFromXFDF

Direct File API: DAOpenFileReadOnly, DACloseFile, DACopyFile, DASaveAsFile, DAGetPageCount, DAGetObjectCount, DAGetObjectSource, DAReplaceObjectSource, DAAppendObjectSource, DASetDocumentInfo, DATryBuildTraditionalFileState, DAParseXRefStreamSection, DAReadCompressedObjectBody

Use the Direct File API for large existing PDFs that need file-backed opening, page-count plus original-copy workflows, object-source inspection or replacement, document-info updates, and full rewritten output without loading every stream into the normal object graph

The low-level Direct File helpers DATryBuildTraditionalFileState, DAParseXRefStreamSection, and DAReadCompressedObjectBody are available for stream-backed workflows that need to build THPDFDirectFileState, parse xref stream sections, or read an object body from an object stream before calling the higher-level DA* actions

ApplyStrictParserBudgetPolicy

ResetParserBudgetPolicy

GetLastParserBudgetStatistics

Preflight report methods

ExtractLoadedPageTextLayout

FindLoadedOutlineByTitle

FindLoadedSignatureFieldDict

GetLoadedOutlineTitlesDeep

GetLoadedSignatureFieldName

GetLoadedSignatureInfo

InvalidateRenderedPageCache

ReadLoadedSignatureDict

RenderLoadedPageToBitmapCached

GetLastOperationTelemetry

GetLastRenderFallbackDiagnostics

ClearLastRenderFallbackDiagnostics

RenderColourIntent

RenderFallbackPolicy

RenderFallbackDiagnosticLimit

LastRenderFallbackDroppedCount

ResolveLoadedOutlineDestPage

SaveAllLoadedEmbeddedFiles

SaveLoadedPageToPng

SaveLoadedPageToPngStream

SaveLoadedPagesToTiff

SaveLoadedPagesToTiffBanded

SaveLoadedPagesToTiffStream

SaveLoadedPagesToTiffStreamBanded

VerifyAllLoadedSignatures

VerifyLoadedSignature

VerifyLoadedSignatureEx

VerifyLoadedSignatureWithTrust

GetLoadedSignaturePermissions

AnalyzeLoadedSignatureRevisions

Page operation methods

FindLoadedBookmarkPageIndex

GetLoadedPageBox

Loaded form field methods

SetFormFieldTooltip

SetFormFieldAdditionalAction

ClearFormFieldAdditionalAction

SetFormFieldKeyStrokeAction

ClearFormFieldKeyStrokeAction

SetFormFieldFormatAction

ClearFormFieldFormatAction

SetFormFieldValidateAction

ClearFormFieldValidateAction

SetFormFieldCalculateAction

ClearFormFieldCalculateAction

SetFormFieldAnnotationAction

ClearFormFieldAnnotationAction

SetFormFieldMouseEnterAction

ClearFormFieldMouseEnterAction

SetFormFieldMouseExitAction

ClearFormFieldMouseExitAction

SetFormFieldMouseDownAction

ClearFormFieldMouseDownAction

SetFormFieldMouseUpAction

ClearFormFieldMouseUpAction

SetFormFieldSetFocusAction

ClearFormFieldSetFocusAction

SetFormFieldLostFocusAction

ClearFormFieldLostFocusAction

RegisterFormXObject

RegisterLineGraphicsState

RegisterOptionalContentRadioGroup

BeginOptionalContentOrderGroup

EndOptionalContentOrderGroup

AddLayerToOptionalContentOrder

SetOptionalContentGroupUsage

HPDFEscapeLoadedText

MakeLoadedContentsArray

EnsureUncompressedLoadedStream

HPDFEllipseToOps

ExtractLoadedPageTextColumns

SearchLoadedPageTextWholeWord

GetLoadedSearchHitRect

EnumLoadedPageElements

SearchAndRedactReplaceLoaded

GetLoadedPageTextInRegion

SearchLoadedFirst

SaveLoadedPagesAsImages

GetLoadedPageMetafile

RenderLoadedPageToDC

RenderLoadedPageToClipboard

PrintLoadedDocument

EnumerateSystemCertificates

GetLoadedTrapped

GetLoadedDocumentMetadataXML

GetLoadedCollectionInfo

GetLoadedCollectionSchemaFieldCount

GetLoadedCollectionSchemaFieldInfo

GetLoadedCollectionItemMetadata

GetLoadedOutlineChild

RotateLoadedPages

SetLoadedPageBoxForRange

TwipsToPoints

PointsToTwips

PixelsToPoints

PointsToPixels

ToPDFUnit

FromPDFUnit

AddLoadedOutline

SetLoadedOutlineDestination

SetLoadedOutlineURI

ResolveLoadedNamedDestination

AddLoadedNamedDestination

GetLoadedBookmarkPageIndex

GetLoadedPageCount

DuplicateLoadedPage

AddLoadedBlankPage

SetLoadedPageRotationValue

GetLoadedPageBoxRect

GetLoadedPageVisibleBox

GetLoadedEncryptionMethod

GetLoadedFileStructureInfo

GetLoadedXRefRecoveryInfo

SetLoadedPDFVersion

GetLoadedPageLabel

EnsureLoadedFieldAppearanceStream

RecalculateLoadedFormFields

EvaluateLoadedFieldJavaScript

FlattenLoadedFormFields

GetLoadedAnnotationAppearanceStream

Loaded RichMedia asset methods

GetLoadedRichMediaAssetCount

GetLoadedRichMediaAssetInfo

ExtractLoadedRichMediaAsset

SanitiseLoadedRichMediaAnnotations

ApplyLoadedFieldValidation

ApplyLoadedFieldCalculation

AddLoadedRubberStampAnnotation

SetLoadedAnnotationCloudyBorder

SetLoadedLineAnnotationCaps

AttachLoadedAnnotationMeasure

StitchLoadedPageSideBySideEx

StampLoadedPageText

StampLoadedPageShape

StampLoadedPagesText

StampLoadedPagesComposite

StampLoadedPageImage

InsertLoadedText

GetLoadedPageContentLength

StampLoadedPageImageFromFile

GetLoadedPageRotationValue

CompressLoadedDocument

ExtractLoadedImageToStream

OpenLoadedStreamSourceSlice

GetLoadedStreamFilterStatistics

OptimizeLoadedStreams

CompressFlateHighRatio

Advanced text, document layout, streaming, pagination diagnostics, paragraph direction, and PDF/UA helpers

ConfigureParagraphPagination

ConfigureParagraphDirection

ConfigureParagraphTextLayout

DetectParagraphDirection

GetLayoutDiagnostics

BeginTaggedParagraph

BeginPaginationArtifact

GrowXRefIfNeeded