Classes

The following classes are available globally.

  • Image element for the PDF document. Contains all information about an image, including the caption.

    See more

    Declaration

    Swift

    public class PDFImage : PDFJSONSerializable
  • The main class users interact with. This object holds the information about the document and also all PDF objects.

    It is possible to create a JSON representation using the PDFJSONSerializable protocol.

    See more

    Declaration

    Swift

    public class PDFDocument : PDFJSONSerializable
  • Factory which converts a document into a PDF file

    See more

    Declaration

    Swift

    public class PDFGenerator
  • Attributed text objects hold an instance of NSAttributedString

    Use this class for advanced text drawing

    See more

    Declaration

    Swift

    public class PDFAttributedText : PDFText
  • Text and spacing of a text object.

    Use this class for simple and quick text drawing

    See more

    Declaration

    Swift

    public class PDFSimpleText : PDFText
  • Protocol all text objects should implement

    See more

    Declaration

    Swift

    public class PDFText
  • All renderable objects subclass from this object. Each object is first calculated and then drawn.

    Declaration

    Swift

    public class PDFObject : PDFJSONSerializable