Skip to content

PDF Primitive Objects

galkahana edited this page Aug 15, 2011 · 3 revisions

PDF defines a few primitive objects. Apart from the trivial number objects, there are several strings and constructs. The library defines classes for these primitive objects. These are important if you are planning to extend the library, as well as in some usages in the library itself.

The following lists the primitive objects classes:

  1. ObjectIDType is a typedef of an integer number, signifying a PDF Object ID. you can find its definition in ObjectsBasicTypes.
  2. PDFRectangle is a simple structure signifying a rectangle. its definition is in PDFRectangle.
  3. PDFDate matches a PDF date object. This is implemented as a string formatted in a special way, to hold date information. you can find its definition in PDFDate. note that this class has a method that sets it with the current time – use SetToCurrentTime.
  4. PDFTextString represents a PDF text string, which is either formatted in PDFDocEncoded or UTF-16BE. The class implementation receives unicode text as input (encoded as UTF8), and internally formats it as required, so that when written it will appear according to these PDF definitions. you can find it here PDFTextString.
Clone this wiki locally