Skip to content

PdfContentExtractor.ExtractVisualObjects Method

Overloads

Name Description
ExtractVisualObjects(Boolean) Extracts the page content as a list of visual objects.
ExtractVisualObjects(Boolean,Boolean) Extracts the page content as a list of visual objects.
ExtractVisualObjects(Boolean,Boolean,PdfContentExtractionContext) Extracts the page content as a list of visual objects.

ExtractVisualObjects(Boolean)

Extracts the page content as a list of visual objects.

C#
public PdfVisualObjectCollection ExtractVisualObjects(bool includeImageData)

Parameters

includeImageData Boolean

True if image data should be extracted and decoded.

Remarks

Image data should be extracted only if the images need to be saved for later processing because this operation can take a significant amount of time, depending on the number of images and how they are encoded.

ExtractVisualObjects(Boolean,Boolean)

Extracts the page content as a list of visual objects.

C#
public PdfVisualObjectCollection ExtractVisualObjects(bool includeImageData, bool keepGraphicContainers)

Parameters

includeImageData Boolean

True if image data should be extracted and decoded.

keepGraphicContainers Boolean

True if the list of objects should preserve the graphic containers such as form XObjects.

Remarks

Image data should be extracted only if the images need to be saved for later processing because this operation can take a significant amount of time, depending on the number of images and how they are encoded.

ExtractVisualObjects(Boolean,Boolean,PdfContentExtractionContext)

Extracts the page content as a list of visual objects.

C#
public PdfVisualObjectCollection ExtractVisualObjects(bool includeImageData, bool keepGraphicContainers, PdfContentExtractionContext context)

Parameters

includeImageData Boolean

True if image data should be extracted and decoded.

keepGraphicContainers Boolean

True if the list of objects should preserve the graphic containers such as form XObjects.

context PdfContentExtractionContext

Context for content extraction

Remarks

Image data should be extracted only if the images need to be saved for later processing because this operation can take a significant amount of time, depending on the number of images and how they are encoded.