Skip to content

PdfPage.LoadGraphics Method

LoadGraphics(Boolean)

Loads the page graphics from the source PDF file.

C#
public void LoadGraphics(bool enableAllOperations)

Parameters

enableAllOperations Boolean

If true then all page content streams are loaded so that all operations that process the page content (add new content, text search, redaction, page transforms, etc) can be performed with success. If false then only adding new content to the page is supported.

Remarks

When a PDF file is opened in incremental update mode, the page graphics is not loaded if not specified explicitly. This method allows to load the page graphics on demand only for required pages.
Note: This method can be used only when the document has been loaded from a stream and the stream has been kept open, otherwise an exception will be thrown.