[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.GcPdfDocument.GetLogicalStructure

GetLogicalStructure Method

GetLogicalStructure(ViewState, float, float, bool)

Parses the PDF's structure tree (as returned by the StructTreeRoot property) and creates a LogicalStructure object that represents the logical structure of the document.

Returns null if the current document does not have a structure tree.

Declaration
public LogicalStructure GetLogicalStructure(ViewState viewState, float dpiX = 72, float dpiY = 72, bool ignoreErrors = true)
Public Function GetLogicalStructure(viewState As ViewState, Optional dpiX As Single = 72, Optional dpiY As Single = 72, Optional ignoreErrors As Boolean = True) As LogicalStructure
Parameters
Type Name Description
ViewState viewState

The ViewState used to determine what document content would be considered.

float dpiX

The horizontal resolution (DPI) to use for positions and sizes of PDF elements.

float dpiY

The vertical resolution (DPI) to use for positions and sizes of PDF elements.

bool ignoreErrors

Indicates whether to ignore errors during processing.

Returns
Type Description
LogicalStructure

The LogicalStructure object or null.

GetLogicalStructure(float, float, bool)

Parses the PDF's structure tree (as returned by the StructTreeRoot property) and creates a LogicalStructure object that represents the logical structure of the document.

Returns null if the current document does not have a structure tree.

Declaration
public LogicalStructure GetLogicalStructure(float dpiX = 72, float dpiY = 72, bool ignoreErrors = true)
Public Function GetLogicalStructure(Optional dpiX As Single = 72, Optional dpiY As Single = 72, Optional ignoreErrors As Boolean = True) As LogicalStructure
Parameters
Type Name Description
float dpiX

The horizontal resolution (DPI) to use for positions and sizes of PDF elements.

float dpiY

The vertical resolution (DPI) to use for positions and sizes of PDF elements.

bool ignoreErrors

Indicates whether to ignore errors during processing.

Returns
Type Description
LogicalStructure

The LogicalStructure object or null.