PdfPageElements Class

What a page shows, as elements that can be compared: its lines of text, the images, the paths and the shadings it paints, with their positions in default user space. PdfDocumentComparer compares the elements of two documents.

public sealed class PdfPageElements

Properties

NameDescription
HeightGets the height of the crop box of the page.
ImagesGets the images painted, in the order of the content.
PathsGets the paths painted (filled or stroked; the clipping paths are not), in the order of the content, forms included.
RotationGets the rotation of the page, in degrees.
ShadingsGets the shadings painted, in the order of the content, forms included.
TextGets the lines of text, in the order of the content.
WidthGets the width of the crop box of the page.

Gets the height of the crop box of the page.

public double Height { get; }

Property value

double

Gets the images painted, in the order of the content.

public IReadOnlyList<PdfImageElement> Images { get; }

Gets the paths painted (filled or stroked; the clipping paths are not), in the order of the content, forms included.

public IReadOnlyList<PdfPathElement> Paths { get; }

Gets the rotation of the page, in degrees.

public int Rotation { get; }

Property value

int

Gets the shadings painted, in the order of the content, forms included.

public IReadOnlyList<PdfShadingElement> Shadings { get; }

Gets the lines of text, in the order of the content.

public IReadOnlyList<PdfTextElement> Text { get; }

Gets the width of the crop box of the page.

public double Width { get; }

Property value

double

Methods

NameDescription
Create(PdfPage)Reads the elements of a page. The parts of the content that cannot be read are skipped.

Create(PdfPage)

PdfPageElements.cs

Reads the elements of a page. The parts of the content that cannot be read are skipped.

public static PdfPageElements Create(PdfPage page)

Parameters

page PdfPage
The page.

Returns

PdfPageElements The elements.