Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

PdfLoadOptions

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Source revision e31b305980e3 with working tree changes
Modifiers sealed

Options for controlling PDF reading/decoding behavior.

Inheritance

  • Object
  • PdfLoadOptions

Usage

Explore 129 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.

Accepted by parameters 121

Constructors

public PdfLoadOptions() #

Methods

public PdfLoadOptions Clone() #
Returns: PdfLoadOptions

Snapshots all load settings and resource limits. The caller-supplied AES provider is retained.

Properties

public static PdfLoadOptions Default { get; } #

Creates default read settings with an independent limits graph.

public PdfParsingMode ParsingMode { get; init; } #

Structural parsing policy. Lenient recovery is the compatibility default and always produces a repair report.

public PdfReadLimits Limits { get; init; } #

Resource budgets for object scanning and raw stream allocation.

public String? Password { get; init; } #

Password used to open encrypted PDFs. The same value is tried as user and owner password for Standard security handler files. For Standard security revisions 5 and 6, passwords longer than 4096 UTF-16 characters are rejected before normalization.

public IOfficeAesCryptographyProvider? AesCryptographyProvider { get; init; } #

Optional synchronous AES provider used to open Standard-security PDFs when platform AES-CBC is unavailable.

public PdfPermissionPolicy PermissionPolicy { get; init; } #

Controls whether authenticated user-password permission restrictions are enforced. Ignoring restrictions still requires the PDF to be successfully decrypted with a valid password.

public Boolean PreferToUnicode { get; init; } #

Prefer decoding via ToUnicode CMap when available. Default: true.

public Boolean UseWinAnsiFallback { get; init; } #

Fallback to WinAnsi (Windows-1252) when no ToUnicode is present. Default: true.

public Boolean AdjustKerningFromTJ { get; init; } #

Adjust X position using TJ kerning values (thousandths of font size). Default: true.

public Boolean IncludeArtifactText { get; init; } #

Includes text inside PDF artifact marked-content sequences, such as page headers, footers, and chart decorations. Default: false, which returns logical document text.