PdfDocumentInfo
OfficeIMO.Pdf
Basic document-level information useful for inspection and automation scenarios.
Inheritance
- object
- PdfDocumentInfo
Usage
Explore 10 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 10
- Property PdfAnalysisReport.Info
- Property PdfConversionProofReport.DocumentInfo
- Property PdfDiagnosticReport.Info
- Method PdfDocument.Inspect
- Property PdfDocumentPreflight.DocumentInfo
- Property PdfDocumentViewInfo.LogicalContent
- Property PdfInspectionReadResult.SourceInfo
- Property PdfRewritePreservationReport.Original
- Property PdfRewritePreservationReport.Rewritten
- Property PdfValidationResult.DocumentInfo
Methods
public IReadOnlyList<PdfAnnotation> GetAnnotationsByActionType(string actionType) #Returns generic page annotations with a matching primary or additional action type.
Parameters
- actionType string
Returns
IReadOnlyList<PdfAnnotation>public IReadOnlyList<PdfAnnotation> GetAnnotationsBySubtype(string subtype) #Returns generic page annotations with a matching PDF annotation subtype name.
Parameters
- subtype string
Returns
IReadOnlyList<PdfAnnotation>public IReadOnlyList<PdfAttachmentInfo> GetAttachmentsByFileName(string fileName) #Returns attachments with a matching file specification file name.
Parameters
- fileName string
Returns
IReadOnlyList<PdfAttachmentInfo>public IReadOnlyList<PdfAttachmentInfo> GetAttachmentsByName(string name) #Returns attachments with a matching name-tree key or associated-file fallback name.
Parameters
- name string
Returns
IReadOnlyList<PdfAttachmentInfo>public IReadOnlyList<PdfAttachmentInfo> GetAttachmentsByRelationship(PdfAssociatedFileRelationship relationship) #Returns attachments with a matching associated-file relationship.
Parameters
- relationship OfficeIMO.Pdf.PdfAssociatedFileRelationship
Returns
IReadOnlyList<PdfAttachmentInfo>public IReadOnlyList<PdfAttachmentInfo> GetAttachmentsBySource(string source) #Returns attachments from a matching catalog source.
Parameters
- source string
Returns
IReadOnlyList<PdfAttachmentInfo>public IReadOnlyList<PdfCatalogAction> GetCatalogActionsByActionType(string actionType) #Returns catalog-level actions with a matching PDF action type.
Parameters
- actionType string
Returns
IReadOnlyList<PdfCatalogAction>public IReadOnlyList<PdfCatalogAction> GetCatalogActionsBySource(string source) #Returns catalog-level actions from a matching catalog source.
Parameters
- source string
Returns
IReadOnlyList<PdfCatalogAction>public IReadOnlyList<PdfFormField> GetFormFields(PdfFormFieldKind kind) #Returns simple AcroForm fields for the requested common field kind.
Parameters
- kind OfficeIMO.Pdf.PdfFormFieldKind
Returns
IReadOnlyList<PdfFormField>public IReadOnlyList<PdfFormField> GetFormFields(int pageNumber) #Returns simple AcroForm fields represented by widgets on a one-based page number.
Parameters
- pageNumber int
Returns
IReadOnlyList<PdfFormField>public IReadOnlyList<PdfFormWidget> GetFormWidgets(string fieldName) #Returns simple widget annotations for a fully qualified form field name.
Parameters
- fieldName string
Returns
IReadOnlyList<PdfFormWidget>public IReadOnlyList<PdfFormWidget> GetFormWidgets(int pageNumber) #Returns simple widget annotations for a one-based page number.
Parameters
- pageNumber int
Returns
IReadOnlyList<PdfFormWidget>public IReadOnlyList<PdfLinkAnnotation> GetLinkAnnotationsByDestinationName(string destinationName) #Returns simple named-destination link annotations for a destination name.
Parameters
- destinationName string
Returns
IReadOnlyList<PdfLinkAnnotation>public IReadOnlyList<PdfLinkAnnotation> GetLinkAnnotationsByDestinationPageNumber(int pageNumber) #Returns simple direct-destination link annotations for a one-based destination page number.
Parameters
- pageNumber int
Returns
IReadOnlyList<PdfLinkAnnotation>public IReadOnlyList<PdfLinkAnnotation> GetLinkAnnotationsByNamedAction(string namedAction) #Returns simple named-action link annotations for a viewer action name.
Parameters
- namedAction string
Returns
IReadOnlyList<PdfLinkAnnotation>public IReadOnlyList<PdfLinkAnnotation> GetLinkAnnotationsByRemoteFile(string remoteFile) #Returns simple remote GoTo link annotations for a target file.
Parameters
- remoteFile string
Returns
IReadOnlyList<PdfLinkAnnotation>public IReadOnlyList<PdfLinkAnnotation> GetLinkAnnotationsByUri(string uri) #Returns simple URI link annotations for a URI action target.
Parameters
- uri string
Returns
IReadOnlyList<PdfLinkAnnotation>public IReadOnlyList<PdfOptionalContentGroup> GetOptionalContentGroupsByName(string name) #Returns optional-content groups with a matching layer display name.
Parameters
- name string
Returns
IReadOnlyList<PdfOptionalContentGroup>public IReadOnlyList<PdfOutputIntentInfo> GetOutputIntentsByOutputConditionIdentifier(string outputConditionIdentifier) #Returns output intents with a matching /OutputConditionIdentifier.
Parameters
- outputConditionIdentifier string
Returns
IReadOnlyList<PdfOutputIntentInfo>public IReadOnlyList<PdfOutputIntentInfo> GetOutputIntentsBySubtype(string subtype) #Returns output intents with a matching /S subtype.
Parameters
- subtype string
Returns
IReadOnlyList<PdfOutputIntentInfo>public IReadOnlyList<PdfPageAction> GetPageActions(int pageNumber) #Returns page-level additional actions for a one-based page number.
Parameters
- pageNumber int
Returns
IReadOnlyList<PdfPageAction>public IReadOnlyList<PdfPageAction> GetPageActionsByActionPath(string actionPath) #Returns page-level additional actions with a matching stable action path.
Parameters
- actionPath string
Returns
IReadOnlyList<PdfPageAction>public IReadOnlyList<PdfPageAction> GetPageActionsByActionType(string actionType) #Returns page-level additional actions with a matching PDF action type.
Parameters
- actionType string
Returns
IReadOnlyList<PdfPageAction>public IReadOnlyList<PdfPageAction> GetPageActionsByTriggerName(string triggerName) #Returns page-level additional actions with a matching page /AA trigger key.
Parameters
- triggerName string
Returns
IReadOnlyList<PdfPageAction>public bool TryGetFormField(string name, out PdfFormField? field) #Attempts to get a simple AcroForm field by its fully qualified field name.
Parameters
- name string
- field OfficeIMO.Pdf.PdfFormField?
Returns
boolInherited Methods
Properties
public IReadOnlyList<PdfAttachmentInfo> Attachments { get; } #Embedded and associated file attachment metadata discovered from the document catalog.
public int AttachmentCount { get; } #Number of embedded and associated file attachments discovered from the document catalog.
public bool HasAttachments { get; } #True when at least one embedded or associated file attachment was discovered.
public IReadOnlyList<string> AttachmentNames { get; } #Attachment name-tree keys or associated-file fallback names in first-seen order.
public IReadOnlyList<string> AttachmentFileNames { get; } #Distinct attachment file names in first-seen order.
public IReadOnlyList<string> AttachmentSources { get; } #Distinct catalog attachment sources in first-seen order.
public IReadOnlyDictionary<string, IReadOnlyList<PdfAttachmentInfo>> AttachmentsByName { get; } #Attachments grouped by name-tree key or associated-file fallback name.
public IReadOnlyDictionary<string, IReadOnlyList<PdfAttachmentInfo>> AttachmentsByFileName { get; } #Attachments grouped by file specification file name.
public IReadOnlyDictionary<string, IReadOnlyList<PdfAttachmentInfo>> AttachmentsBySource { get; } #Attachments grouped by catalog source.
public IReadOnlyDictionary<PdfAssociatedFileRelationship, IReadOnlyList<PdfAttachmentInfo>> AttachmentsByRelationship { get; } #Attachments grouped by associated-file relationship.
public IReadOnlyList<PdfCatalogAction> CatalogActions { get; } #Catalog-level actions read from supported name trees.
public int CatalogActionCount { get; } #Number of catalog-level actions read from supported name trees.
public bool HasCatalogActions { get; } #True when at least one catalog-level action was read from supported name trees.
public IReadOnlyList<string> CatalogActionNames { get; } #Catalog action name-tree keys in first-seen order.
public IReadOnlyList<string> CatalogActionTypes { get; } #Distinct catalog action types in first-seen order.
public IReadOnlyList<string> CatalogActionSources { get; } #Distinct catalog action sources in first-seen order.
public IReadOnlyDictionary<string, IReadOnlyList<PdfCatalogAction>> CatalogActionsByActionType { get; } #Catalog actions grouped by PDF action type.
public IReadOnlyDictionary<string, IReadOnlyList<PdfCatalogAction>> CatalogActionsBySource { get; } #Catalog actions grouped by catalog source.
public int AnnotationCount { get; } #Number of generic page annotations read from all pages.
public int AnnotationActionTypeCount { get; } #Number of distinct primary or additional annotation action types read from all pages.
public int LinkAnnotationCount { get; } #Number of simple link annotations read from all pages.
public IReadOnlyList<PdfAnnotation> Annotations { get; } #Generic page annotations read from all pages in document order.
public IReadOnlyDictionary<string, IReadOnlyList<PdfAnnotation>> AnnotationsBySubtype { get; } #Generic page annotations grouped by PDF annotation subtype name.
public IReadOnlyList<string> AnnotationActionTypes { get; } #Distinct primary and additional annotation action types read from all pages in first-seen document order.
public IReadOnlyDictionary<string, IReadOnlyList<PdfAnnotation>> AnnotationsByActionType { get; } #Generic page annotations grouped by primary or additional action type.
public int LinkUriCount { get; } #Number of distinct simple URI link targets read from all pages.
public int LinkDestinationCount { get; } #Number of distinct simple named-destination link targets read from all pages.
public int LinkDestinationPageNumberCount { get; } #Number of distinct simple direct-destination link target pages read from all pages.
public int LinkNamedActionCount { get; } #Number of distinct simple named viewer actions read from all pages.
public int LinkRemoteFileCount { get; } #Number of distinct remote GoTo target files read from all pages.
public int NamedDestinationCount { get; } #Number of named destinations read from the document catalog.
public int FormFieldCount { get; } #Number of simple AcroForm fields read from the document catalog.
public int FormWidgetCount { get; } #Number of simple AcroForm widget annotations read from the document catalog fields.
public int PageLabelCount { get; } #Number of page-label rules read from the document catalog.
public IReadOnlyList<PdfLinkAnnotation> LinkAnnotations { get; } #Simple link annotations read from all pages in document order.
public IReadOnlyList<string> LinkUris { get; } #Distinct simple URI link targets read from all pages in first-seen document order.
public IReadOnlyList<string> LinkDestinationNames { get; } #Distinct simple named-destination link targets read from all pages in first-seen document order.
public IReadOnlyList<int> LinkDestinationPageNumbers { get; } #Distinct simple direct-destination link target page numbers read from all pages in first-seen document order.
public IReadOnlyList<string> LinkNamedActions { get; } #Distinct simple named viewer actions read from all pages in first-seen document order.
public IReadOnlyList<string> LinkRemoteFiles { get; } #Distinct remote GoTo target files read from all pages in first-seen document order.
public IReadOnlyDictionary<string, IReadOnlyList<PdfLinkAnnotation>> LinkAnnotationsByUri { get; } #Simple URI link annotations grouped by URI action target.
public IReadOnlyDictionary<string, IReadOnlyList<PdfLinkAnnotation>> LinkAnnotationsByDestinationName { get; } #Simple named-destination link annotations grouped by destination name.
public IReadOnlyDictionary<int, IReadOnlyList<PdfLinkAnnotation>> LinkAnnotationsByDestinationPageNumber { get; } #Simple direct-destination link annotations grouped by one-based destination page number.
public IReadOnlyDictionary<string, IReadOnlyList<PdfLinkAnnotation>> LinkAnnotationsByNamedAction { get; } #Simple named-action link annotations grouped by viewer action name.
public IReadOnlyDictionary<string, IReadOnlyList<PdfLinkAnnotation>> LinkAnnotationsByRemoteFile { get; } #Simple remote GoTo link annotations grouped by target file.
public IReadOnlyList<string> NamedDestinationNames { get; } #Named destination names read from the document catalog in first-seen order.
public IReadOnlyList<string> FormFieldNames { get; } #Readable AcroForm field names in first-seen document order.
public IReadOnlyDictionary<string, PdfFormField> FormFieldsByName { get; } #Named simple AcroForm fields keyed by fully qualified field name.
public IReadOnlyDictionary<PdfFormFieldKind, IReadOnlyList<PdfFormField>> FormFieldsByKind { get; } #Simple AcroForm fields grouped by common field kind.
public IReadOnlyDictionary<int, IReadOnlyList<PdfFormField>> FormFieldsByPageNumber { get; } #Simple AcroForm fields grouped by one-based page number for fields that have readable widgets.
public IReadOnlyList<PdfFormWidget> FormWidgets { get; } #Simple AcroForm widget annotations flattened in field and widget order.
public IReadOnlyDictionary<string, IReadOnlyList<PdfFormWidget>> FormWidgetsByFieldName { get; } #Simple AcroForm widget annotations grouped by fully qualified field name.
public IReadOnlyDictionary<int, IReadOnlyList<PdfFormWidget>> FormWidgetsByPageNumber { get; } #Simple AcroForm widget annotations grouped by one-based page number.
public bool HasLinkAnnotations { get; } #True when at least one simple link annotation was read from the document pages.
public PdfDocumentProperties Metadata { get; } #Document metadata from the PDF Info dictionary when available.
public IReadOnlyList<PdfOutlineItem> Outlines { get; } #Top-level document outline/bookmark entries.
public IReadOnlyList<PdfPageLabel> PageLabels { get; } #Page-label rules read from the document catalog.
public bool HasReadablePageLabels { get; } #True when simple page-label rules were read from the document catalog.
public IReadOnlyList<PdfNamedDestination> NamedDestinations { get; } #Named destinations read from the document catalog.
public IReadOnlyList<PdfFormField> FormFields { get; } #Simple AcroForm fields read from the document catalog.
public bool HasReadableFormFields { get; } #True when at least one simple AcroForm field was read from the document catalog.
public bool HasFormWidgets { get; } #True when at least one simple AcroForm widget annotation was read from the document catalog fields.
public string? AcroFormDefaultAppearance { get; } #AcroForm default appearance string from /DA, when present.
public bool HasAcroFormDefaultAppearance { get; } #True when an AcroForm default appearance string was readable.
public int? AcroFormQuadding { get; } #Raw AcroForm default /Q quadding value, when present.
public bool HasAcroFormQuadding { get; } #True when an AcroForm default /Q quadding value was readable.
public PdfFormFieldTextAlignment AcroFormTextAlignment { get; } #Common AcroForm default text alignment inferred from /Q quadding.
public PdfAcroFormXfaInfo? AcroFormXfa { get; } #AcroForm XFA packet metadata when /AcroForm /XFA is present.
public bool HasAcroFormXfa { get; } #True when the AcroForm contains an XFA packet entry.
public bool? AcroFormNeedAppearances { get; } #AcroForm NeedAppearances flag, when present.
public bool RequiresAcroFormAppearanceRegeneration { get; } #True when the AcroForm requests viewer-side appearance regeneration.
public bool HasAcroFormNeedAppearances { get; } #True when an AcroForm NeedAppearances flag was readable.
public int? AcroFormSignatureFlags { get; } #Raw AcroForm signature flags from /SigFlags, when present.
public bool HasAcroFormSignatureFlags { get; } #True when AcroForm signature flags were readable.
public bool AcroFormSignaturesExist { get; } #True when AcroForm /SigFlags indicates that the document contains signatures.
public bool AcroFormAppendOnly { get; } #True when AcroForm /SigFlags indicates that the document should only be saved by appending changes.
public PdfDocumentOpenAction? OpenAction { get; } #Simple document open action read from the document catalog, when supported.
public bool HasReadableOpenAction { get; } #True when a simple document open action was read from the document catalog.
public PdfViewerPreferences? ViewerPreferences { get; } #Simple viewer preference entries read from the document catalog, when supported.
public bool HasReadableViewerPreferences { get; } #True when simple viewer preference entries were read from the document catalog.
public string? HeaderVersion { get; } #PDF header version, for example 1.4, when a header is present.
public string? CatalogPageMode { get; } #Catalog page mode, for example UseOutlines or FullScreen, when present.
public string? CatalogPageLayout { get; } #Catalog page layout, for example SinglePage or TwoColumnLeft, when present.
public string? CatalogVersion { get; } #Catalog PDF version override, for example 1.7, when present.
public string? EffectiveVersion { get; } #Effective PDF version inferred from the highest catalog override or file header version.
public bool IsPdf20OrLater { get; } #True when the effective PDF version is PDF 2.0 or later.
public string? CatalogLanguage { get; } #Catalog language tag, for example en-US or pl-PL, when present.
public bool HasSignatures { get; } #True when the document contains digital signature markers.
public bool HasForms { get; } #True when the document contains AcroForm or form-field markers.
public bool HasAnnotations { get; } #True when the document contains annotation markers.
public bool HasOutlines { get; } #True when the document contains outline/bookmark markers.
public bool HasCatalogViewSettings { get; } #True when the document contains catalog page mode or layout markers.
public bool HasPageLabels { get; } #True when the document contains page label markers.
public bool HasCatalogNameTrees { get; } #True when the document contains catalog name-tree markers.
public bool HasNamedDestinations { get; } #True when the document contains named destination markers.
public bool HasOpenActions { get; } #True when the document contains document open action markers.
public bool HasViewerPreferences { get; } #True when the document contains viewer preference markers.
public bool HasTaggedContent { get; } #True when the document contains tagged PDF structure markers.
public bool HasXmpMetadata { get; } #True when the document contains XMP metadata stream markers.
public bool HasCatalogUri { get; } #True when the document catalog contains a URI dictionary.
public bool HasOutputIntents { get; } #True when the document contains output intent markers.
public bool HasEmbeddedFiles { get; } #True when the document contains embedded file markers.
public bool HasOptionalContent { get; } #True when the document contains optional content/layer markers.
public bool HasActiveContent { get; } #True when the document contains active content markers such as JavaScript actions.
public PdfOptionalContentProperties? OptionalContent { get; } #Catalog optional-content/layer metadata discovered from /OCProperties.
public bool HasReadableOptionalContent { get; } #True when readable optional-content/layer metadata was discovered.
public IReadOnlyList<PdfOptionalContentGroup> OptionalContentGroups { get; } #Optional-content groups discovered from catalog /OCProperties.
public int OptionalContentGroupCount { get; } #Number of optional-content groups discovered from catalog /OCProperties.
public bool HasOptionalContentGroups { get; } #True when at least one optional-content group was discovered.
public IReadOnlyList<string> OptionalContentGroupNames { get; } #Optional-content group names in first-seen catalog order.
public IReadOnlyDictionary<string, IReadOnlyList<PdfOptionalContentGroup>> OptionalContentGroupsByName { get; } #Optional-content groups grouped by layer display name.
public IReadOnlyList<PdfOutputIntentInfo> OutputIntents { get; } #Catalog output intent metadata discovered from /OutputIntents.
public int OutputIntentCount { get; } #Number of catalog output intents discovered from /OutputIntents.
public bool HasReadableOutputIntents { get; } #True when at least one catalog output intent was readable.
public bool OutputIntentsAreComplete { get; } #True when every catalog /OutputIntents array entry was resolved as an output-intent dictionary.
public IReadOnlyList<string> OutputIntentSubtypes { get; } #Distinct output intent subtypes in first-seen order.
public IReadOnlyList<string> OutputConditionIdentifiers { get; } #Distinct output condition identifiers in first-seen order.
public IReadOnlyDictionary<string, IReadOnlyList<PdfOutputIntentInfo>> OutputIntentsBySubtype { get; } #Output intents grouped by /S subtype.
public IReadOnlyDictionary<string, IReadOnlyList<PdfOutputIntentInfo>> OutputIntentsByOutputConditionIdentifier { get; } #Output intents grouped by /OutputConditionIdentifier.
public int PageActionCount { get; } #Number of page-level additional actions read from page dictionaries.
public bool HasPageActions { get; } #True when at least one page-level additional action was read from page dictionaries.
public IReadOnlyList<PdfPageAction> PageActions { get; } #Page-level additional actions read from page dictionaries in document order.
public IReadOnlyList<string> PageActionTypes { get; } #Distinct page-level action types in first-seen document order.
public IReadOnlyList<string> PageActionTriggerNames { get; } #Distinct page-level additional-action trigger keys in first-seen document order.
public IReadOnlyList<string> PageActionPaths { get; } #Distinct page-level action paths in first-seen document order.
public IReadOnlyDictionary<string, IReadOnlyList<PdfPageAction>> PageActionsByActionType { get; } #Page-level additional actions grouped by PDF action type.
public IReadOnlyDictionary<string, IReadOnlyList<PdfPageAction>> PageActionsByTriggerName { get; } #Page-level additional actions grouped by page /AA trigger key.
public IReadOnlyDictionary<string, IReadOnlyList<PdfPageAction>> PageActionsByActionPath { get; } #Page-level additional actions grouped by stable action path.
public IReadOnlyDictionary<int, IReadOnlyList<PdfPageAction>> PageActionsByPageNumber { get; } #Page-level additional actions grouped by one-based page number.
public int TextFormFieldCount { get; } #Number of AcroForm text fields.
public int ButtonFormFieldCount { get; } #Number of AcroForm button fields.
public int ChoiceFormFieldCount { get; } #Number of AcroForm choice fields.
public int SignatureFormFieldCount { get; } #Number of AcroForm signature fields.
public int ReadOnlyFormFieldCount { get; } #Number of fields with the common read-only flag.
public int RequiredFormFieldCount { get; } #Number of fields with the common required flag.
public int NoExportFormFieldCount { get; } #Number of fields with the common no-export flag.
public int PageProductionBoxCount { get; } #Number of pages with CropBox, BleedBox, TrimBox, or ArtBox information.
public int TrimBoxPageCount { get; } #Number of pages with a TrimBox.
public int BleedBoxPageCount { get; } #Number of pages with a BleedBox.
public int ArtBoxPageCount { get; } #Number of pages with an ArtBox.
public bool HasProductionPageBoxes { get; } #True when any page exposes production-oriented boxes such as TrimBox, BleedBox, or ArtBox.
public int ActiveAnnotationCount { get; } #Number of annotations with a primary, additional, or chained action.
public int RiskyAnnotationActionCount { get; } #Number of annotations with JavaScript, launch, submit, import-data, or movie/rendition actions.
public IReadOnlyDictionary<string, int> AnnotationSubtypeCounts { get; } #Readable annotation counts grouped by subtype.
public IReadOnlyDictionary<string, int> AnnotationActionTypeCounts { get; } #Readable annotation counts grouped by action type.
public PdfDocumentSecurityInfo Security { get; } #Security, signature, and revision markers read from the source PDF bytes.
public bool HasSecurityState { get; } #True when the document exposes encryption, signature, permission, or incremental-update markers.
public PdfTaggedContentInfo? TaggedContent { get; } #Tagged PDF structure metadata discovered from /MarkInfo and /StructTreeRoot.
public bool HasReadableTaggedContent { get; } #True when readable tagged PDF structure metadata was discovered.
public PdfXmpMetadataInfo? XmpMetadata { get; } #Catalog XMP metadata stream discovered from /Metadata.
public bool HasReadableXmpMetadata { get; } #True when readable catalog XMP metadata was discovered.