Skip to content

Internal structures

o3o edited this page Jan 15, 2015 · 3 revisions

Document class (Doc)

The document class operates on a document object.

Page class

The Page class is used to manipulate an individual page. addPage() or insertPage() methods of Doc class, create a page object.

Image class

The image class is mainly used to put an image to a page. The following methods of Doc class create an image object:

  • loadPngImageFromFile()
  • loadJpegImageFromFile()
  • loadRawImageFromFile()
  • loadRawImageFromMem()

Font class (Font)

The font class is a font object. getFont() creates a font handle.

Encoding class

The encoding handle is a handle to handle a encoding object. A encoding handle is returned by invoking getEncoding().

Outline

The outline class is used to operate an outline of a document. When createOutline() is invoked, an outline-node object is created and a node is returned.

Destination class

The destination class specifies the view of the page to be displayed when the outline item or annotation is clicked. And the destination object is used to operate destination object.

Annotation class

There are three type of annotation-object:

  • text-annotation represents a "sticky note".
  • link-annotation represents a hypertext link to a destination.
  • URI-link-annotation represents a hypertext link to a web page.

The annotation class is used to set properties of an annotation object.