# PdfDocument

Root PDF lifecycle and capability container.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfDocument.PdfAConversion.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Conversion/PdfA/PdfDocument.PdfAConversion.cs#L12)

**Implements**

`IDisposable`

**Modifiers**

sealed

Root PDF lifecycle and capability container. Author content through [PdfDocument.Create](/api/pdf/officeimo-pdf-pdfdocument/) or [PdfDocument.Compose](/api/pdf/officeimo-pdf-pdfdocument/); use the focused capability properties for reading and existing-document operations.

## Inheritance

- object
- PdfDocument

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Create PDF documents](/docs/pdf/) Guide
- [PDF Inspection, Extraction, and Operations](/docs/pdf/operations/) Guide
  
  Preflight, repair, extract, merge, split, stamp, optimize, convert to PDF/A, redact, and inspect PDFs with structured reports. Includes examples and API links.
- [Merge, Split, and Select PDF Pages](/docs/pdf/merge-split/) Guide
  
  Merge PDFs, split a PDF into parts, and extract, delete, reorder, rotate, or duplicate pages with OfficeIMO.Pdf, PSWriteOffice, and the officeimo CLI.
- [Fill and Flatten PDF Forms](/docs/pdf/forms/) Guide
  
  List AcroForm fields, fill them by name, flatten the result, exchange XFDF data, and add form fields to new PDFs with OfficeIMO.Pdf and PSWriteOffice.
- [PDF Quick Start](/docs/pdf/quick-start/) Guide
  
  Create a PDF with headings, paragraphs, a table, and an image, then load it and read its text, with OfficeIMO.Pdf, PSWriteOffice, or the officeimo CLI.
- [Convert OpenDocument to PDF and Images](/docs/open-document/convert-pdf/) Guide
  
  Convert ODT, ODS and ODP files to PDF or page images, and rebuild editable OpenDocument files from a PDF, with a report of both conversion stages.
- [Remove hidden data and metadata](/docs/before-sharing/hidden-data/) Guide
  
  Inspect and remove properties, comments, tracked changes, hidden content, notes, attachments, scripts and GPS data from Office, PDF, EPUB and image files.
- [Fillable equipment inspection](/showcase/pdf-equipment-inspection/) Sample
  
  Create a PDF form with named text fields, checkboxes and a disposition dropdown for an equipment return workflow. Includes runnable C# source.
- [PDF reading list with clickable resources](/showcase/pdf-linked-resource-guide/) Sample
  
  Author descriptive paragraph and table links in a compact PDF reference for a document automation team. Download the PDF and generating C# source.
- [Small-format workshop badges](/showcase/pdf-event-badges/) Sample
  
  Generate two individual 340-by-255-point PDF workshop badges with participant names, roles and event details. Preview both pages and adapt the C# source.
- [A PDF dispatch note](/showcase/pdf-dispatch-note/) Sample
  
  Create a PDF dispatch note in C# with shipment references, item quantities, delivery instructions, and a receipt area. Inspect and download the output.

## Usage

Explore 107 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 83

