PdfPrintOptions Class

The options of the PDF documents printed by PdfPrintExtensions.

public sealed class PdfPrintOptions : IEquatable<PdfPrintOptions>
Implements

Constructors

NameDescription
PdfPrintOptions()

PdfPrintOptions()

PdfPrintOptions.cs
public PdfPrintOptions()

No documentation is available.

Properties

NameDescription
DefaultGets the default options.
IncludeLinksGets a value indicating whether the links of the document (a elements with an href) are link annotations. The default is true.
IncludeOutlinesGets a value indicating whether the headings of the document (h1 to h6) are the outline (bookmarks) of the document. The default is true.
PdfAConformanceGets the PDF/A conformance of the document.
PdfUAConformanceGets the PDF/UA conformance of the document. The document needs a title (PdfPrintOptions.Title or the title element) and a language (the lang attribute of the root element).
RasterizationScaleGets the number of image pixels per CSS pixel of the parts of the pages that PDF cannot draw as vector graphics (blurred shadows, filters, some compositing operators, 3D transforms), which are drawn as images. The default is 2 (192 pixels per inch).
TaggedGets a value indicating whether the document is a tagged PDF (ISO 32000-2, 14.8): a structure tree made from the elements of the document (headings, paragraphs, lists, tables, figures, links), so that assistive technologies can read it, and the decorations (backgrounds, borders, page-margin boxes) marked as artifacts. The default is true.
TitleGets the title of the document, or null for the title of the HTML document (its title element).

Gets the default options.

public static PdfPrintOptions Default { get; }

Property value

PdfPrintOptions

IncludeOutlines

PdfPrintOptions.cs

Gets a value indicating whether the headings of the document (h1 to h6) are the outline (bookmarks) of the document. The default is true.

public bool IncludeOutlines { get; init; }

Property value

bool

PdfAConformance

PdfPrintOptions.cs

Gets the PDF/A conformance of the document.

public PdfAConformance PdfAConformance { get; init; }

Property value

PdfAConformance

PdfUAConformance

PdfPrintOptions.cs

Gets the PDF/UA conformance of the document. The document needs a title (PdfPrintOptions.Title or the title element) and a language (the lang attribute of the root element).

public PdfUAConformance PdfUAConformance { get; init; }

Property value

PdfUAConformance

RasterizationScale

PdfPrintOptions.cs

Gets the number of image pixels per CSS pixel of the parts of the pages that PDF cannot draw as vector graphics (blurred shadows, filters, some compositing operators, 3D transforms), which are drawn as images. The default is 2 (192 pixels per inch).

public double RasterizationScale { get; init; }

Property value

double

Gets a value indicating whether the document is a tagged PDF (ISO 32000-2, 14.8): a structure tree made from the elements of the document (headings, paragraphs, lists, tables, figures, links), so that assistive technologies can read it, and the decorations (backgrounds, borders, page-margin boxes) marked as artifacts. The default is true.

public bool Tagged { get; init; }

Property value

bool

Remarks

The document is always tagged when PdfPrintOptions.PdfUAConformance is set, or when PdfPrintOptions.PdfAConformance is a level A conformance.

Gets the title of the document, or null for the title of the HTML document (its title element).

public string? Title { get; init; }

Property value

string?

Methods

NameDescription
Equals(PdfPrintOptions?)
Equals(object?)
GetHashCode()
ToString()

Equals overloads

Equals(PdfPrintOptions?)

public bool Equals(PdfPrintOptions? other)
Parameters
other PdfPrintOptions?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(PdfPrintOptions?, PdfPrintOptions?)
operator !=(PdfPrintOptions?, PdfPrintOptions?)

operator ==(PdfPrintOptions?, PdfPrintOptions?)

public static bool operator ==(PdfPrintOptions? left, PdfPrintOptions? right)

Parameters

left PdfPrintOptions?
right PdfPrintOptions?

Returns

bool

No documentation is available.

operator !=(PdfPrintOptions?, PdfPrintOptions?)

public static bool operator !=(PdfPrintOptions? left, PdfPrintOptions? right)

Parameters

left PdfPrintOptions?
right PdfPrintOptions?

Returns

bool

No documentation is available.