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 PdfPageElementsProperties
| Name | Description |
|---|---|
| Height | Gets the height of the crop box of the page. |
| Images | Gets the images painted, in the order of the content. |
| Paths | Gets the paths painted (filled or stroked; the clipping paths are not), in the order of the content, forms included. |
| Rotation | Gets the rotation of the page, in degrees. |
| Shadings | Gets the shadings painted, in the order of the content, forms included. |
| Text | Gets the lines of text, in the order of the content. |
| Width | Gets the width of the crop box of the page. |
Height
PdfPageElements.csImages
PdfPageElements.csGets the images painted, in the order of the content.
public IReadOnlyList<PdfImageElement> Images { get; }Property value
Paths
PdfPageElements.csGets the paths painted (filled or stroked; the clipping paths are not), in the order of the content, forms included.
public IReadOnlyList<PdfPathElement> Paths { get; }Property value
Rotation
PdfPageElements.csShadings
PdfPageElements.csGets the shadings painted, in the order of the content, forms included.
public IReadOnlyList<PdfShadingElement> Shadings { get; }Property value
Gets the lines of text, in the order of the content.
public IReadOnlyList<PdfTextElement> Text { get; }Property value
Width
PdfPageElements.csMethods
| Name | Description |
|---|---|
| Create(PdfPage) | Reads the elements of a page. The parts of the content that cannot be read are skipped. |
Create(PdfPage)
PdfPageElements.csReads the elements of a page. The parts of the content that cannot be read are skipped.
public static PdfPageElements Create(PdfPage page)