Skip to content

PdfFile.ExtractPageContent Method

Overloads

Name Description
ExtractPageContent(Int32,Boolean,Boolean) Extracts the content of a PDF page.
ExtractPageContent(Int32,PdfVisualRectangle,Boolean,Boolean) Extracts the content of a PDF page.
ExtractPageContent(Int32,Int32,Boolean,Boolean) Extracts the content of a PDF page set.

ExtractPageContent(Int32,Boolean,Boolean)

Extracts the content of a PDF page.

C#
public PdfPageContent ExtractPageContent(int pageNumber, bool includeAnnotations, bool includeFormFields)

Parameters

pageNumber Int32

The page to extract the content from.

includeAnnotations Boolean

True if annotations should be flattened and included in page content

includeFormFields Boolean

True if form fields should be flattened and included in page content

ExtractPageContent(Int32,PdfVisualRectangle,Boolean,Boolean)

Extracts the content of a PDF page.

C#
public PdfPageContent ExtractPageContent(int pageNumber, PdfVisualRectangle clipRectangle, bool includeAnnotations, bool includeFormFields)

Parameters

pageNumber Int32

The page to extract the content from.

clipRectangle PdfVisualRectangle

A rectangle to clip the page content to specified area.

includeAnnotations Boolean

True if annotations should be flattened and included in page content

includeFormFields Boolean

True if form fields should be flattened and included in page content

ExtractPageContent(Int32,Int32,Boolean,Boolean)

Extracts the content of a PDF page set.

C#
public PdfPageContent[] ExtractPageContent(int fromPage, int toPage, bool includeAnnotations, bool includeFormFields)

Parameters

fromPage Int32

Start page to extract the content from.

toPage Int32

End page to extract the content from.

includeAnnotations Boolean

True if annotations should be flattened and included in page content

includeFormFields Boolean

True if form fields should be flattened and included in page content