- Method [PdfAConversionResult.RequireValue](/api/pdf/officeimo-pdf-pdfaconversionresult/#method-requirevalue)
- Property [PdfAConversionResult.Value](/api/pdf/officeimo-pdf-pdfaconversionresult/#property-value)
- Method [PdfAcroFormEditResult.ToDocument](/api/pdf/officeimo-pdf-pdfacroformeditresult/#method-todocument)
- Method [PdfAnnotationEditResult.ToDocument](/api/pdf/officeimo-pdf-pdfannotationeditresult/#method-todocument-officeimo-pdf-pdfloadoptions)
- Method [PdfAttachmentEditResult.ToDocument](/api/pdf/officeimo-pdf-pdfattachmenteditresult/#method-todocument)
- Method [PdfBatesDocumentResult.ToDocument](/api/pdf/officeimo-pdf-pdfbatesdocumentresult/#method-todocument-officeimo-pdf-pdfloadoptions)
- Method [PdfBookmarkEditResult.ToDocument](/api/pdf/officeimo-pdf-pdfbookmarkeditresult/#method-todocument)
- Method [PdfDestructiveCropResult.ToDocument](/api/pdf/officeimo-pdf-pdfdestructivecropresult/#method-todocument)
- Method [PdfDocument.AppendMetadataRevision](/api/pdf/officeimo-pdf-pdfdocument/#method-appendmetadatarevision-string-string-string-string-boolean)
- Method [PdfDocument.Compose](/api/pdf/officeimo-pdf-pdfdocument/#method-compose-action-officeimo-pdf-pdfdocumentbuilder)
- Method [PdfDocument.Create](/api/pdf/officeimo-pdf-pdfdocument/#method-create-action-officeimo-pdf-pdfdocumentbuilder-officeimo-pdf-pdfcreateoptions)
- Method [PdfDocument.FlattenVisualAnnotations](/api/pdf/officeimo-pdf-pdfdocument/#method-flattenvisualannotations-threading-cancellationtoken)
- Method [PdfDocument.Load](/api/pdf/officeimo-pdf-pdfdocument/#method-load-string-officeimo-pdf-pdfloadoptions-threading-cancellationtoken)
- Method [PdfDocument.LoadAsync](/api/pdf/officeimo-pdf-pdfdocument/#method-loadasync-string-officeimo-pdf-pdfloadoptions-threading-cancellationtoken)
- Method [PdfDocument.LoadSeekable](/api/pdf/officeimo-pdf-pdfdocument/#method-loadseekable-io-stream-officeimo-pdf-pdfloadoptions-threading-cancellationtoken)
- Method [PdfDocument.Merge](/api/pdf/officeimo-pdf-pdfdocument/#method-merge-collections-generic-ienumerable-officeimo-pdf-pdfdocument-officeimo-pdf-pdfmergeoptions-officeimo-pdf-pdfmergereport-threading-cancellationtoken)
- Method [PdfDocument.MergeWith](/api/pdf/officeimo-pdf-pdfdocument/#method-mergewith-officeimo-pdf-pdfdocument-officeimo-pdf-pdfmergeoptions-threading-cancellationtoken)
- Method [PdfDocument.Meta](/api/pdf/officeimo-pdf-pdfdocument/#method-meta-string-string-string-string)
- Method [PdfDocument.ReplaceProperties](/api/pdf/officeimo-pdf-pdfdocument/#method-replaceproperties-officeimo-pdf-pdfdocumentproperties-threading-cancellationtoken)
- Method [PdfDocument.SynchronizeMetadata](/api/pdf/officeimo-pdf-pdfdocument/#method-synchronizemetadata-threading-cancellationtoken-string-string-string-string-boolean)
- Method [PdfDocument.UpdateProperties](/api/pdf/officeimo-pdf-pdfdocument/#method-updateproperties-string-string-string-string)
- Method [PdfDocumentConversionResult.RequireValue](/api/pdf/officeimo-pdf-pdfdocumentconversionresult/#method-requirevalue)
- Property [PdfDocumentConversionResult.Value](/api/pdf/officeimo-pdf-pdfdocumentconversionresult/#property-value)
- Method [PdfDocumentForms.AppendRevision](/api/pdf/officeimo-pdf-pdfdocumentforms/#method-appendrevision-collections-generic-ireadonlydictionary-system-string-system-string-boolean)
- Method [PdfDocumentForms.Fill](/api/pdf/officeimo-pdf-pdfdocumentforms/#method-fill-collections-generic-ireadonlydictionary-system-string-system-string)
- Method [PdfDocumentForms.FillAndFlatten](/api/pdf/officeimo-pdf-pdfdocumentforms/#method-fillandflatten-collections-generic-ireadonlydictionary-system-string-officeimo-pdf-pdfformfieldvalue-officeimo-pdf-pdfformfilleroptions-threading-cancellationtoken)
- Method [PdfDocumentForms.Flatten](/api/pdf/officeimo-pdf-pdfdocumentforms/#method-flatten-string)
- Method [PdfDocumentForms.ImportData](/api/pdf/officeimo-pdf-pdfdocumentforms/#method-importdata-officeimo-pdf-pdfformdataset-officeimo-pdf-pdfformfilleroptions-threading-cancellationtoken)
- Method [PdfDocumentForms.ImportXfdf](/api/pdf/officeimo-pdf-pdfdocumentforms/#method-importxfdf-string-officeimo-pdf-pdfformfilleroptions-threading-cancellationtoken)
- Method [PdfDocumentPages.Append](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-append-string-officeimo-pdf-pdfpageimportoptions-threading-cancellationtoken)
- Method [PdfDocumentPages.ApplyAttributes](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-applyattributes-officeimo-pdf-pdfpageattributeedit)
- Method [PdfDocumentPages.CropAndTranslate](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-cropandtranslate-double-double-double-double-officeimo-pdf-pdfpageselection-threading-cancellationtoken)
- Method [PdfDocumentPages.Delete](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-delete-officeimo-pdf-pdfpageselection-threading-cancellationtoken)
- Method [PdfDocumentPages.Duplicate](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-duplicate-officeimo-pdf-pdfpageselection-threading-cancellationtoken)
- Method [PdfDocumentPages.Extract](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-extract-officeimo-officepageselector)
- Method [PdfDocumentPages.Insert](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-insert-int32-officeimo-pdf-pdfdocument-officeimo-pdf-pdfpageimportoptions-threading-cancellationtoken)
- Method [PdfDocumentPages.Move](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-move-int32-officeimo-pdf-pdfpageselection-threading-cancellationtoken)
- Method [PdfDocumentPages.NormalizeRotation](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-normalizerotation-officeimo-pdf-pdfpageselection-threading-cancellationtoken)
- Method [PdfDocumentPages.Prepend](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-prepend-string-officeimo-pdf-pdfpageselection-officeimo-pdf-pdfpageimportoptions-threading-cancellationtoken)
- Method [PdfDocumentPages.Reorder](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-reorder-string-threading-cancellationtoken)
- Method [PdfDocumentPages.Resize](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-resize-officeimo-pdf-pdfpageresizeoptions-officeimo-pdf-pdfpageselection-threading-cancellationtoken)
- Method [PdfDocumentPages.Rotate](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-rotate-int32-int32)
- Method [PdfDocumentPages.RotateBy](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-rotateby-int32-int32)
- Method [PdfDocumentPages.SetArtBox](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-setartbox-double-double-double-double-int32)
- Method [PdfDocumentPages.SetBleedBox](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-setbleedbox-double-double-double-double-int32)
- Method [PdfDocumentPages.SetCropBox](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-setcropbox-double-double-double-double-int32)
- Method [PdfDocumentPages.SetMediaBox](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-setmediabox-double-double-double-double-officeimo-pdf-pdfpageselection-threading-cancellationtoken)
- Method [PdfDocumentPages.SetPageBox](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-setpagebox-officeimo-pdf-pdfpageboundarybox-double-double-double-double-int32)
- Method [PdfDocumentPages.SetTrimBox](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-settrimbox-double-double-double-double-int32)
- Method [PdfDocumentPages.Split](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-split-officeimo-pdf-pdfpageselection)
- Method [PdfDocumentPages.SplitByBookmarks](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-splitbybookmarks-collections-generic-ireadonlylist-system-string-threading-cancellationtoken)
- Method [PdfDocumentRedactions.AddAnnotation](/api/pdf/officeimo-pdf-pdfdocumentredactions/#method-addannotation-officeimo-pdf-pdfredactionannotationoptions-threading-cancellationtoken)
- Method [PdfDocumentRedactions.Apply](/api/pdf/officeimo-pdf-pdfdocumentredactions/#method-apply-collections-generic-ienumerable-officeimo-pdf-pdfredactionarea-officeimo-pdf-pdfredactionapplyoptions-officeimo-pdf-pdftextlayoutoptions-officeimo-pdf-pdfloadoptions-threading-cancellationtoken)
- Method [PdfDocumentSecurity.CompleteExternalSignature](/api/pdf/officeimo-pdf-pdfdocumentsecurity/#method-completeexternalsignature-byte)
- Method [PdfDocumentStamper.Content](/api/pdf/officeimo-pdf-pdfdocumentstamper/#method-content-action-officeimo-pdf-pdfpagecanvas-officeimo-pdf-pdfstamppagecontext-officeimo-pdf-pdfcanvasstampoptions-officeimo-pdf-pdfloadoptions-threading-cancellationtoken)
- Method [PdfDocumentStamper.Image](/api/pdf/officeimo-pdf-pdfdocumentstamper/#method-image-io-stream-officeimo-pdf-pdfimagestampoptions-officeimo-pdf-pdfloadoptions-threading-cancellationtoken)
- Method [PdfDocumentStamper.ImageWatermark](/api/pdf/officeimo-pdf-pdfdocumentstamper/#method-imagewatermark-byte-officeimo-pdf-pdfimagestampoptions-threading-cancellationtoken)
- Method [PdfDocumentStamper.OverlayPage](/api/pdf/officeimo-pdf-pdfdocumentstamper/#method-overlaypage-byte-officeimo-pdf-pdfpageoverlayoptions-threading-cancellationtoken)
- Method [PdfDocumentStamper.Text](/api/pdf/officeimo-pdf-pdfdocumentstamper/#method-text-string-officeimo-pdf-pdftextstampoptions-officeimo-pdf-pdfloadoptions-threading-cancellationtoken)
- Method [PdfDocumentStamper.TextWatermark](/api/pdf/officeimo-pdf-pdfdocumentstamper/#method-textwatermark-string-officeimo-pdf-pdftextstampoptions-threading-cancellationtoken)
- Method [PdfDocumentStamper.UnderlayPage](/api/pdf/officeimo-pdf-pdfdocumentstamper/#method-underlaypage-string-officeimo-pdf-pdfpageoverlayoptions-officeimo-pdf-pdfloadoptions-threading-cancellationtoken)
- Method [PdfDocumentStamper.Watermark](/api/pdf/officeimo-pdf-pdfdocumentstamper/#method-watermark-officeimo-pdf-pdfwatermarkoptions-officeimo-pdf-pdfloadoptions-threading-cancellationtoken)
- Method [PdfExternalSignatureCompletion.ToDocument](/api/pdf/officeimo-pdf-pdfexternalsignaturecompletion/#method-todocument)
- Method [PdfExternalSignaturePreparation.Complete](/api/pdf/officeimo-pdf-pdfexternalsignaturepreparation/#method-complete-byte-officeimo-pdf-pdfloadoptions)
- Method [PdfImageConverterExtensions.ToPdf](/api/pdf/officeimo-pdf-pdfimageconverterextensions/#method-topdf-collections-generic-ienumerable-system-string-officeimo-pdf-pdfimageimportoptions-threading-cancellationtoken)
- Method [PdfImageConverterExtensions.ToPdfAsync](/api/pdf/officeimo-pdf-pdfimageconverterextensions/#method-topdfasync-collections-generic-ienumerable-system-string-officeimo-pdf-pdfimageimportoptions-threading-cancellationtoken)
- Property [PdfImageEditResult.Document](/api/pdf/officeimo-pdf-pdfimageeditresult/#property-document)
- Method [PdfImpositionResult.ToDocument](/api/pdf/officeimo-pdf-pdfimpositionresult/#method-todocument)
- Method [PdfInteractiveContentFlattenResult.ToDocument](/api/pdf/officeimo-pdf-pdfinteractivecontentflattenresult/#method-todocument)
- Method [PdfInterleaveResult.ToDocument](/api/pdf/officeimo-pdf-pdfinterleaveresult/#method-todocument-officeimo-pdf-pdfloadoptions)
- Method [PdfJavaScriptEditResult.ToDocument](/api/pdf/officeimo-pdf-pdfjavascripteditresult/#method-todocument)
- Method [PdfMergeResult.RequireValue](/api/pdf/officeimo-pdf-pdfmergeresult/#method-requirevalue)
- Method [PdfMergeResult.ToDocument](/api/pdf/officeimo-pdf-pdfmergeresult/#method-todocument)
- Property [PdfMergeResult.Value](/api/pdf/officeimo-pdf-pdfmergeresult/#property-value)
- Method [PdfOptimizationActionResult.ToDocument](/api/pdf/officeimo-pdf-pdfoptimizationactionresult/#method-todocument-officeimo-pdf-pdfloadoptions)
- Method [PdfPageRewriteResult.ToDocument](/api/pdf/officeimo-pdf-pdfpagerewriteresult/#method-todocument)
- Property [PdfProductionFixupResult.Document](/api/pdf/officeimo-pdf-pdfproductionfixupresult/#property-document)
- Method [PdfProductionSplitPart.ToDocument](/api/pdf/officeimo-pdf-pdfproductionsplitpart/#method-todocument-officeimo-pdf-pdfloadoptions)
- Method [PdfRedactionApplyResult.ToDocument](/api/pdf/officeimo-pdf-pdfredactionapplyresult/#method-todocument)
- Method [PdfRepairArtifactResult.ToDocument](/api/pdf/officeimo-pdf-pdfrepairartifactresult/#method-todocument-officeimo-pdf-pdfloadoptions)
- Method [PdfSecurityMutationResult.ToDocument](/api/pdf/officeimo-pdf-pdfsecuritymutationresult/#method-todocument)
- Property [PdfTextEditResult.Document](/api/pdf/officeimo-pdf-pdftexteditresult/#property-document)
- Method [PdfUnsignedDerivativeResult.ToDocument](/api/pdf/officeimo-pdf-pdfunsignedderivativeresult/#method-todocument)

### Accepted by parameters 24

- Extension method [PdfDocument.SaveAsImages](/api/pdf/officeimo-pdf-pdfdocument/#extension-saveasimages-officeimo-pdf-pdfdocument-string-officeimo-pdf-pdfimageexportoptions-threading-cancellationtoken) parameter `document`
- Extension method [PdfDocument.SaveAsImagesAsync](/api/pdf/officeimo-pdf-pdfdocument/#extension-saveasimagesasync-officeimo-pdf-pdfdocument-string-officeimo-pdf-pdfimageexportoptions-threading-cancellationtoken) parameter `document`
- Extension method [PdfDocument.ToImages](/api/pdf/officeimo-pdf-pdfdocument/#extension-toimages-officeimo-pdf-pdfdocument-officeimo-pdf-pdfimageexportoptions-threading-cancellationtoken) parameter `document`
- Extension method [PdfDocument.ToImagesAsync](/api/pdf/officeimo-pdf-pdfdocument/#extension-toimagesasync-officeimo-pdf-pdfdocument-officeimo-pdf-pdfimageexportoptions-threading-cancellationtoken) parameter `document`
- Method [PdfDocument.Merge](/api/pdf/officeimo-pdf-pdfdocument/#method-merge-collections-generic-ienumerable-officeimo-pdf-pdfdocument-officeimo-pdf-pdfmergeoptions-threading-cancellationtoken) parameter `documents`
- Method [PdfDocument.MergeWith](/api/pdf/officeimo-pdf-pdfdocument/#method-mergewith-officeimo-pdf-pdfdocument-officeimo-pdf-pdfmergeoptions) parameter `document`
- Constructor [PdfDocumentConversionResult.PdfDocumentConversionResult](/api/pdf/officeimo-pdf-pdfdocumentconversionresult/#constructor-ctor-officeimo-pdf-pdfdocument-officeimo-pdf-pdfconversionreport) parameter `document`
- Method [PdfDocumentConversionResult.Process](/api/pdf/officeimo-pdf-pdfdocumentconversionresult/#method-process-func-officeimo-pdf-pdfdocument-officeimo-pdf-pdfdocument) parameter `process`
- Method [PdfDocumentConversionResult.WithValue](/api/pdf/officeimo-pdf-pdfdocumentconversionresult/#method-withvalue-officeimo-pdf-pdfdocument) parameter `value`
- Method [PdfDocumentPages.Append](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-append-officeimo-pdf-pdfdocument-officeimo-pdf-pdfpageimportoptions-threading-cancellationtoken) parameter `sourceDocument`
- Method [PdfDocumentPages.Insert](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-insert-int32-officeimo-pdf-pdfdocument-officeimo-pdf-pdfpageimportoptions-threading-cancellationtoken) parameter `sourceDocument`
- Method [PdfDocumentPages.Prepend](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-prepend-officeimo-pdf-pdfdocument-officeimo-pdf-pdfpageimportoptions-threading-cancellationtoken) parameter `sourceDocument`
- Method [PdfDocumentProof.AnalyzePageChanges](/api/pdf/officeimo-pdf-pdfdocumentproof/#method-analyzepagechanges-officeimo-pdf-pdfdocument-officeimo-pdf-pdfpagechangeoptions-threading-cancellationtoken) parameter `actualDocument`
- Method [PdfDocumentProof.AssertRewritePreservationMatrix](/api/pdf/officeimo-pdf-pdfdocumentproof/#method-assertrewritepreservationmatrix-string-string-func-officeimo-pdf-pdfdocument-officeimo-pdf-pdfdocument-officeimo-pdf-pdfrewritepreservationmatrixclassification-officeimo-pdf-pdfrewritepreservationoptions-collections-generic-ienumerable-system-string) parameter `rewrite`
- Method [PdfDocumentProof.AssertRewritePreserved](/api/pdf/officeimo-pdf-pdfdocumentproof/#method-assertrewritepreserved-officeimo-pdf-pdfdocument-officeimo-pdf-pdfrewritepreservationoptions) parameter `rewrittenDocument`
- Method [PdfDocumentProof.AssessRewritePreservation](/api/pdf/officeimo-pdf-pdfdocumentproof/#method-assessrewritepreservation-officeimo-pdf-pdfdocument-officeimo-pdf-pdfrewritepreservationoptions) parameter `rewrittenDocument`
- Method [PdfDocumentProof.AssessRewritePreservationMatrix](/api/pdf/officeimo-pdf-pdfdocumentproof/#method-assessrewritepreservationmatrix-string-string-func-officeimo-pdf-pdfdocument-officeimo-pdf-pdfdocument-officeimo-pdf-pdfrewritepreservationmatrixclassification-officeimo-pdf-pdfrewritepreservationoptions-collections-generic-ienumerable-system-string) parameter `rewrite`
- Method [PdfDocumentProof.CompareReview](/api/pdf/officeimo-pdf-pdfdocumentproof/#method-comparereview-officeimo-pdf-pdfdocument-officeimo-pdf-pdfreviewcomparisonoptions-threading-cancellationtoken) parameter `actualDocument`
- Method [PdfDocumentProof.CompareVisual](/api/pdf/officeimo-pdf-pdfdocumentproof/#method-comparevisual-officeimo-pdf-pdfdocument-officeimo-pdf-pdfpageselection-officeimo-pdf-pdfvisualcomparisonoptions) parameter `actualDocument`
- Method [PdfDocumentProof.CompareVisualPages](/api/pdf/officeimo-pdf-pdfdocumentproof/#method-comparevisualpages-int32-officeimo-pdf-pdfdocument-int32-officeimo-pdf-pdfvisualcomparisonoptions-threading-cancellationtoken) parameter `actualDocument`
- Method [PdfImageExportExtensions.SaveAsImages](/api/pdf/officeimo-pdf-pdfimageexportextensions/#method-saveasimages-officeimo-pdf-pdfdocument-string-officeimo-pdf-pdfimageexportoptions-threading-cancellationtoken) parameter `document`
- Method [PdfImageExportExtensions.SaveAsImagesAsync](/api/pdf/officeimo-pdf-pdfimageexportextensions/#method-saveasimagesasync-officeimo-pdf-pdfdocument-string-officeimo-pdf-pdfimageexportoptions-threading-cancellationtoken) parameter `document`
- Method [PdfImageExportExtensions.ToImages](/api/pdf/officeimo-pdf-pdfimageexportextensions/#method-toimages-officeimo-pdf-pdfdocument-officeimo-pdf-pdfimageexportoptions-threading-cancellationtoken) parameter `document`
- Method [PdfImageExportExtensions.ToImagesAsync](/api/pdf/officeimo-pdf-pdfimageexportextensions/#method-toimagesasync-officeimo-pdf-pdfdocument-officeimo-pdf-pdfimageexportoptions-threading-cancellationtoken) parameter `document`

## Examples

```csharp
using OfficeIMO.Pdf;

PdfDocument.Create(pdf => pdf.Content(content => content
    .H1("OfficeIMO.Pdf")
    .Paragraph(paragraph => paragraph.Text("Hello from OfficeIMO."))))
    .Save("hello.pdf");
```

Filter members 

Show inherited

## Methods

AddDeferredTable 2 overloads

`public PdfTable AddDeferredTable(Func<IEnumerable<string[]>> rowFactory, int batchSize = 256, OfficeAlignment align = Left, PdfTableStyle? style = null)` [#](#method-adddeferredtable-func-system-collections-generic-ienumerable-system-string-int32-officeimo-officealignment-officeimo-pdf-pdftablestyle)

[PdfDocument.Blocks.Tables.cs:82](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Blocks.Tables.cs#L82)

Adds a replayable plain-text table whose rows are enumerated and laid out in bounded batches.

Parameters

**rowFactory System.Func<System.Collections.Generic.IEnumerable<string[]>> required**

Factory that returns a fresh sequence of table rows for each render pass.

**batchSize int = 256 optional**

Maximum number of body rows materialized for one layout batch.

**align OfficeIMO.OfficeAlignment = Left optional**

Table alignment in the document flow.

**style OfficeIMO.Pdf.PdfTableStyle? = null optional**

Optional table style.

Returns

`PdfTable`

`public PdfTable AddDeferredTable(Func<IEnumerable<PdfTableCell[]>> rowFactory, int batchSize = 256, OfficeAlignment align = Left, PdfTableStyle? style = null)` [#](#method-adddeferredtable-func-system-collections-generic-ienumerable-officeimo-pdf-pdftablecell-int32-officeimo-officealignment-officeimo-pdf-pdftablestyle)

[PdfDocument.Blocks.Tables.cs:100](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Blocks.Tables.cs#L100)

Adds a replayable rich-cell table whose rows are enumerated and laid out in bounded batches.

Parameters

**rowFactory System.Func<System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCell[]>> required**

Factory that returns a fresh sequence of rich table rows for each render pass.

**batchSize int = 256 optional**

Maximum number of body rows materialized for one layout batch.

**align OfficeIMO.OfficeAlignment = Left optional**

Table alignment in the document flow.

**style OfficeIMO.Pdf.PdfTableStyle? = null optional**

Optional table style.

Returns

`PdfTable`

`public PdfHeading AddHeading(string text, int level = 1, OfficeAlignment align = Left, OfficeColor? color = null, string? linkUri = null, PdfHeadingStyle? style = null, string? linkContents = null, string? linkDestinationName = null)` [#](#method-addheading-string-int32-officeimo-officealignment-nullable-officeimo-officecolor-string-officeimo-pdf-pdfheadingstyle-string-string)

[PdfDocument.Blocks.Setup.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Blocks.Setup.cs#L26)

Appends a heading at an authored level from 1 through 9 and adds it to the outline.

Parameters

**text string required**

**level int = 1 optional**

**align OfficeIMO.OfficeAlignment = Left optional**

**color OfficeIMO.OfficeColor? = null optional**

**linkUri string? = null optional**

**style OfficeIMO.Pdf.PdfHeadingStyle? = null optional**

**linkContents string? = null optional**

**linkDestinationName string? = null optional**

Returns

`PdfHeading`

AddImage 2 overloads

`public PdfImage AddImage(byte[] imageBytes, OfficeLength width, OfficeLength height, string? altText)` [#](#method-addimage-byte-officeimo-officelength-officeimo-officelength-string)

[PdfDocument.Blocks.Media.cs:101](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Blocks.Media.cs#L101)

Appends a meaningful image from supported image bytes with alternative text.

Parameters

**imageBytes byte[] required**

**width OfficeIMO.OfficeLength required**

**height OfficeIMO.OfficeLength required**

**altText string? required**

Returns

`PdfImage`

`public PdfImage AddImage(byte[] imageBytes, OfficeLength width, OfficeLength height, OfficeAlignment? align = null, OfficeClipPath? clipPath = null, OfficeImageFit? fit = null, OfficeLength? spacingBefore = null, OfficeLength? spacingAfter = null, PdfImageStyle? style = null, string? linkUri = null, string? linkContents = null, string? altText = null)` [#](#member-34925911c1e6f9e451747143)

[PdfDocument.Blocks.Media.cs:117](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Blocks.Media.cs#L117)

Appends a raster image supported by OfficeIMO.Drawing at the current flow position.

Parameters

**imageBytes byte[] required**

Supported image bytes.

**width OfficeIMO.OfficeLength required**

Image frame width.

**height OfficeIMO.OfficeLength required**

Image frame height.

**align OfficeIMO.OfficeAlignment? = null optional**

Image alignment inside the content width.

**clipPath OfficeIMO.Drawing.OfficeClipPath? = null optional**

Optional local clipping path applied before drawing the image.

**fit OfficeIMO.Drawing.OfficeImageFit? = null optional**

Image fitting mode inside the frame.

**spacingBefore OfficeIMO.OfficeLength? = null optional**

Top spacing, inherited from the current default image style when omitted.

**spacingAfter OfficeIMO.OfficeLength? = null optional**

Bottom spacing, inherited from the current default image style when omitted.

**style OfficeIMO.Pdf.PdfImageStyle? = null optional**

Optional reusable image placement style.

**linkUri string? = null optional**

Optional absolute URI or catalog-base-relative URI for an image link annotation.

**linkContents string? = null optional**

Optional link annotation contents metadata.

**altText string? = null optional**

Optional alternative text for a meaningful image.

Returns

`PdfImage`

AddKeyValueTable 2 overloads

`public PdfTable AddKeyValueTable(IEnumerable<KeyValuePair<string, string?>> rows, OfficeAlignment align = Left, PdfTableStyle? style = null, bool includeHeader = false, string keyHeader = "Key", string valueHeader = "Value")` [#](#method-addkeyvaluetable-collections-generic-ienumerable-system-collections-generic-keyvaluepair-system-string-system-string-officeimo-officealignment-officeimo-pdf-pdftablestyle-boolean-string-string)

[PdfDocument.Blocks.Tables.cs:140](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Blocks.Tables.cs#L140)

Adds a two-column label/value table for document metadata, invoice facts, definition lists, and similar report sections.

Parameters

**rows System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, string?>> required**

Plain text label/value rows.

**align OfficeIMO.OfficeAlignment = Left optional**

Table alignment in the document flow.

**style OfficeIMO.Pdf.PdfTableStyle? = null optional**

Optional table style. The style is cloned before header-row settings are applied.

**includeHeader bool = false optional**

When true, emits a header row before the supplied values.

**keyHeader string = "Key" optional**

Header text for the label column.

**valueHeader string = "Value" optional**

Header text for the value column.

Returns

`PdfTable`

`public PdfTable AddKeyValueTable(IEnumerable<PdfKeyValueRow> rows, OfficeAlignment align = Left, PdfTableStyle? style = null, bool includeHeader = false, string keyHeader = "Key", string valueHeader = "Value")` [#](#method-addkeyvaluetable-collections-generic-ienumerable-officeimo-pdf-pdfkeyvaluerow-officeimo-officealignment-officeimo-pdf-pdftablestyle-boolean-string-string)

[PdfDocument.Blocks.Tables.cs:159](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Blocks.Tables.cs#L159)

Adds a two-column rich label/value table for document metadata, invoice facts, definition lists, and similar report sections.

Parameters

**rows System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfKeyValueRow> required**

Rich text label/value rows.

**align OfficeIMO.OfficeAlignment = Left optional**

Table alignment in the document flow.

**style OfficeIMO.Pdf.PdfTableStyle? = null optional**

Optional table style. The style is cloned before header-row settings are applied.

**includeHeader bool = false optional**

When true, emits a header row before the supplied values.

**keyHeader string = "Key" optional**

Header text for the label column.

**valueHeader string = "Value" optional**

Header text for the value column.

Returns

`PdfTable`

AddList 2 overloads

`public PdfList AddList(IEnumerable<string> items, OfficeAlignment align = Left, OfficeColor? color = null, PdfListStyle? style = null)` [#](#method-addlist-collections-generic-ienumerable-system-string-officeimo-officealignment-nullable-officeimo-officecolor-officeimo-pdf-pdfliststyle)

[PdfDocument.Blocks.Lists.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Blocks.Lists.cs#L9)

Appends a bulleted list of plain items.

Parameters

**items System.Collections.Generic.IEnumerable<string> required**

**align OfficeIMO.OfficeAlignment = Left optional**

**color OfficeIMO.OfficeColor? = null optional**

**style OfficeIMO.Pdf.PdfListStyle? = null optional**

Returns

`PdfList`

`public PdfList AddList(IEnumerable<PdfListItem> items, OfficeAlignment align = Left, OfficeColor? color = null, PdfListStyle? style = null)` [#](#method-addlist-collections-generic-ienumerable-officeimo-pdf-pdflistitem-officeimo-officealignment-nullable-officeimo-officecolor-officeimo-pdf-pdfliststyle)

[PdfDocument.Blocks.Lists.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Blocks.Lists.cs#L15)

Appends a bulleted list whose items can contain rich inline text runs.

Parameters

**items System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfListItem> required**

**align OfficeIMO.OfficeAlignment = Left optional**

**color OfficeIMO.OfficeColor? = null optional**

**style OfficeIMO.Pdf.PdfListStyle? = null optional**

Returns

`PdfList`

AddNumberedList 2 overloads

`public PdfList AddNumberedList(IEnumerable<string> items, OfficeAlignment align = Left, OfficeColor? color = null, int startNumber = 1, PdfListStyle? style = null)` [#](#method-addnumberedlist-collections-generic-ienumerable-system-string-officeimo-officealignment-nullable-officeimo-officecolor-int32-officeimo-pdf-pdfliststyle)

[PdfDocument.Blocks.Lists.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Blocks.Lists.cs#L22)

Appends a numbered list of plain items.

Parameters

**items System.Collections.Generic.IEnumerable<string> required**

**align OfficeIMO.OfficeAlignment = Left optional**

**color OfficeIMO.OfficeColor? = null optional**

**startNumber int = 1 optional**

**style OfficeIMO.Pdf.PdfListStyle? = null optional**

Returns

`PdfList`

`public PdfList AddNumberedList(IEnumerable<PdfListItem> items, OfficeAlignment align = Left, OfficeColor? color = null, int startNumber = 1, PdfListStyle? style = null)` [#](#method-addnumberedlist-collections-generic-ienumerable-officeimo-pdf-pdflistitem-officeimo-officealignment-nullable-officeimo-officecolor-int32-officeimo-pdf-pdfliststyle)

[PdfDocument.Blocks.Lists.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Blocks.Lists.cs#L29)

Appends a numbered list whose items can contain rich inline text runs.

Parameters

**items System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfListItem> required**

**align OfficeIMO.OfficeAlignment = Left optional**

**color OfficeIMO.OfficeColor? = null optional**

**startNumber int = 1 optional**

**style OfficeIMO.Pdf.PdfListStyle? = null optional**

Returns

`PdfList`

AddParagraph 2 overloads

`public PdfParagraph AddParagraph(string? text = null, OfficeAlignment align = Start, OfficeColor? color = null, PdfParagraphStyle? style = null)` [#](#method-addparagraph-string-officeimo-officealignment-nullable-officeimo-officecolor-officeimo-pdf-pdfparagraphstyle)

[PdfDocument.Blocks.Flow.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Blocks.Flow.cs#L14)

Appends a paragraph to the current flow and returns it.

Parameters

**text string? = null optional**

Optional first text run, formatted from the paragraph run defaults.

**align OfficeIMO.OfficeAlignment = Start optional**

Paragraph alignment. The default, Start, is the right edge for a paragraph whose first strong character is right-to-left.

**color OfficeIMO.OfficeColor? = null optional**

Optional text colour; it becomes [PdfTextRunDefaults.Color](/api/pdf/officeimo-pdf-pdftextrundefaults/) and the colour of runs that carry none.

**style OfficeIMO.Pdf.PdfParagraphStyle? = null optional**

Optional paragraph layout style.

Returns

`PdfParagraph` The paragraph. It stays editable until the document is laid out, so AddParagraph().AddText("x").SetBold() renders bold text.

`public PdfParagraph AddParagraph(Action<PdfParagraph> build, OfficeAlignment align = Start, OfficeColor? color = null, PdfParagraphStyle? style = null)` [#](#method-addparagraph-action-officeimo-pdf-pdfparagraph-officeimo-officealignment-nullable-officeimo-officecolor-officeimo-pdf-pdfparagraphstyle)

[PdfDocument.Blocks.Flow.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Blocks.Flow.cs#L26)

Appends a paragraph built by a callback and returns it.

Parameters

**build System.Action<OfficeIMO.Pdf.PdfParagraph> required**

Adds and formats the paragraph runs.

**align OfficeIMO.OfficeAlignment = Start optional**

Paragraph alignment. The default, Start, is the right edge for a paragraph whose first strong character is right-to-left.

**color OfficeIMO.OfficeColor? = null optional**

Optional text colour; it becomes [PdfTextRunDefaults.Color](/api/pdf/officeimo-pdf-pdftextrundefaults/) and the colour of runs that carry none.

**style OfficeIMO.Pdf.PdfParagraphStyle? = null optional**

Optional paragraph layout style.

Returns

`PdfParagraph`

AddTable 4 overloads

`public PdfTable AddTable(IEnumerable<string[]> rows, OfficeAlignment align = Left, PdfTableStyle? style = null)` [#](#method-addtable-collections-generic-ienumerable-system-string-officeimo-officealignment-officeimo-pdf-pdftablestyle)

[PdfDocument.Blocks.Tables.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Blocks.Tables.cs#L40)

Appends a table of plain text rows.

Parameters

**rows System.Collections.Generic.IEnumerable<string[]> required**

Rows of cell text, snapshotted during this call.

**align OfficeIMO.OfficeAlignment = Left optional**

Table alignment in the document flow.

**style OfficeIMO.Pdf.PdfTableStyle? = null optional**

Optional table style, including column layout, alignment, header rows and the visible caption.

Returns

`PdfTable`

`public PdfTable AddTable(IEnumerable<PdfTableCell[]> rows, OfficeAlignment align = Left, PdfTableStyle? style = null)` [#](#method-addtable-collections-generic-ienumerable-officeimo-pdf-pdftablecell-officeimo-officealignment-officeimo-pdf-pdftablestyle)

[PdfDocument.Blocks.Tables.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Blocks.Tables.cs#L47)

Appends a table of explicit cells, including spans, links, images, form fields and rich runs.

Parameters

**rows System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCell[]> required**

Rows of cells, snapshotted during this call.

**align OfficeIMO.OfficeAlignment = Left optional**

Table alignment in the document flow.

**style OfficeIMO.Pdf.PdfTableStyle? = null optional**

Optional table style, including column layout, alignment, header rows and the visible caption.

Returns

`PdfTable`

`public PdfTable AddTable(IEnumerable<string[]> rows)` [#](#method-addtable-collections-generic-ienumerable-system-string)

[PdfDocument.Blocks.Tables.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Blocks.Tables.cs#L51)

Appends a table of plain text rows with the document table style.

Parameters

**rows System.Collections.Generic.IEnumerable<string[]> required**

Returns

`PdfTable`

`public PdfTable AddTable(IEnumerable<PdfTableCell[]> rows)` [#](#method-addtable-collections-generic-ienumerable-officeimo-pdf-pdftablecell)

[PdfDocument.Blocks.Tables.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Blocks.Tables.cs#L55)

Appends a table of explicit cells with the document table style.

Parameters

**rows System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCell[]> required**

Returns

`PdfTable`

`public PdfTable AddTable<T>(IEnumerable<T?> rows, OfficeTableOptions? options = null)` [#](#method-addtable-collections-generic-ienumerable-officeimo-officetableoptions)

[PdfDocument.TypedTables.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.TypedTables.cs#L17)

Appends a table from typed properties, tuples, or string-keyed dictionaries using the shared bounded projection engine.

Type Parameters

**T**

Parameters

**rows System.Collections.Generic.IEnumerable<T?> required**

Source rows, enumerated once while this call snapshots the table.

**options OfficeIMO.OfficeTableOptions? = null optional**

Common column selection, ordering, header, formatting and alignment options.

Returns

`PdfTable`

Analyze 2 overloads

`public PdfAnalysisReport Analyze(PdfComplianceProfile complianceProfile = None)` [#](#method-analyze-officeimo-pdf-pdfcomplianceprofile)

[PdfDocument.Operations.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Operations.cs#L41)

Produces one consolidated health and capability report. Supply a compliance profile to include artifact readback readiness.

Parameters

**complianceProfile OfficeIMO.Pdf.PdfComplianceProfile = None optional**

Returns

`PdfAnalysisReport`

`public PdfAnalysisReport Analyze(PdfComplianceProfile complianceProfile, CancellationToken cancellationToken)` [#](#method-analyze-officeimo-pdf-pdfcomplianceprofile-threading-cancellationtoken)

[PdfDocument.Operations.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Operations.cs#L49)

Produces one consolidated health and capability report with cooperative cancellation.

Parameters

**complianceProfile OfficeIMO.Pdf.PdfComplianceProfile required**

**cancellationToken System.Threading.CancellationToken required**

Returns

`PdfAnalysisReport`

`public PdfAppendOnlyMutationReport AnalyzeAppendOnlyMutation(PdfLoadOptions? options = null)` [#](#method-analyzeappendonlymutation-officeimo-pdf-pdfloadoptions)

[PdfDocument.Operations.cs:197](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Operations.cs#L197)

Analyzes which append-only mutation actions OfficeIMO.Pdf can safely attempt for this PDF.

Parameters

**options OfficeIMO.Pdf.PdfLoadOptions? = null optional**

Returns

`PdfAppendOnlyMutationReport`

AnalyzeTextEncoding 2 overloads

`public IReadOnlyList<PdfTextEncodingDiagnostic> AnalyzeTextEncoding()` [#](#method-analyzetextencoding)

[PdfDocument.TextDiagnostics.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.TextDiagnostics.cs#L38)

Analyzes generated document text against the configured PDF text encoding before rendering.

Returns

`IReadOnlyList<PdfTextEncodingDiagnostic>`

`public IReadOnlyList<PdfTextEncodingDiagnostic> AnalyzeTextEncoding(CancellationToken cancellationToken)` [#](#method-analyzetextencoding-threading-cancellationtoken)

[PdfDocument.TextDiagnostics.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.TextDiagnostics.cs#L47)

Analyzes generated PDF text while honoring cancellation during document traversal.

Parameters

**cancellationToken System.Threading.CancellationToken required**

Token checked before preflight and while visiting generated content.

Returns

`IReadOnlyList<PdfTextEncodingDiagnostic>` Encoding diagnostics in generated document order.

Exceptions

- `OperationCanceledException` – The supplied token is canceled.

AppendMetadataRevision 2 overloads

`public PdfDocument AppendMetadataRevision(CancellationToken cancellationToken, string? title = null, string? author = null, string? subject = null, string? keywords = null, bool createXmpMetadata = false)` [#](#method-appendmetadatarevision-threading-cancellationtoken-string-string-string-string-boolean)

[PdfDocument.MetadataCancellation.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.MetadataCancellation.cs#L25)

Appends a metadata revision with cancellation through planning, serialization and output adoption.

Parameters

**cancellationToken System.Threading.CancellationToken required**

**title string? = null optional**

**author string? = null optional**

**subject string? = null optional**

**keywords string? = null optional**

**createXmpMetadata bool = false optional**

Returns

`PdfDocument`

`public PdfDocument AppendMetadataRevision(string? title = null, string? author = null, string? subject = null, string? keywords = null, bool createXmpMetadata = false)` [#](#method-appendmetadatarevision-string-string-string-string-boolean)

[PdfDocument.Operations.cs:753](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Operations.cs#L753)

Appends a metadata-only incremental revision without rewriting the existing PDF bytes.

Parameters

**title string? = null optional**

**author string? = null optional**

**subject string? = null optional**

**keywords string? = null optional**

**createXmpMetadata bool = false optional**

Returns

`PdfDocument`

AssessCompliance 3 overloads

`public PdfComplianceReadinessReport AssessCompliance()` [#](#method-assesscompliance)

[PdfDocument.IO.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.IO.cs#L8)

Analyzes this generated document against its configured compliance profile using the same layout path as PDF output.

Returns

`PdfComplianceReadinessReport`

`public PdfComplianceReadinessReport AssessCompliance(PdfComplianceProfile profile)` [#](#method-assesscompliance-officeimo-pdf-pdfcomplianceprofile)

[PdfDocument.IO.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.IO.cs#L16)

Analyzes this document against a formal compliance profile. Generated documents use layout evidence; opened documents use artifact readback evidence.

Parameters

**profile OfficeIMO.Pdf.PdfComplianceProfile required**

Compliance profile to assess without enabling formal profile generation.

Returns

`PdfComplianceReadinessReport`

`public PdfComplianceReadinessReport AssessCompliance(PdfComplianceProfile profile, CancellationToken cancellationToken)` [#](#method-assesscompliance-officeimo-pdf-pdfcomplianceprofile-threading-cancellationtoken)

[PdfDocument.IO.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.IO.cs#L21)

Analyzes a compliance profile while observing cancellation during opened-PDF readback.

Parameters

**profile OfficeIMO.Pdf.PdfComplianceProfile required**

**cancellationToken System.Threading.CancellationToken required**

Returns

`PdfComplianceReadinessReport`

AssessComplianceProof 2 overloads

`public PdfComplianceProofReport AssessComplianceProof(IEnumerable<PdfExternalValidationResult>? externalValidations = null)` [#](#method-assesscomplianceproof-collections-generic-ienumerable-officeimo-pdf-pdfexternalvalidationresult)

[PdfDocument.IO.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.IO.cs#L37)

Combines generated-document compliance readiness for the configured profile with external validator evidence.

Parameters

**externalValidations System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfExternalValidationResult>? = null optional**

Returns

`PdfComplianceProofReport`

`public PdfComplianceProofReport AssessComplianceProof(PdfComplianceProfile profile, IEnumerable<PdfExternalValidationResult>? externalValidations = null)` [#](#method-assesscomplianceproof-officeimo-pdf-pdfcomplianceprofile-collections-generic-ienumerable-officeimo-pdf-pdfexternalvalidationresult)

[PdfDocument.IO.cs:86](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.IO.cs#L86)

Combines generated-document compliance readiness for a formal profile with external validator evidence.

Parameters

**profile OfficeIMO.Pdf.PdfComplianceProfile required**

Compliance profile to assess without enabling formal profile generation.

**externalValidations System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfExternalValidationResult>? = null optional**

Optional external validator results to combine with OfficeIMO.Pdf readiness evidence.

Returns

`PdfComplianceProofReport`

`public PdfDeclaredComplianceClaimsReport AssessDeclaredComplianceClaims(IEnumerable<PdfExternalValidationResult>? externalValidations = null)` [#](#method-assessdeclaredcomplianceclaims-collections-generic-ienumerable-officeimo-pdf-pdfexternalvalidationresult)

[PdfDocument.DeclaredCompliance.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.DeclaredCompliance.cs#L10)

Assesses PDF/A and PDF/UA declarations found in XMP metadata against the exact PDF bytes. Declared metadata alone is never accepted as conformance proof.

Parameters

**externalValidations System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfExternalValidationResult>? = null optional**

Returns

`PdfDeclaredComplianceClaimsReport`

AssessMutations 2 overloads

`public PdfMutationPortfolioReport AssessMutations(IEnumerable<PdfMutationOperation>? operations = null, IEnumerable<string>? fieldNames = null, PdfLoadOptions? options = null, PdfMutationExecutionPreference executionPreference = Automatic)` [#](#member-7314e430672c1667fe48ad3e)

[PdfDocument.MutationPortfolio.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.MutationPortfolio.cs#L14)

Assesses several mutation families against one shared preflight snapshot.

Parameters

**operations System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfMutationOperation>? = null optional**

**fieldNames System.Collections.Generic.IEnumerable<string>? = null optional**

**options OfficeIMO.Pdf.PdfLoadOptions? = null optional**

**executionPreference OfficeIMO.Pdf.PdfMutationExecutionPreference = Automatic optional**

Returns

`PdfMutationPortfolioReport`

`public PdfMutationPortfolioReport AssessMutations(CancellationToken cancellationToken, IEnumerable<PdfMutationOperation>? operations = null, IEnumerable<string>? fieldNames = null, PdfLoadOptions? options = null, PdfMutationExecutionPreference executionPreference = Automatic)` [#](#member-8b9227b23c0f925da9240205)

[PdfDocument.MutationPortfolio.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.MutationPortfolio.cs#L27)

Assesses mutation families with cooperative cancellation and one shared preflight snapshot.

Parameters

**cancellationToken System.Threading.CancellationToken required**

**operations System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfMutationOperation>? = null optional**

**fieldNames System.Collections.Generic.IEnumerable<string>? = null optional**

**options OfficeIMO.Pdf.PdfLoadOptions? = null optional**

**executionPreference OfficeIMO.Pdf.PdfMutationExecutionPreference = Automatic optional**

Returns

`PdfMutationPortfolioReport`

AssessRenderCompatibility 2 overloads

`public PdfRenderCompatibilityReport AssessRenderCompatibility(PdfLoadOptions? options = null)` [#](#method-assessrendercompatibility-officeimo-pdf-pdfloadoptions)

[PdfDocument.Operations.cs:209](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Operations.cs#L209)

Assesses managed page-render fidelity without rasterizing or writing image artifacts.

Parameters

**options OfficeIMO.Pdf.PdfLoadOptions? = null optional**

Returns

`PdfRenderCompatibilityReport`

`public PdfRenderCompatibilityReport AssessRenderCompatibility(PdfLoadOptions? options, PdfPageRenderOptions? renderOptions)` [#](#method-assessrendercompatibility-officeimo-pdf-pdfloadoptions-officeimo-pdf-pdfpagerenderoptions)

[PdfDocument.Operations.cs:214](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Operations.cs#L214)

Assesses managed page-render fidelity with configurable per-page diagnostic limits.

Parameters

**options OfficeIMO.Pdf.PdfLoadOptions? required**

**renderOptions OfficeIMO.Pdf.PdfPageRenderOptions? required**

Returns

`PdfRenderCompatibilityReport`

`public PdfDocument Compose(Action<PdfDocumentBuilder> compose)` [#](#method-compose-action-officeimo-pdf-pdfdocumentbuilder)

[PdfDocument.Blocks.Flow.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Blocks.Flow.cs#L44)

Higher-level composition model (page size/margins/footer + content), similar to other document DSLs. Sugar only; composes into the same PdfDocument blocks and options.

Parameters

**compose System.Action<OfficeIMO.Pdf.PdfDocumentBuilder> required**

Returns

`PdfDocument`

`public PdfAConversionResult ConvertToPdfA(PdfAConversionOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-converttopdfa-officeimo-pdf-pdfaconversionoptions-threading-cancellationtoken)

[PdfDocument.PdfAConversion.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Conversion/PdfA/PdfDocument.PdfAConversion.cs#L12)

Converts this PDF to PDF/A-2b, 2u, 3b, 3u, 4 or 4f, as [PdfAConversionOptions.Profile](/api/pdf/officeimo-pdf-pdfaconversionoptions/) selects (PDF/A-2b by default). Conversion fixes what it can without moving anything on the page and reports every change. When something cannot be made compliant without changing the content, nothing is produced and the result lists every violation by object. An encrypted PDF must have been loaded with its owner password in [PdfLoadOptions.Password](/api/pdf/officeimo-pdf-pdfloadoptions/).

Parameters

**options OfficeIMO.Pdf.PdfAConversionOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`PdfAConversionResult`

Create 3 overloads

`public static PdfDocument Create(string filePath, PdfCreateOptions? options = null)` [#](#method-create-string-officeimo-pdf-pdfcreateoptions)

[PdfDocument.Lifecycle.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Lifecycle.cs#L18)

Creates an empty PDF associated with a path. The file is written on Save.

Parameters

**filePath string required**

**options OfficeIMO.Pdf.PdfCreateOptions? = null optional**

Returns

`PdfDocument`

`public static PdfDocument Create(PdfCreateOptions? options = null)` [#](#method-create-officeimo-pdf-pdfcreateoptions)

[PdfDocument.Meta.cs:79](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L79)

Creates a new, empty PDF document with optional options.

Parameters

**options OfficeIMO.Pdf.PdfCreateOptions? = null optional**

Page size, margins and default font options. When null, sensible defaults are used.

Returns

`PdfDocument` New [PdfDocument](/api/pdf/officeimo-pdf-pdfdocument/) instance.

`public static PdfDocument Create(Action<PdfDocumentBuilder> compose, PdfCreateOptions? options = null)` [#](#method-create-action-officeimo-pdf-pdfdocumentbuilder-officeimo-pdf-pdfcreateoptions)

[PdfDocument.Meta.cs:103](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L103)

Creates and composes a PDF document through the canonical authoring DSL.

Parameters

**compose System.Action<OfficeIMO.Pdf.PdfDocumentBuilder> required**

Document composition callback.

**options OfficeIMO.Pdf.PdfCreateOptions? = null optional**

Optional document-wide rendering, catalog, security, and compliance options.

Returns

`PdfDocument` The composed [PdfDocument](/api/pdf/officeimo-pdf-pdfdocument/).

CreateComplianceArtifact 2 overloads

`public PdfComplianceArtifact CreateComplianceArtifact()` [#](#method-createcomplianceartifact)

[PdfDocument.IO.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.IO.cs#L43)

Atomically renders or snapshots this document with readiness evidence for its configured compliance profile.

Returns

`PdfComplianceArtifact`

`public PdfComplianceArtifact CreateComplianceArtifact(PdfComplianceProfile profile)` [#](#method-createcomplianceartifact-officeimo-pdf-pdfcomplianceprofile)

[PdfDocument.IO.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.IO.cs#L51)

Atomically renders or snapshots this document with readiness evidence for profile. Use the returned artifact's bytes for external validation, then call its [PdfComplianceArtifact.AssessProof](/api/pdf/officeimo-pdf-pdfcomplianceartifact/) method with those validator results.

Parameters

**profile OfficeIMO.Pdf.PdfComplianceProfile required**

Returns

`PdfComplianceArtifact`

`public PdfDebuggerReport Debug(PdfDebuggerOptions? options = null, PdfLoadOptions? readOptions = null)` [#](#method-debug-officeimo-pdf-pdfdebuggeroptions-officeimo-pdf-pdfloadoptions)

[PdfDocument.Operations.cs:246](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Operations.cs#L246)

Creates a bounded debugger projection of objects, revisions, pages, resources, and content operators.

Parameters

**options OfficeIMO.Pdf.PdfDebuggerOptions? = null optional**

**readOptions OfficeIMO.Pdf.PdfLoadOptions? = null optional**

Returns

`PdfDebuggerReport`

`public PdfDiagnosticReport Diagnostics(PdfLoadOptions? options = null)` [#](#method-diagnostics-officeimo-pdf-pdfloadoptions)

[PdfDocument.Operations.cs:233](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Operations.cs#L233)

Builds a combined PDF diagnostic report for this document.

Parameters

**options OfficeIMO.Pdf.PdfLoadOptions? = null optional**

Returns

`PdfDiagnosticReport`

`public void Dispose()` [#](#method-dispose)

[PdfDocument.Lifecycle.cs:108](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Lifecycle.cs#L108)

Completes this document's lifetime. Caller-owned streams remain open.

`public Task DisposeAsync()` [#](#method-disposeasync)

[PdfDocument.Lifecycle.cs:115](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Lifecycle.cs#L115)

Completes this in-memory document's lifetime asynchronously.

Returns

`Task`

`public IReadOnlyList<string> ExtractAssets(string outputDirectory, PdfAssetExtractionOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-extractassets-string-officeimo-pdf-pdfassetextractionoptions-threading-cancellationtoken)

[PdfDocument.Assets.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Assets.cs#L8)

Extracts image and font files, ICC profiles, page SVGs and JSON and HTML reports into a new directory.

Parameters

**outputDirectory string required**

**options OfficeIMO.Pdf.PdfAssetExtractionOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`IReadOnlyList<string>` The relative paths of the files written, using forward slashes.

`public IReadOnlyList<string> ExtractAssetsTo(Func<string, Stream> createOutput, PdfAssetExtractionOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-extractassetsto-func-system-string-system-io-stream-officeimo-pdf-pdfassetextractionoptions-threading-cancellationtoken)

[PdfDocument.Assets.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Assets.cs#L16)

Extracts a PDF asset bundle through a factory that opens one writable stream per relative path.

Parameters

**createOutput System.Func<string, System.IO.Stream> required**

**options OfficeIMO.Pdf.PdfAssetExtractionOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`IReadOnlyList<string>` The relative paths of the files written, using forward slashes.

`public IReadOnlyList<PdfExtractedAttachment> ExtractAttachments()` [#](#method-extractattachments)

[PdfDocument.Reading.cs:105](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L105)

Extracts the document's embedded attachment payloads.

Returns

`IReadOnlyList<PdfExtractedAttachment>`

`public IReadOnlyList<string> ExtractEmbeddedFonts(string outputDirectory, CancellationToken cancellationToken = default)` [#](#method-extractembeddedfonts-string-threading-cancellationtoken)

[PdfDocument.Assets.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Assets.cs#L27)

Saves distinct decoded embedded font programs from page resources and reachable appearances into a new directory.

Parameters

**outputDirectory string required**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`IReadOnlyList<string>` The relative paths of the saved font files, using forward slashes.

`public IReadOnlyList<PdfStructuredHeadingPage> ExtractHeadingsByPage(PdfTextLayoutOptions? options = null)` [#](#method-extractheadingsbypage-officeimo-pdf-pdftextlayoutoptions)

[PdfDocument.Reading.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L41)

Extracts detected headings grouped by page.

Parameters

**options OfficeIMO.Pdf.PdfTextLayoutOptions? = null optional**

Returns

`IReadOnlyList<PdfStructuredHeadingPage>`

`public IReadOnlyList<PdfExtractedImage> ExtractImages()` [#](#method-extractimages)

[PdfDocument.Reading.cs:102](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L102)

Extracts image XObjects from all pages in document order.

Returns

`IReadOnlyList<PdfExtractedImage>`

`public IReadOnlyList<PdfStructuredListItemPage> ExtractListItemsByPage(PdfTextLayoutOptions? options = null)` [#](#method-extractlistitemsbypage-officeimo-pdf-pdftextlayoutoptions)

[PdfDocument.Reading.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L45)

Extracts list items grouped by page.

Parameters

**options OfficeIMO.Pdf.PdfTextLayoutOptions? = null optional**

Returns

`IReadOnlyList<PdfStructuredListItemPage>`

`public string ExtractMarkdown(PdfLogicalMarkdownOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-extractmarkdown-officeimo-pdf-pdflogicalmarkdownoptions-threading-cancellationtoken)

[PdfDocument.Reading.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L21)

Extracts Markdown text from the bounded logical reading model.

Parameters

**options OfficeIMO.Pdf.PdfLogicalMarkdownOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`string`

`public IReadOnlyList<PdfStructuredParagraphPage> ExtractParagraphsByPage(PdfTextLayoutOptions? options = null)` [#](#method-extractparagraphsbypage-officeimo-pdf-pdftextlayoutoptions)

[PdfDocument.Reading.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L37)

Extracts paragraphs grouped by page.

Parameters

**options OfficeIMO.Pdf.PdfTextLayoutOptions? = null optional**

Returns

`IReadOnlyList<PdfStructuredParagraphPage>`

`public IReadOnlyList<PdfStructuredPage> ExtractStructuredPages(PdfTextLayoutOptions? options = null)` [#](#method-extractstructuredpages-officeimo-pdf-pdftextlayoutoptions)

[PdfDocument.Reading.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L29)

Extracts structured pages with paragraphs, lists, headings and tables.

Parameters

**options OfficeIMO.Pdf.PdfTextLayoutOptions? = null optional**

Returns

`IReadOnlyList<PdfStructuredPage>`

`public IReadOnlyList<PdfStructuredTablePage> ExtractTablesByPage(PdfTextLayoutOptions? options = null)` [#](#method-extracttablesbypage-officeimo-pdf-pdftextlayoutoptions)

[PdfDocument.Reading.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L33)

Extracts detected tables grouped by page.

Parameters

**options OfficeIMO.Pdf.PdfTextLayoutOptions? = null optional**

Returns

`IReadOnlyList<PdfStructuredTablePage>`

`public string ExtractText(CancellationToken cancellationToken = default)` [#](#method-extracttext-threading-cancellationtoken)

[PdfDocument.Reading.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L17)

Extracts page text through the document's bounded read pipeline.

Parameters

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`string`

`public string ExtractTextWithColumns(PdfTextLayoutOptions? options = null)` [#](#method-extracttextwithcolumns-officeimo-pdf-pdftextlayoutoptions)

[PdfDocument.Reading.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L25)

Extracts text with column-aware reading order.

Parameters

**options OfficeIMO.Pdf.PdfTextLayoutOptions? = null optional**

Returns

`string`

`public PdfInteractiveContentFlattenResult FlattenInteractiveContent(PdfInteractiveContentFlattenOptions? options = null)` [#](#method-flatteninteractivecontent-officeimo-pdf-pdfinteractivecontentflattenoptions)

[PdfDocument.InteractiveFlattening.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.InteractiveFlattening.cs#L6)

Flattens readable AcroForm fields and supported visual annotations into one new PDF artifact.

Parameters

**options OfficeIMO.Pdf.PdfInteractiveContentFlattenOptions? = null optional**

Returns

`PdfInteractiveContentFlattenResult`

FlattenVisualAnnotations 2 overloads

`public PdfDocument FlattenVisualAnnotations()` [#](#method-flattenvisualannotations)

[PdfDocument.Operations.cs:715](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Operations.cs#L715)

Creates a new PDF with visual annotation appearance streams painted into page content where supported.

Returns

`PdfDocument`

`public PdfDocument FlattenVisualAnnotations(CancellationToken cancellationToken)` [#](#method-flattenvisualannotations-threading-cancellationtoken)

[PdfDocument.Operations.cs:719](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Operations.cs#L719)

Flattens supported annotation appearances with cooperative cancellation.

Parameters

**cancellationToken System.Threading.CancellationToken required**

Returns

`PdfDocument`

`public PdfPageInteractionMap GetEditingInteractions(int pageNumber)` [#](#method-geteditinginteractions-int32)

[PdfDocument.EditingInteractions.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.EditingInteractions.cs#L7)

Reads visual hit regions for permitted annotation and form editing, without extracting page text or images.

Parameters

**pageNumber int required**

Returns

`PdfPageInteractionMap`

GetPageLayouts 2 overloads

`public IReadOnlyList<PdfPageLayoutInfo> GetPageLayouts(PdfLoadOptions? options = null)` [#](#method-getpagelayouts-officeimo-pdf-pdfloadoptions)

[PdfDocument.PageLayouts.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.PageLayouts.cs#L8)

Reads page geometry without extracting document content or requiring copy permission.

Parameters

**options OfficeIMO.Pdf.PdfLoadOptions? = null optional**

Returns

`IReadOnlyList<PdfPageLayoutInfo>`

`public IReadOnlyList<PdfPageLayoutInfo> GetPageLayouts(PdfLoadOptions? options, CancellationToken cancellationToken)` [#](#method-getpagelayouts-officeimo-pdf-pdfloadoptions-threading-cancellationtoken)

[PdfDocument.PageLayouts.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.PageLayouts.cs#L17)

Reads page geometry with cooperative cancellation, without extracting document content or requiring copy permission.

Parameters

**options OfficeIMO.Pdf.PdfLoadOptions? required**

**cancellationToken System.Threading.CancellationToken required**

Returns

`IReadOnlyList<PdfPageLayoutInfo>`

GetPrintablePageLayouts 2 overloads

`public IReadOnlyList<PdfPageLayoutInfo> GetPrintablePageLayouts(PdfLoadOptions? options = null)` [#](#method-getprintablepagelayouts-officeimo-pdf-pdfloadoptions)

[PdfDocument.PageLayouts.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.PageLayouts.cs#L25)

Reads page geometry for printing after enforcing the authenticated document permissions.

Parameters

**options OfficeIMO.Pdf.PdfLoadOptions? = null optional**

Returns

`IReadOnlyList<PdfPageLayoutInfo>`

`public IReadOnlyList<PdfPageLayoutInfo> GetPrintablePageLayouts(PdfLoadOptions? options, CancellationToken cancellationToken)` [#](#method-getprintablepagelayouts-officeimo-pdf-pdfloadoptions-threading-cancellationtoken)

[PdfDocument.PageLayouts.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.PageLayouts.cs#L34)

Reads page geometry for printing with cooperative cancellation after enforcing the authenticated document permissions.

Parameters

**options OfficeIMO.Pdf.PdfLoadOptions? required**

**cancellationToken System.Threading.CancellationToken required**

Returns

`IReadOnlyList<PdfPageLayoutInfo>`

Inspect 2 overloads

`public PdfDocumentInfo Inspect(PdfLoadOptions? options = null)` [#](#method-inspect-officeimo-pdf-pdfloadoptions)

[PdfDocument.Operations.cs:100](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Operations.cs#L100)

Inspects metadata, pages, annotations, fields, and catalog-level state.

Parameters

**options OfficeIMO.Pdf.PdfLoadOptions? = null optional**

Returns

`PdfDocumentInfo`

`public PdfDocumentInfo Inspect(PdfLoadOptions? options, CancellationToken cancellationToken)` [#](#method-inspect-officeimo-pdf-pdfloadoptions-threading-cancellationtoken)

[PdfDocument.Operations.cs:106](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Operations.cs#L106)

Inspects metadata, pages, annotations, fields, and catalog-level state with cooperative cancellation.

Parameters

**options OfficeIMO.Pdf.PdfLoadOptions? required**

**cancellationToken System.Threading.CancellationToken required**

Returns

`PdfDocumentInfo`

`public PdfDocumentViewInfo InspectForViewing(PdfLoadOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-inspectforviewing-officeimo-pdf-pdfloadoptions-threading-cancellationtoken)

[PdfDocument.Viewing.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Viewing.cs#L9)

Inspects authenticated page geometry for viewing without requiring content-copy permission. Full logical inspection is included only when extraction is authorized. This does not change mutation or extraction policy.

Parameters

**options OfficeIMO.Pdf.PdfLoadOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`PdfDocumentViewInfo`

`public PdfDocumentViewInfo InspectGeometryForViewing(PdfLoadOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-inspectgeometryforviewing-officeimo-pdf-pdfloadoptions-threading-cancellationtoken)

[PdfDocument.Viewing.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Viewing.cs#L16)

Inspects authenticated page geometry and permissions without decoding logical page content, even when extraction is permitted.

Parameters

**options OfficeIMO.Pdf.PdfLoadOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`PdfDocumentViewInfo`

`public OfficeHiddenDataReport InspectHiddenData(CancellationToken cancellationToken = default)` [#](#method-inspecthiddendata-threading-cancellationtoken)

[PdfDocument.Operations.cs:907](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Operations.cs#L907)

Reports what would leave with this PDF: document information and XMP metadata, comments, optional-content layers, attachments, bookmarks, scripts and other active content, and Content Credentials. Nothing is changed.

Parameters

**cancellationToken System.Threading.CancellationToken = default optional**

Cancels the inspection.

Returns

`OfficeHiddenDataReport`

Load 8 overloads

`public static PdfDocument Load(byte[] pdf, PdfLoadOptions? loadOptions = null)` [#](#method-load-byte-officeimo-pdf-pdfloadoptions)

[PdfDocument.Meta.cs:119](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L119)

Loads a PDF from a byte array without copying it.

Parameters

**pdf byte[] required**

The complete PDF file. The document reads it in place, so keep it unchanged while the document is in use.

**loadOptions OfficeIMO.Pdf.PdfLoadOptions? = null optional**

Optional password, parsing mode, and read limits.

Returns

`PdfDocument`

`public static PdfDocument Load(byte[] pdf, PdfLoadOptions? loadOptions, CancellationToken cancellationToken)` [#](#method-load-byte-officeimo-pdf-pdfloadoptions-threading-cancellationtoken)

[PdfDocument.Meta.cs:129](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L129)

Loads a PDF from a byte array without copying it, with cooperative cancellation.

Parameters

**pdf byte[] required**

The complete PDF file. The document reads it in place, so keep it unchanged while the document is in use.

**loadOptions OfficeIMO.Pdf.PdfLoadOptions? required**

Optional password, parsing mode, and read limits.

**cancellationToken System.Threading.CancellationToken required**

Cancels the initial parse.

Returns

`PdfDocument`

`public static PdfDocument Load(ReadOnlyMemory<byte> pdf, PdfLoadOptions? loadOptions = null)` [#](#method-load-readonlymemory-system-byte-officeimo-pdf-pdfloadoptions)

[PdfDocument.Meta.cs:142](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L142)

Loads the supplied PDF memory window without copying it.

Parameters

**pdf System.ReadOnlyMemory<byte> required**

The exact PDF bytes, including when the input is a slice of a larger buffer.

**loadOptions OfficeIMO.Pdf.PdfLoadOptions? = null optional**

Optional password, parsing mode, and read limits.

Returns

`PdfDocument`

`public static PdfDocument Load(ReadOnlyMemory<byte> pdf, PdfLoadOptions? loadOptions, CancellationToken cancellationToken)` [#](#method-load-readonlymemory-system-byte-officeimo-pdf-pdfloadoptions-threading-cancellationtoken)

[PdfDocument.Meta.cs:150](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L150)

Loads the supplied PDF memory window without copying it, with cooperative cancellation.

Parameters

**pdf System.ReadOnlyMemory<byte> required**

The exact PDF bytes. Keep the underlying memory available and unchanged while the document is in use.

**loadOptions OfficeIMO.Pdf.PdfLoadOptions? required**

Optional password, parsing mode, and read limits.

**cancellationToken System.Threading.CancellationToken required**

Cancels the initial parse.

Returns

`PdfDocument`

`public static PdfDocument Load(string path, PdfLoadOptions? loadOptions = null)` [#](#method-load-string-officeimo-pdf-pdfloadoptions)

[PdfDocument.Meta.cs:182](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L182)

Loads an existing PDF from a bounded file snapshot.

Parameters

**path string required**

**loadOptions OfficeIMO.Pdf.PdfLoadOptions? = null optional**

Returns

`PdfDocument`

`public static PdfDocument Load(Stream stream, PdfLoadOptions? loadOptions = null)` [#](#method-load-io-stream-officeimo-pdf-pdfloadoptions)

[PdfDocument.Meta.cs:192](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L192)

Loads a complete PDF from a readable stream. Seekable streams are read from the beginning and restored.

Parameters

**stream System.IO.Stream required**

**loadOptions OfficeIMO.Pdf.PdfLoadOptions? = null optional**

Returns

`PdfDocument`

`public static PdfDocument Load(string path, PdfLoadOptions? loadOptions, CancellationToken cancellationToken)` [#](#method-load-string-officeimo-pdf-pdfloadoptions-threading-cancellationtoken)

[PdfDocument.Meta.cs:196](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L196)

Loads a bounded file snapshot with cooperative cancellation.

Parameters

**path string required**

**loadOptions OfficeIMO.Pdf.PdfLoadOptions? required**

**cancellationToken System.Threading.CancellationToken required**

Returns

`PdfDocument`

`public static PdfDocument Load(Stream stream, PdfLoadOptions? loadOptions, CancellationToken cancellationToken)` [#](#method-load-io-stream-officeimo-pdf-pdfloadoptions-threading-cancellationtoken)

[PdfDocument.Meta.cs:200](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L200)

Loads a bounded stream snapshot with cooperative cancellation and preserves seekable stream position.

Parameters

**stream System.IO.Stream required**

**loadOptions OfficeIMO.Pdf.PdfLoadOptions? required**

**cancellationToken System.Threading.CancellationToken required**

Returns

`PdfDocument`

LoadAsync 2 overloads

`public static async Task<PdfDocument> LoadAsync(string path, PdfLoadOptions? loadOptions = null, CancellationToken cancellationToken = default)` [#](#method-loadasync-string-officeimo-pdf-pdfloadoptions-threading-cancellationtoken)

Asynchronously loads an existing PDF from a bounded file snapshot.

Parameters

**path string required**

**loadOptions OfficeIMO.Pdf.PdfLoadOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<PdfDocument>`

`public static async Task<PdfDocument> LoadAsync(Stream stream, PdfLoadOptions? loadOptions = null, CancellationToken cancellationToken = default)` [#](#method-loadasync-io-stream-officeimo-pdf-pdfloadoptions-threading-cancellationtoken)

Asynchronously loads a complete PDF from a readable caller-owned stream.

Parameters

**stream System.IO.Stream required**

**loadOptions OfficeIMO.Pdf.PdfLoadOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<PdfDocument>`

LoadSeekable 3 overloads

`public static PdfDocument LoadSeekable(Stream stream, PdfLoadOptions? loadOptions = null, CancellationToken cancellationToken = default)` [#](#method-loadseekable-io-stream-officeimo-pdf-pdfloadoptions-threading-cancellationtoken)

[PdfDocument.Seekable.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Seekable.cs#L13)

Loads a PDF from the current position of a readable seekable stream.

Parameters

**stream System.IO.Stream required**

**loadOptions OfficeIMO.Pdf.PdfLoadOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`PdfDocument`

`public static PdfDocument LoadSeekable(Stream stream, long length, PdfLoadOptions? loadOptions = null, CancellationToken cancellationToken = default)` [#](#method-loadseekable-io-stream-int64-officeimo-pdf-pdfloadoptions-threading-cancellationtoken)

[PdfDocument.Seekable.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Seekable.cs#L23)

Loads a PDF stored in the specified stream window starting at the current position.

Parameters

**stream System.IO.Stream required**

A readable seekable stream kept available and unchanged while the document is used.

**length long required**

Length of the complete PDF window in bytes.

**loadOptions OfficeIMO.Pdf.PdfLoadOptions? = null optional**

Optional reader settings and limits.

**cancellationToken System.Threading.CancellationToken = default optional**

Cancels the initial read.

Returns

`PdfDocument`

`public static PdfDocument LoadSeekable(string path, PdfLoadOptions? loadOptions = null, CancellationToken cancellationToken = default)` [#](#method-loadseekable-string-officeimo-pdf-pdfloadoptions-threading-cancellationtoken)

[PdfDocument.Seekable.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Seekable.cs#L30)

Loads a PDF for bounded reads when the system can exclude input writes.

Parameters

**path string required**

**loadOptions OfficeIMO.Pdf.PdfLoadOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`PdfDocument`

Merge 2 overloads

`public static PdfDocument Merge(IEnumerable<PdfDocument> documents, PdfMergeOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-merge-collections-generic-ienumerable-officeimo-pdf-pdfdocument-officeimo-pdf-pdfmergeoptions-threading-cancellationtoken)

[PdfDocument.Merge.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Merge.cs#L6)

Merges documents in order using one structure policy.

Parameters

**documents System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfDocument> required**

**options OfficeIMO.Pdf.PdfMergeOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`PdfDocument`

`public static PdfDocument Merge(IEnumerable<PdfDocument> documents, PdfMergeOptions? options, out PdfMergeReport report, CancellationToken cancellationToken = default)` [#](#method-merge-collections-generic-ienumerable-officeimo-pdf-pdfdocument-officeimo-pdf-pdfmergeoptions-officeimo-pdf-pdfmergereport-threading-cancellationtoken)

[PdfDocument.Merge.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Merge.cs#L11)

Merges documents and returns the completed policy and readback report.

Parameters

**documents System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfDocument> required**

**options OfficeIMO.Pdf.PdfMergeOptions? required**

**report OfficeIMO.Pdf.PdfMergeReport required**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`PdfDocument`

MergeWith 6 overloads

`public PdfDocument MergeWith(PdfDocument document, PdfMergeOptions options)` [#](#method-mergewith-officeimo-pdf-pdfdocument-officeimo-pdf-pdfmergeoptions)

[PdfDocument.Merge.cs:108](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Merge.cs#L108)

Merges this PDF with another loaded or generated PDF using an explicit structure policy.

Parameters

**document OfficeIMO.Pdf.PdfDocument required**

**options OfficeIMO.Pdf.PdfMergeOptions required**

Returns

`PdfDocument`

`public PdfDocument MergeWith(PdfDocument document, PdfMergeOptions options, CancellationToken cancellationToken)` [#](#method-mergewith-officeimo-pdf-pdfdocument-officeimo-pdf-pdfmergeoptions-threading-cancellationtoken)

[PdfDocument.Merge.cs:122](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Merge.cs#L122)

Merges this PDF with another document using an explicit structure policy and cooperative cancellation.

Parameters

**document OfficeIMO.Pdf.PdfDocument required**

**options OfficeIMO.Pdf.PdfMergeOptions required**

**cancellationToken System.Threading.CancellationToken required**

Returns

`PdfDocument`

`public PdfDocument MergeWith(PdfDocument document)` [#](#method-mergewith-officeimo-pdf-pdfdocument)

[PdfDocument.Operations.cs:620](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Operations.cs#L620)

Creates a new PDF by merging this PDF with another loaded or generated PDF.

Parameters

**document OfficeIMO.Pdf.PdfDocument required**

Returns

`PdfDocument`

`public PdfDocument MergeWith(byte[] pdf)` [#](#method-mergewith-byte)

[PdfDocument.Operations.cs:646](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Operations.cs#L646)

Creates a new PDF by merging this PDF with another PDF byte payload. The input is consumed synchronously and is not retained by the returned document.

Parameters

**pdf byte[] required**

Returns

`PdfDocument`

`public PdfDocument MergeWith(string path)` [#](#method-mergewith-string)

[PdfDocument.Operations.cs:672](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Operations.cs#L672)

Creates a new PDF by merging this PDF with another PDF file.

Parameters

**path string required**

Returns

`PdfDocument`

`public PdfDocument MergeWith(Stream stream)` [#](#method-mergewith-io-stream)

[PdfDocument.Operations.cs:692](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Operations.cs#L692)

Creates a new PDF by merging this PDF with another readable PDF stream.

Parameters

**stream System.IO.Stream required**

Returns

`PdfDocument`

`public PdfDocument Meta(string? title = null, string? author = null, string? subject = null, string? keywords = null)` [#](#method-meta-string-string-string-string)

[PdfDocument.Meta.cs:330](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L330)

Sets PDF metadata. Only values provided are updated; missing parameters keep previous values. Pass an empty string to clear a previously assigned value.

Parameters

**title string? = null optional**

Document title metadata.

**author string? = null optional**

Document author metadata.

**subject string? = null optional**

Document subject metadata.

**keywords string? = null optional**

Document keywords metadata.

Returns

`PdfDocument` This [PdfDocument](/api/pdf/officeimo-pdf-pdfdocument/) for chaining.

PlanMutation 2 overloads

`public PdfMutationPlan PlanMutation(PdfMutationOperation operation, IEnumerable<string>? fieldNames = null, PdfLoadOptions? options = null, PdfMutationExecutionPreference executionPreference = Automatic)` [#](#method-planmutation-officeimo-pdf-pdfmutationoperation-collections-generic-ienumerable-system-string-officeimo-pdf-pdfloadoptions-officeimo-pdf-pdfmutationexecutionpreference)

[PdfDocument.Operations.cs:153](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Operations.cs#L153)

Chooses a full-rewrite, append-only, or blocked path for an existing-document mutation.

Parameters

**operation OfficeIMO.Pdf.PdfMutationOperation required**

**fieldNames System.Collections.Generic.IEnumerable<string>? = null optional**

**options OfficeIMO.Pdf.PdfLoadOptions? = null optional**

**executionPreference OfficeIMO.Pdf.PdfMutationExecutionPreference = Automatic optional**

Returns

`PdfMutationPlan`

`public PdfMutationPlan PlanMutation(PdfMutationOperation operation, IEnumerable<string>? fieldNames, PdfLoadOptions? options, PdfMutationExecutionPreference executionPreference, CancellationToken cancellationToken)` [#](#member-240f2e7a23ff3be7641ec72f)

[PdfDocument.Operations.cs:163](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Operations.cs#L163)

Chooses a mutation path while observing cancellation during parsing and preflight.

Parameters

**operation OfficeIMO.Pdf.PdfMutationOperation required**

**fieldNames System.Collections.Generic.IEnumerable<string>? required**

**options OfficeIMO.Pdf.PdfLoadOptions? required**

**executionPreference OfficeIMO.Pdf.PdfMutationExecutionPreference required**

**cancellationToken System.Threading.CancellationToken required**

Returns

`PdfMutationPlan`

`public PdfRawDocumentView RawStructure(PdfRawStructureOptions? options = null, PdfLoadOptions? readOptions = null)` [#](#method-rawstructure-officeimo-pdf-pdfrawstructureoptions-officeimo-pdf-pdfloadoptions)

[PdfDocument.RawStructure.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.RawStructure.cs#L6)

Builds an immutable, bounded view of the document's active raw object graph.

Parameters

**options OfficeIMO.Pdf.PdfRawStructureOptions? = null optional**

**readOptions OfficeIMO.Pdf.PdfLoadOptions? = null optional**

Returns

`PdfRawDocumentView`

`public PdfDocumentReadResult Read(PdfLoadOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-read-officeimo-pdf-pdfloadoptions-threading-cancellationtoken)

[PdfDocument.Meta.cs:235](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L235)

Builds the canonical semantic document result using the structured profile by default.

Parameters

**options OfficeIMO.Pdf.PdfLoadOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`PdfDocumentReadResult`

`public PdfInspectionReadResult ReadForInspection(PdfLoadOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-readforinspection-officeimo-pdf-pdfloadoptions-threading-cancellationtoken)

[PdfDocument.InspectionRead.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.InspectionRead.cs#L16)

Reads selected pages while retaining structural facts and explicit outcomes for unmappable text, unsupported content-stream filters, and opt-in recovery from damaged page streams. [PdfDocument.Read](/api/pdf/officeimo-pdf-pdfdocument/) remains fail-fast. Pass [PdfLoadOptions.RecoverDecodableTextForInspection](/api/pdf/officeimo-pdf-pdfloadoptions/) to retain readable text on a page with a font-mapping failure when using the built-in glyph decoder, or from leading page content streams before a supported page content filter reports damaged data. Cancellation, resource admission, authentication, permissions, structural parsing, and unexpected stage failures remain terminal and are never converted to partial success.

Parameters

**options OfficeIMO.Pdf.PdfLoadOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`PdfInspectionReadResult`

`public OfficeHiddenDataResult RemoveHiddenData(OfficeHiddenDataOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-removehiddendata-officeimo-officehiddendataoptions-threading-cancellationtoken)

[PdfDocument.Operations.cs:921](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Operations.cs#L921)

Removes the selected hidden data through one verified full rewrite and returns the cleaned bytes with a report of every finding. This document is not changed; load OfficeHiddenDataResult.ToArray to keep working with the cleaned copy.

Parameters

**options OfficeIMO.OfficeHiddenDataOptions? = null optional**

Categories to remove; defaults to OfficeHiddenDataKind.Default.

**cancellationToken System.Threading.CancellationToken = default optional**

Cancels the removal.

Returns

`OfficeHiddenDataResult`

RemoveSelectedContent 2 overloads

`public static OfficeContentCleanupResult RemoveSelectedContent(byte[] pdf, OfficeContentCleanupSelection selection, OfficeContentCleanupOptions? options = null, PdfLoadOptions? readOptions = null)` [#](#method-removeselectedcontent-byte-officeimo-contentsafety-officecontentcleanupselection-officeimo-contentsafety-officecontentcleanupoptions-officeimo-pdf-pdfloadoptions)

[PdfDocument.ContentSafety.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.ContentSafety.cs#L36)

Physically removes exact selected PDF text spans and verifies the rewritten artifact.

Parameters

**pdf byte[] required**

**selection OfficeIMO.ContentSafety.OfficeContentCleanupSelection required**

**options OfficeIMO.ContentSafety.OfficeContentCleanupOptions? = null optional**

**readOptions OfficeIMO.Pdf.PdfLoadOptions? = null optional**

Returns

`OfficeContentCleanupResult`

`public static OfficeContentCleanupResult RemoveSelectedContent(string inputPath, string outputPath, OfficeContentCleanupSelection selection, OfficeContentCleanupOptions? options = null, PdfLoadOptions? readOptions = null)` [#](#method-removeselectedcontent-string-string-officeimo-contentsafety-officecontentcleanupselection-officeimo-contentsafety-officecontentcleanupoptions-officeimo-pdf-pdfloadoptions)

[PdfDocument.ContentSafety.cs:73](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.ContentSafety.cs#L73)

Atomically writes an explicitly cleaned PDF artifact.

Parameters

**inputPath string required**

**outputPath string required**

**selection OfficeIMO.ContentSafety.OfficeContentCleanupSelection required**

**options OfficeIMO.ContentSafety.OfficeContentCleanupOptions? = null optional**

**readOptions OfficeIMO.Pdf.PdfLoadOptions? = null optional**

Returns

`OfficeContentCleanupResult`

ReplaceProperties 2 overloads

`public PdfDocument ReplaceProperties(PdfDocumentProperties metadata, CancellationToken cancellationToken)` [#](#method-replaceproperties-officeimo-pdf-pdfdocumentproperties-threading-cancellationtoken)

[PdfDocument.MetadataCancellation.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.MetadataCancellation.cs#L13)

Replaces metadata with cooperative cancellation through parsing, rewriting and output adoption.

Parameters

**metadata OfficeIMO.Pdf.PdfDocumentProperties required**

**cancellationToken System.Threading.CancellationToken required**

Returns

`PdfDocument`

`public PdfDocument ReplaceProperties(PdfDocumentProperties metadata)` [#](#method-replaceproperties-officeimo-pdf-pdfdocumentproperties)

[PdfDocument.Operations.cs:956](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Operations.cs#L956)

Creates a new PDF with exactly the supplied metadata.

Parameters

**metadata OfficeIMO.Pdf.PdfDocumentProperties required**

Returns

`PdfDocument`

Save 4 overloads

`public void Save()` [#](#method-save)

[PdfDocument.Lifecycle.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Lifecycle.cs#L21)

Saves to the associated path, rejecting serialization loss by default.

`public void Save(PdfSaveOptions options)` [#](#method-save-officeimo-pdf-pdfsaveoptions)

[PdfDocument.Lifecycle.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Lifecycle.cs#L25)

Saves to the associated path using explicit native-output options.

Parameters

**options OfficeIMO.Pdf.PdfSaveOptions required**

`public void Save(string path, PdfSaveOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-save-string-officeimo-pdf-pdfsaveoptions-threading-cancellationtoken)

[PdfDocument.Lifecycle.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Lifecycle.cs#L60)

Atomically saves the native document to a file and associates that path.

Parameters

**path string required**

**options OfficeIMO.Pdf.PdfSaveOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

`public void Save(Stream stream, PdfSaveOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-save-io-stream-officeimo-pdf-pdfsaveoptions-threading-cancellationtoken)

[PdfDocument.Lifecycle.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Lifecycle.cs#L69)

Writes native PDF to a caller-owned stream after validating fidelity.

Parameters

**stream System.IO.Stream required**

**options OfficeIMO.Pdf.PdfSaveOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

SaveAsPdfA 2 overloads

`public PdfAConversionReport SaveAsPdfA(string path, PdfAConversionOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveaspdfa-string-officeimo-pdf-pdfaconversionoptions-threading-cancellationtoken)

[PdfDocument.PdfAConversion.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Conversion/PdfA/PdfDocument.PdfAConversion.cs#L21)

Converts this PDF to PDF/A and writes it to path. Throws [PdfAConversionException](/api/pdf/officeimo-pdf-pdfaconversionexception/) listing every violation, without creating the file, when the source cannot be converted without changing its content.

Parameters

**path string required**

**options OfficeIMO.Pdf.PdfAConversionOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`PdfAConversionReport`

`public PdfAConversionReport SaveAsPdfA(Stream stream, PdfAConversionOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveaspdfa-io-stream-officeimo-pdf-pdfaconversionoptions-threading-cancellationtoken)

[PdfDocument.PdfAConversion.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Conversion/PdfA/PdfDocument.PdfAConversion.cs#L32)

Converts this PDF to PDF/A and writes it to a caller-owned stream. Throws [PdfAConversionException](/api/pdf/officeimo-pdf-pdfaconversionexception/) listing every violation, without writing to the stream, when the source cannot be converted without changing its content.

Parameters

**stream System.IO.Stream required**

**options OfficeIMO.Pdf.PdfAConversionOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`PdfAConversionReport`

SaveAsync 3 overloads

`public Task SaveAsync(CancellationToken cancellationToken = default)` [#](#method-saveasync-threading-cancellationtoken)

[PdfDocument.Lifecycle.cs:77](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Lifecycle.cs#L77)

Asynchronously saves the native document to its associated path.

Parameters

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task`

`public async Task SaveAsync(string path, PdfSaveOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveasync-string-officeimo-pdf-pdfsaveoptions-threading-cancellationtoken)

Asynchronously saves the native document to a file and associates that path.

Parameters

**path string required**

**options OfficeIMO.Pdf.PdfSaveOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task`

`public async Task SaveAsync(Stream stream, PdfSaveOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveasync-io-stream-officeimo-pdf-pdfsaveoptions-threading-cancellationtoken)

Asynchronously writes native PDF to a caller-owned stream after validating fidelity.

Parameters

**stream System.IO.Stream required**

**options OfficeIMO.Pdf.PdfSaveOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task`

SynchronizeMetadata 2 overloads

`public PdfDocument SynchronizeMetadata(CancellationToken cancellationToken, string? title = null, string? author = null, string? subject = null, string? keywords = null, bool createXmpMetadata = true)` [#](#method-synchronizemetadata-threading-cancellationtoken-string-string-string-string-boolean)

[PdfDocument.MetadataCancellation.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.MetadataCancellation.cs#L20)

Synchronizes Info and XMP with cooperative cancellation, retaining the source document unchanged.

Parameters

**cancellationToken System.Threading.CancellationToken required**

**title string? = null optional**

**author string? = null optional**

**subject string? = null optional**

**keywords string? = null optional**

**createXmpMetadata bool = true optional**

Returns

`PdfDocument`

`public PdfDocument SynchronizeMetadata(string? title = null, string? author = null, string? subject = null, string? keywords = null, bool createXmpMetadata = true)` [#](#method-synchronizemetadata-string-string-string-string-boolean)

[PdfDocument.Operations.cs:858](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Operations.cs#L858)

Creates a normalized full-rewrite PDF whose Info dictionary and XMP packet share the supplied common fields. Null values preserve existing values and empty strings clear them.

Parameters

**title string? = null optional**

**author string? = null optional**

**subject string? = null optional**

**keywords string? = null optional**

**createXmpMetadata bool = true optional**

Returns

`PdfDocument`

`public byte[] ToBytes(PdfSaveOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-tobytes-officeimo-pdf-pdfsaveoptions-threading-cancellationtoken)

[PdfDocument.Lifecycle.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Lifecycle.cs#L29)

Serializes PDF bytes and checks any new native-output fidelity findings.

Parameters

**options OfficeIMO.Pdf.PdfSaveOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`byte[]`

`public static bool TryPrepareImageBytes(byte[] data, out byte[] preparedBytes, out OfficeImageInfo? imageInfo, out bool wasTranscoded, out string? unsupportedReason)` [#](#method-tryprepareimagebytes-byte-byte-officeimo-drawing-officeimageinfo-boolean-string)

[PdfDocument.Blocks.ImageValidation.cs:109](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Blocks.ImageValidation.cs#L109)

Prepares source image bytes for first-party PDF embedding. Writer-safe JPEG and PNG data is retained; supported SVG and other raster formats supported by OfficeRasterImageDecoder are normalized to PNG.

Parameters

**data byte[] required**

**preparedBytes byte[] required**

**imageInfo OfficeIMO.Drawing.OfficeImageInfo? required**

**wasTranscoded bool required**

**unsupportedReason string? required**

Returns

`bool`

`public static bool TryValidateImageBytes(byte[] data, out OfficeImageInfo? imageInfo, out string? unsupportedReason)` [#](#method-tryvalidateimagebytes-byte-officeimo-drawing-officeimageinfo-string)

[PdfDocument.Blocks.ImageValidation.cs:95](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Blocks.ImageValidation.cs#L95)

Checks whether image bytes can be embedded by the first-party PDF writer.

Parameters

**data byte[] required**

**imageInfo OfficeIMO.Drawing.OfficeImageInfo? required**

**unsupportedReason string? required**

Returns

`bool`

UpdateProperties 2 overloads

`public PdfDocument UpdateProperties(CancellationToken cancellationToken, string? title = null, string? author = null, string? subject = null, string? keywords = null)` [#](#method-updateproperties-threading-cancellationtoken-string-string-string-string)

[PdfDocument.MetadataCancellation.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.MetadataCancellation.cs#L9)

Updates metadata with cooperative cancellation, preserving the source document and its captured read limits.

Parameters

**cancellationToken System.Threading.CancellationToken required**

**title string? = null optional**

**author string? = null optional**

**subject string? = null optional**

**keywords string? = null optional**

Returns

`PdfDocument`

`public PdfDocument UpdateProperties(string? title = null, string? author = null, string? subject = null, string? keywords = null)` [#](#method-updateproperties-string-string-string-string)

[PdfDocument.Operations.cs:841](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Operations.cs#L841)

Creates a new PDF with updated metadata. Null values preserve existing fields; empty strings clear fields.

Parameters

**title string? = null optional**

**author string? = null optional**

**subject string? = null optional**

**keywords string? = null optional**

Returns

`PdfDocument`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string? FilePath { get; }` [#](#property-filepath)

[PdfDocument.Lifecycle.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Lifecycle.cs#L14)

Gets the associated path, or null for a document created or loaded in memory.

`public PdfContentBuilder Content { get; }` [#](#property-content)

[PdfDocument.Meta.cs:91](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L91)

Gets the content builder for ordinary incremental authoring. It uses the same document flow as [PdfDocument.Compose](/api/pdf/officeimo-pdf-pdfdocument/) and cannot add generated content to a loaded PDF.

`public PdfDocumentPages Pages { get; }` [#](#property-pages)

[PdfDocument.Meta.cs:228](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L228)

Page editing and extraction operations for this PDF.

`public PdfDocumentRenderer Render { get; }` [#](#property-render)

[PdfDocument.Meta.cs:246](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L246)

Managed page rendering, drawing projection, and renderer diagnostics.

`public PdfDocumentResources Resources { get; }` [#](#property-resources)

[PdfDocument.Meta.cs:250](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L250)

Bounded font and raw object-resource inspection.

`public PdfDocumentTextEditor Text { get; }` [#](#property-text)

[PdfDocument.Meta.cs:254](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L254)

Existing-page text search and editing operations.

`public PdfDocumentImageEditor Images { get; }` [#](#property-images)

[PdfDocument.Meta.cs:258](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L258)

Existing-page image placement discovery and editing operations.

`public PdfDocumentAttachments Attachments { get; }` [#](#property-attachments)

[PdfDocument.Meta.cs:262](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L262)

Existing-document embedded and associated file editing operations.

`public PdfDocumentBookmarks Bookmarks { get; }` [#](#property-bookmarks)

[PdfDocument.Meta.cs:266](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L266)

Existing-document bookmark editing operations.

`public PdfDocumentAnnotations Annotations { get; }` [#](#property-annotations)

[PdfDocument.Meta.cs:270](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L270)

Existing-document annotation editing operations.

`public PdfDocumentJavaScript JavaScript { get; }` [#](#property-javascript)

[PdfDocument.Meta.cs:274](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L274)

Explicit active-content operations for named document-level JavaScript.

`public PdfDocumentSecurity Security { get; }` [#](#property-security)

[PdfDocument.Meta.cs:278](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L278)

Password encryption and digital-signature operations for this PDF.

`public PdfDocumentRedactions Redactions { get; }` [#](#property-redactions)

[PdfDocument.Meta.cs:282](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L282)

Search, planning, application, and verification operations for permanent redaction.

`public PdfDocumentOptimization Optimization { get; }` [#](#property-optimization)

[PdfDocument.Meta.cs:286](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L286)

Lossless optimization analysis and rewrite operations for this PDF.

`public PdfDocumentProof Proof { get; }` [#](#property-proof)

[PdfDocument.Meta.cs:290](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L290)

Visual and structural preservation proof operations for this PDF.

`public PdfPipelineReport Pipeline { get; }` [#](#property-pipeline)

[PdfDocument.Meta.cs:297](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L297)

Immutable create/open and mutation history accumulated by this document. Save and byte-generation results append their own exact output stage.

`public PdfDocumentStamper Stamp { get; }` [#](#property-stamp)

[PdfDocument.Meta.cs:311](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L311)

Text and image stamping operations for this PDF.

`public PdfDocumentForms Forms { get; }` [#](#property-forms)

[PdfDocument.Meta.cs:317](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Meta.cs#L317)

Simple AcroForm operations for this PDF.

`public PdfDocumentProperties Properties { get; }` [#](#property-properties)

[PdfDocument.Reading.cs:5](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L5)

Gets the standard document properties from the Info dictionary through the bounded read pipeline.

`public IReadOnlyList<PdfOutlineItem> Outlines { get; }` [#](#property-outlines)

[PdfDocument.Reading.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L7)

Gets document outlines without exposing the parser.

`public IReadOnlyList<PdfNamedDestination> NamedDestinations { get; }` [#](#property-nameddestinations)

[PdfDocument.Reading.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L9)

Gets named destinations from the document.

`public IReadOnlyList<PdfFormField> FormFields { get; }` [#](#property-formfields)

[PdfDocument.Reading.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L11)

Gets the document's form fields.

`public PdfRepairReport RepairReport { get; }` [#](#property-repairreport)

[PdfDocument.Reading.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L13)

Gets structural recovery observations from the bounded parser.

`public PdfTaggedContentInfo? TaggedContent { get; }` [#](#property-taggedcontent)

[PdfDocument.Reading.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L48)

Gets the parsed document's tagged content.

`public bool HasTaggedContent { get; }` [#](#property-hastaggedcontent)

[PdfDocument.Reading.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L51)

Gets the parsed document's has tagged content.

`public IReadOnlyList<PdfCatalogAction> CatalogActions { get; }` [#](#property-catalogactions)

[PdfDocument.Reading.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L54)

Gets the parsed document's catalog actions.

`public IReadOnlyList<PdfJavaScript> JavaScripts { get; }` [#](#property-javascripts)

[PdfDocument.Reading.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L57)

Gets the parsed document's java scripts.

`public PdfPortfolioInfo? Portfolio { get; }` [#](#property-portfolio)

[PdfDocument.Reading.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L60)

Gets the parsed document's portfolio.

`public string? AcroFormDefaultAppearance { get; }` [#](#property-acroformdefaultappearance)

[PdfDocument.Reading.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L63)

Gets the parsed document's acro form default appearance.

`public int? AcroFormQuadding { get; }` [#](#property-acroformquadding)

[PdfDocument.Reading.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L66)

Gets the parsed document's acro form quadding.

`public bool? AcroFormNeedAppearances { get; }` [#](#property-acroformneedappearances)

[PdfDocument.Reading.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L69)

Gets the parsed document's acro form need appearances.

`public int? AcroFormSignatureFlags { get; }` [#](#property-acroformsignatureflags)

[PdfDocument.Reading.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L72)

Gets the parsed document's acro form signature flags.

`public PdfAcroFormXfaInfo? AcroFormXfa { get; }` [#](#property-acroformxfa)

[PdfDocument.Reading.cs:75](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L75)

Gets the parsed document's acro form xfa.

`public string? CatalogVersion { get; }` [#](#property-catalogversion)

[PdfDocument.Reading.cs:78](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L78)

Gets the parsed document's catalog version.

`public string? CatalogLanguage { get; }` [#](#property-cataloglanguage)

[PdfDocument.Reading.cs:81](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L81)

Gets the parsed document's catalog language.

`public IReadOnlyList<PdfOutputIntentInfo> OutputIntents { get; }` [#](#property-outputintents)

[PdfDocument.Reading.cs:86](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L86)

Gets the parsed document's output intents.

`public bool OutputIntentsAreComplete { get; }` [#](#property-outputintentsarecomplete)

[PdfDocument.Reading.cs:93](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L93)

Gets the parsed document's output intents are complete.

`public PdfOptionalContentProperties? OptionalContent { get; }` [#](#property-optionalcontent)

[PdfDocument.Reading.cs:96](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L96)

Gets the parsed document's optional content.

`public PdfXmpMetadataInfo? XmpMetadata { get; }` [#](#property-xmpmetadata)

[PdfDocument.Reading.cs:99](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfDocument.Reading.cs#L99)

Gets the parsed document's xmp metadata.

## Extension Methods

`public static OfficeConversionReport SaveAsImages(PdfDocument document, string folderPath, PdfImageExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#extension-saveasimages-officeimo-pdf-pdfdocument-string-officeimo-pdf-pdfimageexportoptions-threading-cancellationtoken)

[PdfDocument.ImageConversion.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Rendering/PdfDocument.ImageConversion.cs#L42)

Saves selected pages without retaining their encoded payloads and returns the fidelity report.

Parameters

**document OfficeIMO.Pdf.PdfDocument required**

**folderPath string required**

**options OfficeIMO.Pdf.PdfImageExportOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`OfficeConversionReport`

`public static async Task<OfficeConversionReport> SaveAsImagesAsync(PdfDocument document, string folderPath, PdfImageExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#extension-saveasimagesasync-officeimo-pdf-pdfdocument-string-officeimo-pdf-pdfimageexportoptions-threading-cancellationtoken)

Asynchronously saves selected pages without retaining their encoded payloads.

Parameters

**document OfficeIMO.Pdf.PdfDocument required**

**folderPath string required**

**options OfficeIMO.Pdf.PdfImageExportOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<OfficeConversionReport>`

ToImages 2 overloads

`public static IReadOnlyList<OfficeImageExportResult> ToImages(PdfDocument document, PdfImageExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#extension-toimages-officeimo-pdf-pdfdocument-officeimo-pdf-pdfimageexportoptions-threading-cancellationtoken)

[PdfDocument.ImageConversion.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Rendering/PdfDocument.ImageConversion.cs#L10)

Renders the selected PDF pages using the encoding and resource limits in the options.

Parameters

**document OfficeIMO.Pdf.PdfDocument required**

**options OfficeIMO.Pdf.PdfImageExportOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`IReadOnlyList<OfficeImageExportResult>`

`public static IReadOnlyList<OfficeImageExportResult> ToImages(PdfDocument document, PdfImageExportOptions? options, out OfficeConversionReport report, CancellationToken cancellationToken = default)` [#](#extension-toimages-officeimo-pdf-pdfdocument-officeimo-pdf-pdfimageexportoptions-officeimo-officeconversionreport-threading-cancellationtoken)

[PdfDocument.ImageConversion.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Rendering/PdfDocument.ImageConversion.cs#L15)

Renders the selected pages and returns an immutable aggregate fidelity report.

Parameters

**document OfficeIMO.Pdf.PdfDocument required**

**options OfficeIMO.Pdf.PdfImageExportOptions? required**

**report OfficeIMO.OfficeConversionReport required**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`IReadOnlyList<OfficeImageExportResult>`

`public static async Task<OfficeConversionResult<IReadOnlyList<OfficeImageExportResult>>> ToImagesAsync(PdfDocument document, PdfImageExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#extension-toimagesasync-officeimo-pdf-pdfdocument-officeimo-pdf-pdfimageexportoptions-threading-cancellationtoken)

Asynchronously renders selected pages with a cloned options snapshot and fidelity report.

Parameters

**document OfficeIMO.Pdf.PdfDocument required**

**options OfficeIMO.Pdf.PdfImageExportOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<OfficeConversionResult<IReadOnlyList<OfficeImageExportResult>>>`

<!-- PowerForge markdown artifact sha256:E9E24C7485B00E3E5335D14671CFAA302F65518B0CECBE508940BE9CFE8EC7B1 -->
