Foxit PDF SDK

Public Member Functions | List of all members
FSDK.PDFStructTree Class Reference

## Public Member Functions
| constructor (document)
| Constructor, with parameters. More...
| GetChild (index)
| Get the structure element by index. More...
| GetChildCount ()
| Get count of structure elements in current PDF structure tree. More...
| IsEmpty ()
| Check whether current object is empty or not. More...
| RemoveChild (index)
| Remove the structure element by index. More...

## Detailed Description

PDF structure tree is a kind of common data structure in tagged PDF documents. A structure tree is used in PDF files to represent the organization and hierarchy of the document's content. PDF structure tree has following characteristics:

- A PDF structure tree is also a hierarchical structure, with the top node representing the entire document and the lower nodes representing pages, paragraphs, headings, and other elements.
- A PDF structure tree contains semantic information about the content of the document, such as headings, paragraphs, tables, and lists. This information is used to enhance the accessibility and usability of the document, as well as to optimize its display and printing;

Class FSDK.PDFStructTree is used to be associated with an existing PDF structure tree. It offers functions to get structure elements in the PDF structure tree.

## Member Function Documentation

## ◆ constructor()

FSDK.PDFStructTree.constructor | ( | document |  | ) |

Constructor, with parameters.

If there exists PDF structure tree in the PDF document, this function is just to construct a PDF structure tree object to be associated with the structure tree.

Parameters

  [in] | document | A valid PDF document object.

## ◆ GetChild()

FSDK.PDFStructTree.GetChild | ( | index |  | ) |

Get the structure element by index.

Parameters

  [in] | index | Index of the structure element to be retrieved. Valid range: from 0 to (count-1). count is returned by function FSDK.PDFStructTree.GetChildCount.

Returns
  A FSDK.StructElement object.

## ◆ GetChildCount()

FSDK.PDFStructTree.GetChildCount | ( |  | ) |

Get count of structure elements in current PDF structure tree.

Returns
  The structure elements count.

## ◆ IsEmpty()

FSDK.PDFStructTree.IsEmpty | ( |  | ) |

Check whether current object is empty or not.

When the current object is empty, that means current object is useless.

Returns
  true means current object is empty, while false means not.

## ◆ RemoveChild()

FSDK.PDFStructTree.RemoveChild | ( | index |  | ) |

Remove the structure element by index.

Parameters

  [in] | index | Index of the structure element to be retrieved. Valid range: from 0 to (count-1). count is returned by function FSDK.PDFStructTree.GetChildCount.