Other Classes

The following classes are available globally.

  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTPDFPoint : PT_TRN_point
    
    
    
    
    - (instancetype)init;- (instancetype)initWithPx: (double)px py:  (double)py;
    @end

    Swift

    class PTPDFPoint : PT_TRN_point
  • Rect is a utility class used to manipulate PDF rectangle objects (refer to section 3.8.3 of the PDF Reference Manual).

    Rect can be associated with a SDF/Cos rectangle array using Rect(Obj*) constructor or later using Rect::Attach(Obj*) or Rect::Update(Obj*) methods.

    Rect keeps a local cache for rectangle points so it is necessary to call Rect::Update() method if the changes to the Rect should be saved in the attached Cos/SDF array.

    Note

    - Although rectangles are conventionally specified by their lower-left and upper-right corners, it is acceptable to specify any two diagonally opposite corners.
    See more

    Declaration

    Objective-C

    @interface PTPDFRect : NSObject

    Swift

    class PTPDFRect : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTQuadPoint : NSObject
    {
    
    
    }
    
    
    
    
    - (void)setP1: (PTPDFPoint*)value;
    - (PTPDFPoint*)getP1;
    - (void)setP2: (PTPDFPoint*)value;
    - (PTPDFPoint*)getP2;
    - (void)setP3: (PTPDFPoint*)value;
    - (PTPDFPoint*)getP3;
    - (void)setP4: (PTPDFPoint*)value;
    - (PTPDFPoint*)getP4;
    - (instancetype)init;- (instancetype)initWithP11: (PTPDFPoint*)p11 p22:  (PTPDFPoint*)p22 p33:  (PTPDFPoint*)p33 p44:  (PTPDFPoint*)p44;- (instancetype)initWithR: (PTPDFRect*)r;
    @end

    Swift

    class PTQuadPoint : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTPDFNetException : NSException
    
    @property (nonatomic, readonly, copy, nullable) NSString *fileName;
    @property (nonatomic, readonly, assign) int lineNumber;
    @property (nonatomic, readonly, copy, nullable) NSString *function;
    @property (nonatomic, readonly, copy, nullable) NSString *message;
    @property (nonatomic, readonly, assign) int errorCode;
    
    @end

    Swift

    class PTPDFNetException : NSException
  • A utility class that handles preparing PDF documents for printing.

    See more

    Declaration

    Objective-C

    
    @interface PTPrintPrepareDocumentHandler : NSObject

    Swift

    class PTPrintPrepareDocumentHandler : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTVectorObj : NSObject
    {
    
    
    }
    
    
    
    
    - (unsigned long)size;
    - (unsigned long)capacity;
    - (void)reserve: (unsigned long)n;
    - (BOOL)isEmpty;
    - (void)clear;
    - (void)add: (PTObj*)x;
    - (PTObj*)get: (int)i;
    - (void)set: (int)i val:  (PTObj*)val;
    - (instancetype)init;
    @end

    Swift

    class PTVectorObj : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTVectorPage : NSObject
    {
    
    
    }
    
    
    
    
    - (unsigned long)size;
    - (unsigned long)capacity;
    - (void)reserve: (unsigned long)n;
    - (BOOL)isEmpty;
    - (void)clear;
    - (void)add: (PTPage*)x;
    - (PTPage*)get: (int)i;
    - (void)set: (int)i val:  (PTPage*)val;
    - (instancetype)init;
    @end

    Swift

    class PTVectorPage : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTVectorRedaction : NSObject
    {
    
    
    }
    
    
    
    
    - (unsigned long)size;
    - (unsigned long)capacity;
    - (void)reserve: (unsigned long)n;
    - (BOOL)isEmpty;
    - (void)clear;
    - (void)add: (PTRedaction*)x;
    - (PTRedaction*)get: (int)i;
    - (void)set: (int)i val:  (PTRedaction*)val;
    - (instancetype)init;
    @end

    Swift

    class PTVectorRedaction : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTVectorQuadPoint : NSObject
    {
    
    
    }
    
    
    
    
    - (unsigned long)size;
    - (unsigned long)capacity;
    - (void)reserve: (unsigned long)n;
    - (BOOL)isEmpty;
    - (void)clear;
    - (void)add: (PTQuadPoint*)x;
    - (PTQuadPoint*)get: (int)i;
    - (void)set: (int)i val:  (PTQuadPoint*)val;
    - (instancetype)init;
    @end

    Swift

    class PTVectorQuadPoint : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTVectorAnnot : NSObject
    {
    
    
    }
    
    
    
    
    - (unsigned long)size;
    - (unsigned long)capacity;
    - (void)reserve: (unsigned long)n;
    - (BOOL)isEmpty;
    - (void)clear;
    - (void)add: (PTAnnot*)x;
    - (PTAnnot*)get: (int)i;
    - (void)set: (int)i val:  (PTAnnot*)val;
    - (instancetype)init;
    @end

    Swift

    class PTVectorAnnot : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PT_TRN_matrix2d : NSObject
    {
    
    
    }
    
    
    
    
    - (void)setM_a: (double)value;
    - (double)getM_a;
    - (void)setM_b: (double)value;
    - (double)getM_b;
    - (void)setM_c: (double)value;
    - (double)getM_c;
    - (void)setM_d: (double)value;
    - (double)getM_d;
    - (void)setM_h: (double)value;
    - (double)getM_h;
    - (void)setM_v: (double)value;
    - (double)getM_v;
    - (instancetype)init;
    @end

    Swift

    class PT_TRN_matrix2d : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PT_TRN_date : NSObject
    {
    
    
    }
    
    
    
    
    - (void)setYear: (unsigned short)value;
    - (unsigned short)getYear;
    - (void)setMonth: (char)value;
    - (char)getMonth;
    - (void)setDay: (char)value;
    - (char)getDay;
    - (void)setHour: (char)value;
    - (char)getHour;
    - (void)setMinute: (char)value;
    - (char)getMinute;
    - (void)setSecond: (char)value;
    - (char)getSecond;
    - (void)setUT: (char)value;
    - (char)getUT;
    - (void)setUT_hour: (char)value;
    - (char)getUT_hour;
    - (void)setUT_minutes: (char)value;
    - (char)getUT_minutes;
    - (void)setMp_obj: (void *)value;
    - (void *)getMp_obj;
    - (instancetype)init;
    @end

    Swift

    class PT_TRN_date : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTCharData : NSObject
    {
    
    
    }
    
    
    
    
    - (void)setChar_code: (unsigned int)value;
    - (unsigned int)getChar_code;
    - (void)setX: (double)value;
    - (double)getX;
    - (void)setY: (double)value;
    - (double)getY;
    - (void)setChar_data: (NSData*)value;
    - (NSData*)getChar_data;
    - (void)setBytes: (int)value;
    - (int)getBytes;
    - (instancetype)init;
    @end

    Swift

    class PTCharData : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PT_TRN_point : NSObject
    {
    
    
    }
    
    
    
    
    - (void)setX: (double)value;
    - (double)getX;
    - (void)setY: (double)value;
    - (double)getY;
    - (instancetype)init;
    @end

    Swift

    class PT_TRN_point : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PT_TRN_quadpoint : NSObject
    {
    
    
    }
    
    
    
    
    - (void)setP1x: (double)value;
    - (double)getP1x;
    - (void)setP1y: (double)value;
    - (double)getP1y;
    - (void)setP2x: (double)value;
    - (double)getP2x;
    - (void)setP2y: (double)value;
    - (double)getP2y;
    - (void)setP3x: (double)value;
    - (double)getP3x;
    - (void)setP3y: (double)value;
    - (double)getP3y;
    - (void)setP4x: (double)value;
    - (double)getP4x;
    - (void)setP4y: (double)value;
    - (double)getP4y;
    - (instancetype)init;
    @end

    Swift

    class PT_TRN_quadpoint : NSObject
  • This class represents a Byte Range.

    See more

    Declaration

    Objective-C

    @interface PTByteRange : NSObject

    Swift

    class PTByteRange : NSObject
  • RecentlyUsedCache
    
    RecentlyUsedCache is a persistent cache that provides thumbnails for recently
    used documents in PDFNet.  The cache is stored in the PDFNet Resources folder,
    which can be set by calling PDFNet::SetPersistentCachePath. The cache will be used by
    any PDFNet process that uses the resource path.  If more than one PDFNet process
    is running concurrently, the first process to acquire a lock on the cache will
    use it.  Subsequent processes will not read or modify the cache.
    
    Recently used cache will track the order of N recently used documents, and store
    references to generated PNG thumbnails for those documents.  Most of this functionality
    happens 'magically', without any necessary user action.
    
    See more

    Declaration

    Objective-C

    @interface PTRecentlyUsedCache : NSObject

    Swift

    class PTRecentlyUsedCache : NSObject
  • 2D Matrix

    A Matrix2D object represents a 3x3 matrix that, in turn, represents an affine transformation. A Matrix2D object stores only six of the nine numbers in a 3x3 matrix because all 3x3 matrices that represent affine transformations have the same third column (0, 0, 1).

    Affine transformations include rotating, scaling, reflecting, shearing, and translating. In PDFNet, the Matrix2D class provides the foundation for performing affine transformations on vector drawings, images, and text.

    A transformation matrix specifies the relationship between two coordinate spaces. By modifying a transformation matrix, objects can be scaled, rotated, translated, or transformed in other ways.

    A transformation matrix in PDF is specified by six numbers, usually in the form of an array containing six elements. In its most general form, this array is denoted [a b c d h v]; The following table lists the arrays that specify the most common transformations:

    • Translations are specified as [1 0 0 1 tx ty], where tx and ty are the distances to translate the origin of the coordinate system in the horizontal and vertical dimensions, respectively.

    • Scaling is obtained by [sx 0 0 sy 0 0]. This scales the coordinates so that 1 unit in the horizontal and vertical dimensions of the new coordinate system is the same size as sx and sy units, respectively, in the previous coordinate system.

    • Rotations are produced by [cos(A) sin(A) -sin(A) cos(A) 0 0], which has the effect of rotating the coordinate system axes by an angle ‘A’ counterclockwise.

    • Skew is specified by [1 tan(A) tan(B) 1 0 0], which skews the x axis by an angle A and the y axis by an angle B.

    Matrix2D elements are positioned as follows : | m_a m_b 0 | | m_c m_d 0 | | m_h m_v 1 |

    A single Matrix2D object can store a single transformation or a sequence of transformations. The latter is called a composite transformation. The matrix of a composite transformation is obtained by multiplying (concatenating) the matrices of the individual transformations. Because matrix multiplication is not commutative-the order in which matrices are multiplied is significant. For example, if you first rotate, then scale, then translate, you get a different result than if you first translate, then rotate, then scale.

    For more information on properties of PDF matrices please refer to PDF Reference Manual (Sections 4.2 ‘Coordinate Systems’ and 4.2.3 ‘Transformation Matrices’)

     The following sample illustrates how to use Matrix2D in order to position
     an image on the page. Note that PDFNet uses the same convention of matrix
     multiplication used in PostScript and OpenGL.
    
        Element element = eb.CreateImage(Image(...));
        double deg2rad = 3.1415926535 / 180.0;
    
        Matrix2D mtx = Matrix2D(1, 0, 0, 1, 0, 200); // Translate
        mtx *= Matrix2D(300, 0, 0, 200, 0, 0);    // Scale
        mtx *= Matrix2D::RotationMatrix( 90 * deg2rad ); // Rotate
        element.GetGState().SetTransform(mtx);
        writer.WritePlacedElement(element);
    
     The following sample sample illustrates how to use Matrix2D in order to calculate
     absolute positioning for the text on the page.
     ...
     Matrix2D text_mtx = text_element.GetTextMatrix();
     double x, y;
     for (CharIterator itr = text_element.GetCharIterator(); itr.HasNext(); itr.Next()) {
       x = itr.Current().x; // character positioning information
       y = itr.Current().y;
       // Get current transformation matrix (CTM)
       Matrix2D ctm = text_element.GetCTM();
    
       // To get the absolute character positioning information concatenate current
       // text matrix with CTM and then multiply relative positioning coordinates with
       // the resulting matrix.
       Matrix2D mtx = ctm * text_mtx;
       mtx.Mult(x, y);
     }
    
    See more

    Declaration

    Objective-C

    @interface PTMatrix2D : PT_TRN_matrix2d

    Swift

    class PTMatrix2D : PT_TRN_matrix2d
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTGSChangesIterator : NSObject
    {
    
    
    }
    
    
    
    
    
    - (void)Next;
    - (int)Current;
    - (BOOL)HasNext;
    - (instancetype)init;
    @end

    Swift

    class PTGSChangesIterator : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTUInt32Iterator : NSObject
    {
    
    
    }
    
    
    
    
    
    - (void)Next;
    - (unsigned int)Current;
    - (BOOL)HasNext;
    - (instancetype)init;
    @end

    Swift

    class PTUInt32Iterator : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTCharIterator : NSObject
    {
    
    
    }
    
    
    
    
    
    - (void)Next;
    - (PTCharData*)Current;
    - (BOOL)HasNext;
    - (instancetype)init;
    @end

    Swift

    class PTCharIterator : NSObject
  • MemoryFilter is a memory buffer that can be used as a source or a sink Filter in the Filter pipeline. When a MemoryFilter is the source, other filters can read data stored in memory; When MemoryFilter is a sink, other filters generate data which is then pushed in a memory buffer owned by MemoryFilter (MemoryFilter makes sure that there is enough space to accommodate all data).

    See more

    Declaration

    Objective-C

    @interface PTMemoryFilter : PTFilter

    Swift

    class PTMemoryFilter : PTFilter
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTHTTPRequestOptions : NSObject
    {
    
    
    }
    
    
    
    
    - (void)AddHeader: (NSString *)header val:  (NSString *)val;
    - (void)RestrictDownloadUsage: (BOOL)restricted;
    - (void)SkipByteRangeTest: (BOOL)skip;
    - (void)UseRemoteFileSize: (long long)size_in_bytes;
    - (instancetype)init;
    @end

    Swift

    class PTHTTPRequestOptions : NSObject
  • This class represents PDFTron Custom Security handler that applies PDFTron’s custom encryption method on save.

    See more

    Declaration

    Objective-C

    @interface PTPDFTronCustomSecurityHandler : PTSecurityHandler

    Swift

    class PTPDFTronCustomSecurityHandler : PTSecurityHandler
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTSDFDocSnapshot : NSObject
    {
    
    
    }
    
    
    
    
    
    - (unsigned int)GetHash;
    - (BOOL)IsValid;
    - (BOOL)Equals: (PTSDFDocSnapshot*)snapshot;
    - (instancetype)initWithImpl: (void *)impl;
    @end

    Swift

    class PTSDFDocSnapshot : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTSDFResultSnapshot : NSObject
    {
    
    
    }
    
    
    
    
    
    - (PTSDFDocSnapshot*)CurrentState;
    - (PTSDFDocSnapshot*)PreviousState;
    - (BOOL)IsOk;
    - (BOOL)IsNullTransition;
    - (instancetype)initWithImpl: (void *)impl;
    @end

    Swift

    class PTSDFResultSnapshot : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTSDFUndoManager : NSObject
    {
    
    
    }
    
    
    
    
    
    - (PTSDFDocSnapshot*)DiscardAllSnapshots;
    - (PTSDFResultSnapshot*)Undo;
    - (BOOL)CanUndo;
    - (PTSDFDocSnapshot*)GetNextUndoSnapshot;
    - (PTSDFResultSnapshot*)Redo;
    - (BOOL)CanRedo;
    - (PTSDFDocSnapshot*)GetNextRedoSnapshot;
    - (PTSDFResultSnapshot*)TakeSnapshot;
    - (instancetype)initWithImpl: (void *)impl;
    @end

    Swift

    class PTSDFUndoManager : NSObject
  • Although PDF is not a programming language it provides several types of function object that represent parameterized classes of functions, including mathematical formulas and sampled representations with arbitrary resolution. Functions are used in various ways in PDF, including device-dependent rasterization information for high-quality printing (halftone spot functions and transfer functions), color transform functions for certain color spaces, and specification of colors as a function of position for smooth shadings. Functions in PDF represent static, self-contained numerical transformations.

    PDF::Function represents a single, flat interface around all PDF function types.

    See more

    Declaration

    Objective-C

    @interface PTFunction : NSObject

    Swift

    class PTFunction : NSObject
  • The class GeometryCollection. A Preprocessed PDF geometry collection

    See more

    Declaration

    Objective-C

    @interface PTGeometryCollection : NSObject

    Swift

    class PTGeometryCollection : NSObject
  • ColorPt is an array of colorants (or tint values) representing a color point in an associated color space.

    See more

    Declaration

    Objective-C

    @interface PTColorPt : NSObject

    Swift

    class PTColorPt : NSObject
  • This abstract class is used to serve as a color space tag to identify the specific color space of a Color object. It contains methods that transform colors in a specific color space to/from several color space such as DeviceRGB and DeviceCMYK.

    For purposes of the methods in this class, colors are represented as arrays of color components represented as doubles in a normalized range defined by each ColorSpace. For many ColorSpaces (e.g. DeviceRGB), this range is 0.0 to 1.0. However, some ColorSpaces have components whose values have a different range. Methods are provided to inquire per component minimum and maximum normalized values.

    Note

    Note that in Pattern color space (i.e. for ColorSpace::e_pattern) ‘color values’ are PDF::PatternColor objects instead of the numeric component values (i.e. ColorPt) used with other spaces.
    See more

    Declaration

    Objective-C

    @interface PTColorSpace : NSObject

    Swift

    class PTColorSpace : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTPDFRectCollection : NSObject
    {
    
    
    }
    
    
    
    
    - (void)AddRect: (PTPDFRect*)to_add;
    - (PTPDFRect*)GetRectAt: (unsigned long)index;
    - (unsigned long)GetNumRects;
    - (void)Clear;
    - (instancetype)init;
    @end

    Swift

    class PTPDFRectCollection : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTViewChangeCollection : NSObject
    {
    
    
    }
    
    
    
    
    
    + (PTViewChangeCollection*)CreateInternal: (unsigned long long)impl;
    - (unsigned long long)GetHandleInternal;
    - (instancetype)init;
    @end

    Swift

    class PTViewChangeCollection : NSObject
  • Page is a high-level class representing PDF page object (see ‘Page Objects’ in Section 3.6.2, ‘Page Tree,’ in PDF Reference Manual).

    Among other associated objects, a page object contains:

    • A series of objects representing the objects drawn on the page (See Element and ElementReader class for examples of how to extract page content).
    • A list of resources used in drawing the page
    • Annotations
    • Beads, private metadata, optional thumbnail image, etc.
    See more

    Declaration

    Objective-C

    @interface PTPage : NSObject

    Swift

    class PTPage : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTPageIterator : NSObject
    {
    
    
    }
    
    
    
    
    
    - (void)Next;
    - (PTPage*)Current;
    - (BOOL)HasNext;
    - (instancetype)init;
    @end

    Swift

    class PTPageIterator : NSObject
  • The Date class is a utility class used to simplify work with PDF date objects.

    PDF defines a standard date format, which closely follows international standard ASN.1 (Abstract Syntax Notation One), A date is a string of the form (D:YYYYMMDDHHmmSSOHH'mm’); See PDF Reference Manual for details.

    Date can be associated with a SDF/Cos date string using Date(Obj*) constructor or later using Date::Attach(Obj*) or Date::Update(Obj*) methods.

    Date keeps a local date/time cache so it is necessary to call Date::Update() method if the changes to the Date should be saved in the attached Cos/SDF string.

    See more

    Declaration

    Objective-C

    @interface PTDate : PT_TRN_date

    Swift

    class PTDate : PT_TRN_date
  • GState is a class that keeps track of a number of style attributes used to visually define graphical Elements. Each PDF::Element has an associated GState that can be used to query or set various graphics properties.

    Note

    current clipping path is not tracked in the graphics state for efficiency reasons. In most cases tracking of the current clipping path is best left to the client.
    See more

    Declaration

    Objective-C

    @interface PTGState : NSObject

    Swift

    class PTGState : NSObject
  • Image class provides common methods for working with PDF images.

    Note

    PDF::Element contains a similar interface used to access image data. To create the Image object from image PDF::Element, pass the Element’s SDF/Cos dictionary to Image constructor (i.e. Image image(element->GetXObject()) )
    See more

    Declaration

    Objective-C

    @interface PTImage : NSObject

    Swift

    class PTImage : NSObject
  • This class represents an object identifier (OID), as defined by ITU and used in X.509.

    See more

    Declaration

    Objective-C

    @interface PTObjectIdentifier : NSObject

    Swift

    class PTObjectIdentifier : NSObject
  • This class represents an AttributeTypeAndValue as mentioned in RFC 5280 in the context of DistinguishedNames and as defined in ITU X.501.

    See more

    Declaration

    Objective-C

    @interface PTX501AttributeTypeAndValue : NSObject

    Swift

    class PTX501AttributeTypeAndValue : NSObject
  • This class represents a distinguished name (DN) as defined in X.501. See the X.500 standards, RFC 5280, and an OID repository for more information.

    See more

    Declaration

    Objective-C

    @interface PTX501DistinguishedName : NSObject

    Swift

    class PTX501DistinguishedName : NSObject
  • This class represents an X509v3 certificate extension. See RFC 5280 as a specification.

    See more

    Declaration

    Objective-C

    @interface PTX509Extension : NSObject

    Swift

    class PTX509Extension : NSObject
  • This class represents an X509 public-key certificate, as specified in RFC 5280.

    See more

    Declaration

    Objective-C

    @interface PTX509Certificate : NSObject

    Swift

    class PTX509Certificate : NSObject
  • The class DisallowedChange. Data pertaining to a change detected in a document during a digital signature modification permissions verification step, the change bein g both made after the signature was signed, and disallowed by t he signature’s permissions settings.

    See more

    Declaration

    Objective-C

    @interface PTDisallowedChange : NSObject

    Swift

    class PTDisallowedChange : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTXFDFExportOptions : NSObject
    {
    
    
    }
    
    
    
    
    - (BOOL)GetWriteAnnotationAppearance;
    - (PTXFDFExportOptions*)SetWriteAnnotationAppearance: (BOOL)value;
    - (BOOL)GetWriteImagedata;
    - (PTXFDFExportOptions*)SetWriteImagedata: (BOOL)value;
    - (instancetype)init;
    @end

    Swift

    class PTXFDFExportOptions : NSObject
  • Options pertaining to digital signature verification.

    See more

    Declaration

    Objective-C

    @interface PTVerificationOptions : NSObject

    Swift

    class PTVerificationOptions : NSObject
  • The detailed result of a trust verification step of a verification operation performed on a digital signature.

    See more

    Declaration

    Objective-C

    @interface PTTrustVerificationResult : NSObject

    Swift

    class PTTrustVerificationResult : NSObject
  • Retrieves the main verification status. The main status is determined based on the other statuses. Verification may fail for many reasons; some of these reasons are the presence of features that are not supported yet. It may be desirable for you to report unsupported signatures differently (for example, using a question mark rather than an X mark). Any unsupported features encountered can be retrieved by the use of the function GetUnsupportedFeatures on this class.

    See more

    Declaration

    Objective-C

    @interface PTVerificationResult : NSObject

    Swift

    class PTVerificationResult : NSObject

    Return Value

    A boolean representing whether or not the verification operation was completely successful.

  • This class represents the result of verifying a secure embedded timestamp digital signature.

    See more

    Declaration

    Objective-C

    @interface PTEmbeddedTimestampVerificationResult : NSObject

    Swift

    class PTEmbeddedTimestampVerificationResult : NSObject
  • A class representing the result of testing a timestamping configuration.

    See more

    Declaration

    Objective-C

    @interface PTTimestampingResult : NSObject

    Swift

    class PTTimestampingResult : NSObject
  • A class representing a set of options for timestamping a document.

    See more

    Declaration

    Objective-C

    @interface PTTimestampingConfiguration : NSObject

    Swift

    class PTTimestampingConfiguration : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTDigestAlgorithm : NSObject
    {
    
    
    }
    
    
    
    
    + (NSData*)CalculateDigest: (PTDigestAlgorithmType)in_digest_algorithm_type in_message_buf:  (NSData*)in_message_buf;
    - (instancetype)init;
    @end

    Swift

    class PTDigestAlgorithm : NSObject
  • A class representing a digital signature form field.

    See more

    Declaration

    Objective-C

    @interface PTDigitalSignatureField : NSObject

    Swift

    class PTDigitalSignatureField : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTDigitalSignatureFieldIterator : NSObject
    {
    
    
    }
    
    
    
    
    
    - (void)Next;
    - (PTDigitalSignatureField*)Current;
    - (BOOL)HasNext;
    - (instancetype)init;
    @end

    Swift

    class PTDigitalSignatureFieldIterator : NSObject
  • FileSpec corresponds to the PDF file specification object.

    A PDF file can refer to the contents of another file by using a file specification, which can take either of the following forms:

    • A simple file specification gives just the name of the target file in a standard format, independent of the naming conventions of any particular file system.

    • A full file specification includes information related to one or more specific file systems.

    • A URL reference.

    Although the file designated by a file specification is normally external to the PDF file referring to it, it is also possible to embed the file allowing its contents to be stored or transmitted along with the PDF file. However, embedding a file does not change the presumption that it is external to (or separate from) the PDF file.

    For more details on file specifications, please refer to Section 3.10, ‘File Specifications’ in the PDF Reference Manual.

    See more

    Declaration

    Objective-C

    @interface PTFileSpec : NSObject

    Swift

    class PTFileSpec : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTRefreshOptions : NSObject
    {
    
    
    }
    
    
    
    
    - (BOOL)GetDrawBackgroundOnly;
    - (PTRefreshOptions*)SetDrawBackgroundOnly: (BOOL)value;
    - (BOOL)GetRefreshExisting;
    - (PTRefreshOptions*)SetRefreshExisting: (BOOL)value;
    - (BOOL)GetUseNonStandardRotation;
    - (PTRefreshOptions*)SetUseNonStandardRotation: (BOOL)value;
    - (BOOL)GetUseRoundedCorners;
    - (PTRefreshOptions*)SetUseRoundedCorners: (BOOL)value;
    - (instancetype)init;
    @end

    Swift

    class PTRefreshOptions : NSObject
  • BorderStyle structure specifies the characteristics of the annotation’s border. The border is specified as a rounded rectangle.

    See more

    Declaration

    Objective-C

    @interface PTBorderStyle : NSObject

    Swift

    class PTBorderStyle : NSObject
  • A destination defines a particular view of a document, consisting of the following:

    • The page of the document to be displayed
    • The location of the document window on that page
    • The magnification (zoom) factor to use when displaying the page

    Destinations may be associated with Bookmarks, Annotations, and Remote Go-To Actions.

    Destination is a utility class used to simplify work with PDF Destinations; Please refer to section 8.2.1 ‘Destinations’ in PDF Reference Manual for details.

    See more

    Declaration

    Objective-C

    @interface PTDestination : NSObject

    Swift

    class PTDestination : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTDiffOptions : NSObject
    {
    
    
    }
    
    
    
    
    - (BOOL)GetAddGroupAnnots;
    - (PTDiffOptions*)SetAddGroupAnnots: (BOOL)value;
    - (PTBlendMode)GetBlendMode;
    - (PTDiffOptions*)SetBlendMode: (PTBlendMode)value;
    - (PTColorPt*)GetColorA;
    - (PTDiffOptions*)SetColorA: (PTColorPt*)value;
    - (PTColorPt*)GetColorB;
    - (PTDiffOptions*)SetColorB: (PTColorPt*)value;
    - (instancetype)init;
    @end

    Swift

    class PTDiffOptions : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTKeyStrokeEventData : NSObject
    {
    
    
    }
    
    
    
    
    
    - (instancetype)initWithField_name: (NSString *)field_name current_value:  (NSString *)current_value change:  (NSString *)change selection_start:  (int)selection_start selection_end:  (int)selection_end;
    @end

    Swift

    class PTKeyStrokeEventData : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTKeyStrokeActionResult : NSObject
    {
    
    
    }
    
    
    
    
    - (BOOL)IsValid;
    - (NSString *)GetText;
    
    - (instancetype)initWithAction_result: (PTKeyStrokeActionResult*)action_result;
    @end

    Swift

    class PTKeyStrokeActionResult : NSObject
  • Actions are typically what happens when a user clicks on a link or bookmark.

    Instead of simply jumping to a destination in the document, an annotation or outline item can specify an action for the viewer application to perform, such as launching an application, playing a sound, or changing an annotation’s appearance state.

    Note

    Although the Action class provides utility functions for most commonly used action types, it is possible to read, write, and edit any action type using SDF API and dictionary entries described in Section 8.5 in the PDF Reference Manual.
    See more

    Declaration

    Objective-C

    @interface PTAction : NSObject

    Swift

    class PTAction : NSObject
  • ActionParameter is a class used to describe all the information needed to execute an action. In most cases only the action itself is necessary since the document can be inferred from associated SDF::Obj, however some actions particularly JavaScript actions on Field or Annot objects need access to the associated Field or Annot object.

    See more

    Declaration

    Objective-C

    @interface PTActionParameter : NSObject

    Swift

    class PTActionParameter : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTOCROptions : NSObject
    {
    
    
    }
    
    
    
    
    - (PTOCROptions*)AddIgnoreZonesForPage: (PTPDFRectCollection*)regions page_num:  (int)page_num;
    - (PTOCROptions*)AddLang: (NSString *)lang;
    - (PTOCROptions*)AddTextZonesForPage: (PTPDFRectCollection*)regions page_num:  (int)page_num;
    - (PTOCROptions*)AddDPI: (int)dpi;
    - (PTOCROptions*)SetUsePDFPageCoords: (BOOL)value;
    - (PTOCROptions*)SetIgnoreExistingText: (BOOL)value;
    - (BOOL)GetAutoRotate;
    - (PTOCROptions*)SetAutoRotate: (BOOL)value;
    - (NSString *)GetOCREngine;
    - (PTOCROptions*)SetOCREngine: (NSString *)value;
    - (instancetype)init;
    @end

    Swift

    class PTOCROptions : NSObject
  • The class OCRModule. static interface to PDFTron SDKs OCR functionality

    See more

    Declaration

    Objective-C

    @interface PTOCRModule : NSObject

    Swift

    class PTOCRModule : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTCADConvertOptions : NSObject
    {
    
    
    }
    
    
    
    
    - (BOOL)GetAllowThinLines;
    - (PTCADConvertOptions*)SetAllowThinLines: (BOOL)value;
    - (BOOL)GetAutoRotate;
    - (PTCADConvertOptions*)SetAutoRotate: (BOOL)value;
    - (PTColorPt*)GetBackgroundColor;
    - (PTCADConvertOptions*)SetBackgroundColor: (PTColorPt*)value;
    - (NSString *)GetColorMode;
    - (PTCADConvertOptions*)SetColorMode: (NSString *)value;
    - (BOOL)GetIncludeModel;
    - (PTCADConvertOptions*)SetIncludeModel: (BOOL)value;
    - (PTCADLayoutSortOrder)GetLayoutSortOrder;
    - (PTCADConvertOptions*)SetLayoutSortOrder: (PTCADLayoutSortOrder)value;
    - (unsigned int)GetMaxXrefDepth;
    - (PTCADConvertOptions*)SetMaxXrefDepth: (unsigned int)value;
    - (double)GetPageHeight;
    - (PTCADConvertOptions*)SetPageHeight: (double)value;
    - (double)GetPageWidth;
    - (PTCADConvertOptions*)SetPageWidth: (double)value;
    - (double)GetRasterDPI;
    - (PTCADConvertOptions*)SetRasterDPI: (double)value;
    - (PTCADConvertOptions*)AddSheets: (NSString *)value;
    - (BOOL)GetUseScaleFromDocument;
    - (PTCADConvertOptions*)SetUseScaleFromDocument: (BOOL)value;
    - (BOOL)GetZoomToExtents;
    - (PTCADConvertOptions*)SetZoomToExtents: (BOOL)value;
    - (instancetype)init;
    @end

    Swift

    class PTCADConvertOptions : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTSVGConvertOptions : NSObject
    {
    
    
    }
    
    
    
    
    - (BOOL)GetConvertLinks;
    - (PTSVGConvertOptions*)SetConvertLinks: (BOOL)value;
    - (NSString *)GetDefaultFontFamily;
    - (PTSVGConvertOptions*)SetDefaultFontFamily: (NSString *)value;
    - (NSString *)GetFallbackFontFamily;
    - (PTSVGConvertOptions*)SetFallbackFontFamily: (NSString *)value;
    - (double)GetFallbackHeight;
    - (PTSVGConvertOptions*)SetFallbackHeight: (double)value;
    - (double)GetFallbackWidth;
    - (PTSVGConvertOptions*)SetFallbackWidth: (double)value;
    - (BOOL)GetForceSRGB;
    - (PTSVGConvertOptions*)SetForceSRGB: (BOOL)value;
    - (double)GetForcedHeight;
    - (PTSVGConvertOptions*)SetForcedHeight: (double)value;
    - (double)GetForcedWidth;
    - (PTSVGConvertOptions*)SetForcedWidth: (double)value;
    - (BOOL)GetHonorIccProfile;
    - (PTSVGConvertOptions*)SetHonorIccProfile: (BOOL)value;
    - (BOOL)GetInline;
    - (PTSVGConvertOptions*)SetInline: (BOOL)value;
    - (NSString *)GetLang;
    - (PTSVGConvertOptions*)SetLang: (NSString *)value;
    - (instancetype)init;
    @end

    Swift

    class PTSVGConvertOptions : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTDataExtractionOptions : NSObject
    {
    
    
    }
    
    
    
    
    - (BOOL)GetDeepLearningAssist;
    - (PTDataExtractionOptions*)SetDeepLearningAssist: (BOOL)value;
    - (NSString *)GetLanguage;
    - (PTDataExtractionOptions*)SetLanguage: (NSString *)value;
    - (NSString *)GetOverlappingFormFieldBehavior;
    - (PTDataExtractionOptions*)SetOverlappingFormFieldBehavior: (NSString *)value;
    - (NSString *)GetPDFPassword;
    - (PTDataExtractionOptions*)SetPDFPassword: (NSString *)value;
    - (NSString *)GetPages;
    - (PTDataExtractionOptions*)SetPages: (NSString *)value;
    - (instancetype)init;
    @end

    Swift

    class PTDataExtractionOptions : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTAdvancedImagingConvertOptions : NSObject
    {
    
    
    }
    
    
    
    
    - (double)GetDefaultDPI;
    - (PTAdvancedImagingConvertOptions*)SetDefaultDPI: (double)value;
    - (instancetype)init;
    @end

    Swift

    class PTAdvancedImagingConvertOptions : NSObject
  • The class CADModule. static interface to PDFTron SDKs CAD functionality

    See more

    Declaration

    Objective-C

    @interface PTCADModule : NSObject

    Swift

    class PTCADModule : NSObject
  • The class PDF2WordModule. static interface to PDFTron SDKs PDF to Word functionality

    See more

    Declaration

    Objective-C

    @interface PTPDF2WordModule : NSObject

    Swift

    class PTPDF2WordModule : NSObject
  • The class PDF2HtmlReflowParagraphsModule. static interface to PDFTron SDKs PDF to HTML functionality

    See more

    Declaration

    Objective-C

    @interface PTPDF2HtmlReflowParagraphsModule : NSObject

    Swift

    class PTPDF2HtmlReflowParagraphsModule : NSObject
  • The class StructuredOutputModule. static interface to PDFTron SDKs PDF to Word, Excel, PowerPoint, HTML functionality

    See more

    Declaration

    Objective-C

    @interface PTStructuredOutputModule : NSObject

    Swift

    class PTStructuredOutputModule : NSObject
  • An object representing a check box used in a PDF Form.

    See more

    Declaration

    Objective-C

    @interface PTCheckBoxWidget : PTWidget

    Swift

    class PTCheckBoxWidget : PTWidget
  • An object representing a combo box used in a PDF Form.

    See more

    Declaration

    Objective-C

    @interface PTComboBoxWidget : PTWidget

    Swift

    class PTComboBoxWidget : PTWidget
  • An object representing a List Box used in a PDF Form.

    See more

    Declaration

    Objective-C

    @interface PTListBoxWidget : PTWidget

    Swift

    class PTListBoxWidget : PTWidget
  • An object representing a push button used in a PDF Form.

    See more

    Declaration

    Objective-C

    @interface PTPushButtonWidget : PTWidget

    Swift

    class PTPushButtonWidget : PTWidget
  • An object representing a Radio Button used in a PDF Form.

    See more

    Declaration

    Objective-C

    @interface PTRadioButtonWidget : PTWidget

    Swift

    class PTRadioButtonWidget : PTWidget
  • An object representing a Group of Radio Buttons that can be used to create new Radio Buttons. If a group contains multiple buttons they will be connected.

    See more

    Declaration

    Objective-C

    @interface PTRadioButtonGroup : NSObject

    Swift

    class PTRadioButtonGroup : NSObject
  • An object representing a Signature used in a PDF Form. These Widgets can be signed directly, or signed using a DigitalSignatureField.

    See more

    Declaration

    Objective-C

    @interface PTSignatureWidget : PTWidget

    Swift

    class PTSignatureWidget : PTWidget
  • An object representing a Text Box used in a PDF Form.

    See more

    Declaration

    Objective-C

    @interface PTTextWidget : PTWidget

    Swift

    class PTTextWidget : PTWidget
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTPDFAOptions : NSObject
    {
    
    
    }
    
    
    
    
    - (PTConformance)GetConformance;
    - (PTPDFAOptions*)SetConformance: (PTConformance)value;
    - (unsigned int)GetDPI;
    - (PTPDFAOptions*)SetDPI: (unsigned int)value;
    - (BOOL)GetFirstStop;
    - (PTPDFAOptions*)SetFirstStop: (BOOL)value;
    - (BOOL)GetFlattenTransparency;
    - (PTPDFAOptions*)SetFlattenTransparency: (BOOL)value;
    - (unsigned int)GetMaxRefObjs;
    - (PTPDFAOptions*)SetMaxRefObjs: (unsigned int)value;
    - (NSString *)GetPassword;
    - (PTPDFAOptions*)SetPassword: (NSString *)value;
    - (instancetype)initWithLevel: (PTConformance)level;
    @end

    Swift

    class PTPDFAOptions : NSObject
  • A %PDF document may optionally display a document outline on the screen, allowing the user to navigate interactively from one part of the document to another. The outline consists of a tree-structured hierarchy of Bookmarks (sometimes called outline items), which serve as a ‘visual table of contents’ to display the document’s structure to the user.

    Each Bookmark has a title that appears on screen, and an Action that specifies what happens when a user clicks on the Bookmark. The typical action for a user-created Bookmark is to move to another location in the current document, although any action (see PDF::Action) can be specified.

    Bookmark is a utility class used to simplify work with %PDF bookmarks (or outlines; see section 8.2.2 ‘Document Outline’ in %PDF Reference Manual for more details).

    See more

    Declaration

    Objective-C

    @interface PTBookmark : NSObject

    Swift

    class PTBookmark : NSObject
  • ContentReplacer is a utility class for replacing content (text and images) in existing PDF (template) documents.

    Users can replace content in a PDF page using the following operations:

    • Replace an image that exists in a target rectangle with a replacement image.
    • Replace text that exists in a target rectangle with replacement text.
    • Replace all instances of a specially marked string with replacement string.

    The following code replaces an image in a target region. This code also replaces the text “[NAME]” and “[JOB_TITLE]” with “John Smith” and “Software Developer” respectively. Notice the square braces (‘[’ and ‘]’) on the target strings in the original PDFDoc. These square braces are not included in the actual function calls below, as they’re implicitly added.

     PDFDoc doc("../../TestFiles/BusinessCardTemplate.pdf");
     doc.InitSecurityHandler();
     ContentReplacer replacer;
     Page page = doc.GetPage(1);
     Image img = Image::Create(doc, "../../TestFiles/peppers.jpg");
     replacer.AddImage(page.GetMediaBox(), img.GetSDFObj());
     replacer.AddString("NAME", "John Smith");
     replacer.AddString("JOB_TITLE", "Software Developer");
     replacer.Process(page);
    
    See more

    Declaration

    Objective-C

    @interface PTContentReplacer : NSObject

    Swift

    class PTContentReplacer : NSObject
  • Contains the information required to draw the path. Contains an array of PathSegmentType Operators and corresponding path data Points. A point may be on or off (off points are control points). The meaning of a point depends on associated id (or segment type) in the path segment type array.

    See more

    Declaration

    Objective-C

    @interface PTPathData : NSObject

    Swift

    class PTPathData : NSObject
  • The class ShapedText. A sequence of positioned glyphs – the visual representation of a given text string

    See more

    Declaration

    Objective-C

    @interface PTShapedText : NSObject

    Swift

    class PTShapedText : NSObject
  • A font that is used to draw text on a page. It corresponds to a Font Resource in a PDF file. More than one page may reference the same Font object. A Font has a number of attributes, including an array of widths, the character encoding, and the font’s resource name.

    PDF document can contain several different types of fonts and Font class represents a single, flat interface around all PDF font types.

    There are two main classes of fonts in PDF: simple and composite fonts.

    Simple fonts are Type1, TrueType, and Type3 fonts. All simple fonts have the following properties:

    • Glyphs in the font are selected by single-byte character codes obtained from a string that is shown by the text-showing operators. Logically, these codes index into a table of 256 glyphs; the mapping from codes to glyphs is called the font’s encoding. Each font program has a built-in encoding. Under some circumstances, the encoding can be altered by means described in Section 5.5.5 “Character Encoding” in PDF Reference Manual.

    • Each glyph has a single set of metrics. Therefore simple fonts support only horizontal writing mode.

    A composite font is one whose glyphs are obtained from a font like object called a CIDFont (e.g. CIDType0Font and CIDType0Font). A composite font is represented by a font dictionary whose Subtype value is Type0. The Type 0 font is known as the root font, while its associated CIDFont is called its descendant. CID-keyed fonts provide a convenient and efficient method for defining multiple-byte character encodings and fonts with a large number of glyphs. These capabilities provide great flexibility for representing text in writing systems for languages with large character sets, such as Chinese, Japanese, and Korean (CJK).

    See more

    Declaration

    Objective-C

    @interface PTFont : NSObject

    Swift

    class PTFont : NSObject
  • Shading is a class that represents a flat interface around all PDF shading types:

    • In Function-based (type 1) shadings, the color at every point in the domain is defined by a specified mathematical function. The function need not be smooth or continuous. This is the most general of the available shading types, and is useful for shadings that cannot be adequately described with any of the other types.

    • Axial shadings (type 2) define a color blend along a line between two points, optionally extended beyond the boundary points by continuing the boundary colors.

    • Radial shadings (type 3) define a color blend that varies between two circles. Shadings of this type are commonly used to depict three-dimensional spheres and cones.

    • Free-form Gouraud-shaded triangle mesh shadings (type 4) and lattice Gouraud shadings (type 5) are commonly used to represent complex colored and shaded three-dimensional shapes. The area to be shaded is defined by a path composed entirely of triangles. The color at each vertex of the triangles is specified, and a technique known as Gouraud interpolation is used to color the interiors. The interpolation functions defining the shading may be linear or nonlinear.

    • Coons patch mesh shadings (type 6) are constructed from one or more color patches, each bounded by four cubic Bezier curves.

      A Coons patch generally has two independent aspects:

      • Colors are specified for each corner of the unit square, and bilinear interpolation is used to fill in colors over the entire unit square
      • Coordinates are mapped from the unit square into a four-sided patch whose sides are not necessarily linear. The mapping is continuous: the corners of the unit square map to corners of the patch and the sides of the unit square map to sides of the patch.
    • Tensor-product patch mesh shadings (type 7) are identical to type 6 (Coons mesh), except that they are based on a bicubic tensor-product patch defined by 16 control points, instead of the 12 control points that define a Coons patch. The shading Patterns dictionaries representing the two patch types differ only in the value of the Type entry and in the number of control points specified for each patch in the data stream. Although the Coons patch is more concise and easier to use, the tensor- product patch affords greater control over color mapping.

    See more

    Declaration

    Objective-C

    @interface PTShading : NSObject

    Swift

    class PTShading : NSObject
  • Patterns are quite general, and have many uses; for example, they can be used to create various graphical textures, such as weaves, brick walls, sunbursts, and similar geometrical and chromatic effects.

    Patterns are specified in a special family of color spaces named Pattern, whose ‘color values’ are PatternColor objects instead of the numeric component values used with other spaces. Therefore PatternColor is to pattern color space what is ColorPt to all other color spaces.

    A tiling pattern consists of a small graphical figure called a pattern cell. Painting with the pattern replicates the cell at fixed horizontal and vertical intervals to fill an area. The effect is as if the figure were painted on the surface of a clear glass tile, identical copies of which were then laid down in an array covering the area and trimmed to its boundaries. This is called tiling the area.

    The pattern cell can include graphical elements such as filled areas, text, and sampled images. Its shape need not be rectangular, and the spacing of tiles can differ from the dimensions of the cell itself.

    The order in which individual tiles (instances of the cell) are painted is unspecified and unpredictable; it is inadvisable for the figures on adjacent tiles to overlap.

    See more

    Declaration

    Objective-C

    @interface PTPatternColor : NSObject

    Swift

    class PTPatternColor : NSObject
  • Element is the abstract interface used to access graphical elements used to build the display list.

    Just like many other classes in PDFNet (e.g. ColorSpace, Font, Annot, etc), Element class follows the composite design pattern. This means that all Elements are accessed through the same interface, but depending on the Element type (that can be obtained using GetType()), only methods related to that type can be called. For example, if GetType() returns e_image, it is illegal to call a method specific to another Element type (i.e. a call to a text specific GetTextData() will throw an Exception).

    See more

    Declaration

    Objective-C

    @interface PTElement : NSObject

    Swift

    class PTElement : NSObject
  • ElementBuilder is used to build new PDF::Elements (e.g. image, text, path, etc) from scratch. In conjunction with ElementWriter, ElementBuilder can be used to create new page content.

    Note

    Analogous to ElementReader, every call to ElementBuilder.Create? method destroys the Element currently associated with the builder and all previous Element pointers are invalidated.

    Note

    For C++ developers. Analogous to ElementReader, ElementBuilder is the owner of all Element objects it creates.

    See more

    Declaration

    Objective-C

    @interface PTElementBuilder : NSObject

    Swift

    class PTElementBuilder : NSObject
  • ElementReader can be used to parse and process content streams. ElementReader provides a convenient interface used to traverse the Element display list of a page. The display list representing graphical elements (such as text-runs, paths, images, shadings, forms, etc) is accessed using the intrinsic iterator. ElementReader automatically concatenates page contents spanning multiple streams and provides a mechanism to parse contents of sub-display lists (e.g. forms XObjects and Type3 fonts).

    A sample use case for ElementReader is given below:

     ...
     ElementReader reader;
     reader.Begin(page);
     for (Element element=reader.Next(); element; element = reader.Next()) // Read page contents
     {
       switch (element.GetType())   {
         case Element::e_path: { // Process path data...
             const double* data = element.GetPathPoints();
             int sz = element.GetPointCount();
         }
         break;
         case Element::e_text:
             // ...
         break;
       }
     }
     reader.End();
    

    For a full sample, please refer to ElementReader and ElementReaderAdvTest sample projects.

    See more

    Declaration

    Objective-C

    @interface PTElementReader : NSObject

    Swift

    class PTElementReader : NSObject
  • ElementWriter can be used to assemble and write new content to a page, Form XObject, Type3 Glyph stream, pattern stream, or any other content stream.

    See more

    Declaration

    Objective-C

    @interface PTElementWriter : NSObject

    Swift

    class PTElementWriter : NSObject
  • The class ExternalAnnotManager. A manager class attached to a PDFView that takes care of annotations from xfdf sources

    ExternalAnnotManager instances are created through the PDFView using PDFView.GetExternalAnnotManager()

    See more

    Declaration

    Objective-C

    @interface PTExternalAnnotManager : NSObject

    Swift

    class PTExternalAnnotManager : NSObject
  • Flattener is a optional PDFNet add-on that can be used to simplify and optimize existing PDF’s to render faster on devices with lower memory and speeds.

    PDF documents can frequently contain very complex page description (e.g. thousands of paths, different shadings, color spaces, blend modes, large images etc.) that may not be suitable for interactive viewing on mobile devices. Flattener can be used to speed-up PDF rendering on mobile devices and on the Web by simplifying page content (e.g. flattening complex graphics into images) while maintaining vector text whenever possible.

    By using the FlattenMode::e_simple option each page in the PDF will be reduced to a single background image, with the remaining text over top in vector format. Some text may still get flattened, in particular any text that is clipped, or underneath, other content that will be flattened.

    On the other hand the FlattenMode::e_fast will not flatten simple content, such as simple straight lines, nor will it flatten Type3 fonts.

    Note

    ‘Flattener’ is available as a separately licensable add-on to PDFNet core license.

    Note

    See ‘pdftron.PDF.Optimizer’ for alternate approach to optimize PDFs with focus on file size reduction.

    See more

    Declaration

    Objective-C

    @interface PTFlattener : NSObject

    Swift

    class PTFlattener : NSObject
  • LinkInfo is a utility class used to store information about links when used along with the SetUrlExtraction feature.

    See more

    Declaration

    Objective-C

    @interface PTLinkInfo : NSObject

    Swift

    class PTLinkInfo : NSObject
  • Image2RGB is a filter that can decompress and normalize any PDF image stream (e.g. monochrome, CMYK, etc) into a raw RGB pixel stream.

    See more

    Declaration

    Objective-C

    @interface PTImage2RGB : PTFilter

    Swift

    class PTImage2RGB : PTFilter
  • Image2RGBA is a filter that can decompress and normalize any PDF image stream (e.g. monochrome, CMYK, etc) into a raw RGBA pixel stream.

    See more

    Declaration

    Objective-C

    @interface PTImage2RGBA : PTFilter

    Swift

    class PTImage2RGBA : PTFilter
  • SWIG director's base class
    
    Contains virtual functions which match the signature of the PDFNet function pointers.
    

    Each virtual function has a matching static function calling it. User extends this class in the target language and overrides the function of interest. The static function is assigned to the function pointer.

    See more

    Declaration

    Objective-C

    @interface PTCallback : NSObject

    Swift

    class PTCallback : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTPDFTextRange : NSObject
    {
    
    
    }
    
    
    
    
    - (int)GetPageNumber;
    - (PTVectorQuadPoint*)GetQuads;
    - (NSString *)GetText;
    - (NSString *)GetTextBefore: (int)count;
    - (NSString *)GetTextAfter: (int)count;
    
    + (PTPDFTextRange*)CreateInternal: (unsigned long long)impl;
    - (unsigned long long)GetHandleInternal;
    - (instancetype)init;
    @end

    Swift

    class PTPDFTextRange : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTHighlight : NSObject
    {
    
    
    }
    
    
    
    
    - (void)setPage_num: (int)value;
    - (int)getPage_num;
    - (void)setPosition: (int)value;
    - (int)getPosition;
    - (void)setLength: (int)value;
    - (int)getLength;
    - (instancetype)init;- (instancetype)initWithPg: (int)pg pos:  (int)pos len:  (int)len;
    @end

    Swift

    class PTHighlight : NSObject
  • Save the current Highlight information in the class to a file.

    See more

    Declaration

    Objective-C

    @interface PTHighlights : NSObject

    Swift

    class PTHighlights : NSObject

    Parameters

    file_name

    the name of the file to save to.

  • A class representing the current text selection.

    See more

    Declaration

    Objective-C

    @interface PTSelection : NSObject

    Swift

    class PTSelection : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTOptimizer : NSObject
    {
    
    
    }
    
    
    
    
    + (void)Optimize: (PTPDFDoc*)doc settings:  (PTOptimizerSettings*)settings;
    
    @end

    Swift

    class PTOptimizer : NSObject
  • A class that stores downsampling/recompression settings for color and grayscale images.

    See more

    Declaration

    Objective-C

    @interface PTImageSettings : NSObject

    Swift

    class PTImageSettings : NSObject
  • A class that stores image downsampling/recompression settings for monochrome images.

    See more

    Declaration

    Objective-C

    @interface PTMonoImageSettings : NSObject

    Swift

    class PTMonoImageSettings : NSObject
  • A class that stores image text optimization settings.

    See more

    Declaration

    Objective-C

    @interface PTTextSettings : NSObject

    Swift

    class PTTextSettings : NSObject
  • A class that stores settings for the optimizer

    See more

    Declaration

    Objective-C

    @interface PTOptimizerSettings : NSObject

    Swift

    class PTOptimizerSettings : NSObject
  • PDF page labels can be used to describe a page. This is used to allow for non-sequential page numbering or the addition of arbitrary labels for a page (such as the inclusion of Roman numerals at the beginning of a book). PDFNet PageLabel object can be used to specify the numbering style to use (for example, upper- or lower-case Roman, decimal, and so forth), the starting number for the first page, and an arbitrary prefix to be pre-appended to each number (for example, “A-” to generate “A-1”, “A-2”, “A-3”, and so forth.)

    PageLabel corresponds to the PDF Page Label object (Section 8.3.1, ‘Page Labels’ in the PDF Reference Manual.

    Each page in a PDF document is identified by an integer page index that expresses the page’s relative position within the document. In addition, a document may optionally define page labels to identify each page visually on the screen or in print. Page labels and page indices need not coincide: the indices are fixed, running consecutively through the document starting from 1 for the first page, but the labels can be specified in any way that is appropriate for the particular document. For example, if the document begins with 12 pages of front matter numbered in roman numerals and the remainder of the document is numbered in Arabic, the first page would have a page index of 1 and a page label of i, the twelfth page would have index 12 and label xii, and the thirteenth page would have index 13 and label 1.

    For purposes of page labeling, a document can be divided into labeling ranges, each of which is a series of consecutive pages using the same numbering system. Pages within a range are numbered sequentially in ascending order. A page’s label consists of a numeric portion based on its position within its labeling range, optionally preceded by a label prefix denoting the range itself. For example, the pages in an appendix might be labeled with decimal numeric portions prefixed with the string “A-” and the resulting page labels would be “A-1”, “A-2”,

    @note There is no default numbering style; if no ‘S’ (Style) entry is present, page labels consist solely of a label prefix with no numeric portion. For example, if the ‘P’ entry (Prefix) specifies the label prefix “Appendix”, each page is simply labeled “Appendix” with no page number. If the ‘P’ entry is also missing or empty, the page label is an empty string.

    Sample code (See PableLabelsTest sample project for examples):

     // Create a page labeling scheme that starts with the first page in
     // the document (page 1) and is using uppercase roman numbering
     // style.
     doc.SetPageLabel(1, PageLabel::Create(doc, PageLabel::e_roman_uppercase, "My Prefix ", 1));
    
     // Create a page labeling scheme that starts with the fourth page in
     // the document and is using decimal Arabic numbering style.
     // Also the numeric portion of the first label should start with number
     // 4 (otherwise the first label would be "My Prefix 1").
     PageLabel L2 = PageLabel::Create(doc, PageLabel::e_decimal, "My Prefix ", 4);
     doc.SetPageLabel(4, L2);
    
     // Create a page labeling scheme that starts with the seventh page in
     // the document and is using alphabetic numbering style. The numeric
     // portion of the first label should start with number 1.
     PageLabel L3 = PageLabel::Create(doc, PageLabel::e_alphabetic_uppercase, "My Prefix ", 1);
     doc.SetPageLabel(7, L3);
    
     // Read page labels from an existing PDF document.
     PageLabel label;
     for (int i=1; i<=doc.GetPageCount(); ++i) {
     label = doc.GetPageLabel(i);
     if (label.IsValid()) {
       UString title = label.GetLabelTitle(i);
     }
    
    
    See more

    Declaration

    Objective-C

    @interface PTPageLabel : NSObject

    Swift

    class PTPageLabel : NSObject
  • PageSet is a container of page numbers ordered following a linear sequence. The page numbers are integers and must be greater than zero. Duplicates are allowed.

    (NOTE: This is not a mathematical set)

    See more

    Declaration

    Objective-C

    @interface PTPageSet : NSObject

    Swift

    class PTPageSet : NSObject
  • PDFDocInfo is a high-level utility class that can be used to read and modify document’s metadata.

    See more

    Declaration

    Objective-C

    @interface PTPDFDocInfo : NSObject

    Swift

    class PTPDFDocInfo : NSObject
  • PDFDocViewPrefs is a high-level utility class that can be used to control the way the document is to be presented on the screen or in print.

    PDFDocViewPrefs class corresponds to PageMode, PageLayout, and ViewerPreferences entries in the document’s catalog. For more details please refer to section 8.1 ‘Viewer Preferences’ in PDF Reference Manual.

    See more

    Declaration

    Objective-C

    @interface PTPDFDocViewPrefs : NSObject

    Swift

    class PTPDFDocViewPrefs : NSObject
  • This class is used to store separations in PDFRasterize and PDFDraw

    See more

    Declaration

    Objective-C

    @interface PTSeparation : NSObject

    Swift

    class PTSeparation : NSObject
  • PDFRasterizer is a low-level PDF rasterizer.

    The main purpose of this class is to convert PDF pages to raster images (or bitmaps).

    Note

    PDFRasterizer is a relatively low-level class. If you need to convert PDF page to an image format or a Bitmap, consider using PDF::PDFDraw. Similarly, if you are building an interactive PDF viewing application you may want to use PDF::PDFView instead.
    See more

    Declaration

    Objective-C

    @interface PTPDFRasterizer : NSObject

    Swift

    class PTPDFRasterizer : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTViewerOptimizedOptions : NSObject
    {
    
    
    }
    
    
    
    
    - (void)SetThumbnailRenderingThreshold: (unsigned int)threshold;
    - (void)SetMinimumInitialThumbnails: (unsigned int)initial_thumbs;
    - (void)SetThumbnailSize: (unsigned int)size;
    - (void)SetOverprint: (PTOverprintPreviewMode)mode;
    - (instancetype)init;
    @end

    Swift

    class PTViewerOptimizedOptions : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTMergeXFDFOptions : NSObject
    {
    
    
    }
    
    
    
    
    - (BOOL)GetForce;
    - (PTMergeXFDFOptions*)SetForce: (BOOL)value;
    - (instancetype)init;
    @end

    Swift

    class PTMergeXFDFOptions : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTTextDiffOptions : NSObject
    {
    
    
    }
    
    
    
    
    - (PTColorPt*)GetColorA;
    - (PTTextDiffOptions*)SetColorA: (PTColorPt*)color;
    - (double)GetOpacityA;
    - (PTTextDiffOptions*)SetOpacityA: (double)opacity;
    - (PTColorPt*)GetColorB;
    - (PTTextDiffOptions*)SetColorB: (PTColorPt*)color;
    - (double)GetOpacityB;
    - (PTTextDiffOptions*)SetOpacityB: (double)opacity;
    - (PTColorPt*)GetExtraMoveColor;
    - (PTTextDiffOptions*)SetExtraMoveColor: (PTColorPt*)color;
    - (double)GetExtraMoveOpacity;
    - (PTTextDiffOptions*)SetExtraMoveOpacity: (double)opacity;
    - (BOOL)GetCompareUsingZOrder;
    - (PTTextDiffOptions*)SetCompareUsingZOrder: (BOOL)value;
    - (BOOL)GetExtraMoveHighlight;
    - (PTTextDiffOptions*)SetExtraMoveHighlight: (BOOL)value;
    - (BOOL)GetShowPlaceholders;
    - (PTTextDiffOptions*)SetShowPlaceholders: (BOOL)value;
    - (BOOL)GetCompareStyles;
    - (PTTextDiffOptions*)SetCompareStyles: (BOOL)value;
    - (PTTextDiffOptions*)AddIgnoreZonesForPage: (PTPDFRectCollection*)regions page_num:  (int)page_num;
    - (instancetype)init;
    @end

    Swift

    class PTTextDiffOptions : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTBitmapInfo : NSObject
    {
    
    
    }
    
    
    
    
    - (void)setWidth: (int)value;
    - (int)getWidth;
    - (void)setHeight: (int)value;
    - (int)getHeight;
    - (void)setStride: (int)value;
    - (int)getStride;
    - (void)setDpi: (double)value;
    - (double)getDpi;
    - (NSData*)GetBuffer;
    - (instancetype)initWithW: (int)w h:  (int)h s:  (int)s d:  (double)d b:  (NSString *)b;
    @end

    Swift

    class PTBitmapInfo : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTConversionOptions : NSObject
    {
    
    
    }
    
    
    
    
    - (NSString *)GetFileExtension;
    - (PTConversionOptions*)SetFileExtension: (NSString *)value;
    - (BOOL)GetEnableExternalMediaDownloads;
    - (PTConversionOptions*)SetEnableExternalMediaDownloads: (BOOL)value;
    - (instancetype)init;- (instancetype)initWithValue: (NSString *)value;
    @end

    Swift

    class PTConversionOptions : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTOfficeToPDFOptions : PTConversionOptions
    
    
    
    
    - (BOOL)GetApplyPageBreaksToSheet;
    - (PTOfficeToPDFOptions*)SetApplyPageBreaksToSheet: (BOOL)value;
    - (BOOL)GetDisplayChangeTracking;
    - (PTOfficeToPDFOptions*)SetDisplayChangeTracking: (BOOL)value;
    - (BOOL)GetDisplayHiddenText;
    - (PTOfficeToPDFOptions*)SetDisplayHiddenText: (BOOL)value;
    - (double)GetExcelDefaultCellBorderWidth;
    - (PTOfficeToPDFOptions*)SetExcelDefaultCellBorderWidth: (double)value;
    - (unsigned int)GetExcelMaxAllowedCellCount;
    - (PTOfficeToPDFOptions*)SetExcelMaxAllowedCellCount: (unsigned int)value;
    - (BOOL)GetHideTotalNumberOfPages;
    - (PTOfficeToPDFOptions*)SetHideTotalNumberOfPages: (BOOL)value;
    - (NSString *)GetLayoutResourcesPluginPath;
    - (PTOfficeToPDFOptions*)SetLayoutResourcesPluginPath: (NSString *)value;
    - (NSString *)GetLocale;
    - (PTOfficeToPDFOptions*)SetLocale: (NSString *)value;
    - (NSString *)GetPassword;
    - (PTOfficeToPDFOptions*)SetPassword: (NSString *)value;
    - (NSString *)GetResourceDocPath;
    - (PTOfficeToPDFOptions*)SetResourceDocPath: (NSString *)value;
    - (NSString *)GetSmartSubstitutionPluginPath;
    - (PTOfficeToPDFOptions*)SetSmartSubstitutionPluginPath: (NSString *)value;
    - (NSString *)GetTemplateLeftDelimiter;
    - (PTOfficeToPDFOptions*)SetTemplateLeftDelimiter: (NSString *)value;
    - (NSString *)GetTemplateParamsJson;
    - (PTOfficeToPDFOptions*)SetTemplateParamsJson: (NSString *)value;
    - (NSString *)GetTemplateRightDelimiter;
    - (PTOfficeToPDFOptions*)SetTemplateRightDelimiter: (NSString *)value;
    - (BOOL)GetTemplateStrictMode;
    - (PTOfficeToPDFOptions*)SetTemplateStrictMode: (BOOL)value;
    - (BOOL)GetUpdateTableOfContents;
    - (PTOfficeToPDFOptions*)SetUpdateTableOfContents: (BOOL)value;
    - (instancetype)init;
    @end

    Swift

    class PTOfficeToPDFOptions : PTConversionOptions
  • The class Reflow. Reflow annotations between PDF and HTML

    DocumentConversion instances are created through methods belonging to the Convert class. See Convert.CreateReflow for an example.

    See more

    Declaration

    Objective-C

    @interface PTReflow : NSObject

    Swift

    class PTReflow : NSObject
  • The class TemplateDocument. Encapsulates a template document that can merged with data to generate any number of PDFs.

    TemplateDocument instances are created through the Convert class. See Convert.CreateOfficeTemplate.

    See more

    Declaration

    Objective-C

    @interface PTTemplateDocument : NSObject

    Swift

    class PTTemplateDocument : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTConversionMonitor : NSObject
    {
    
    
    }
    
    
    
    
    - (BOOL)Next;
    - (BOOL)Ready;
    - (unsigned int)Progress;
    - (PTFilter*)Filter;
    
    - (instancetype)init;
    @end

    Swift

    class PTConversionMonitor : NSObject
  • A class containing OCR options common to the ToHtml, ToWord, ToExcel, ToPowerPoint functions

    See more

    Declaration

    Objective-C

    @interface PTOutputOptionsOCR : NSObject

    Swift

    class PTOutputOptionsOCR : NSObject
  • A class containing options common to ToWord functions

    See more

    Declaration

    Objective-C

    @interface PTWordOutputOptions : NSObject

    Swift

    class PTWordOutputOptions : NSObject
  • A class containing options common to ToExcel functions

    See more

    Declaration

    Objective-C

    @interface PTExcelOutputOptions : NSObject

    Swift

    class PTExcelOutputOptions : NSObject
  • A class containing options common to ToPowerPoint functions

    See more

    Declaration

    Objective-C

    @interface PTPowerPointOutputOptions : NSObject

    Swift

    class PTPowerPointOutputOptions : NSObject
  • The class DataExtractionModule. static interface to Apryse SDKs data extraction functionality

    See more

    Declaration

    Objective-C

    @interface PTDataExtractionModule : NSObject

    Swift

    class PTDataExtractionModule : NSObject
  • PDFView is a utility class that can be used for interactive rendering of PDF documents.

    In .NET environment PDFView is derived from System.Windows.Forms.Control and it can be used like a regular form (see PDFViewForm.cs in PDFView sample for C# for a concrete example).

    PDFView implements some essential features such as double-buffering, multi-threaded rendering, scrolling, zooming, and page navigation that are essential in interactive rendering applications (e.g. in client PDF viewing and editing applications).

    PDFView defines several coordinate spaces and it is important to understand their differences:

    • Page Space refers to the space in which a PDF page is defined. It is determined by a page itself and the origin is at the lower-left corner of the page. Note that Page Space is independent of how a page is viewed in PDFView and each page has its own Page space.

    • Canvas Space refers to the tightest axis-aligned bounding box of all the pages given the current page presentation mode in PDFView. For example, if the page presentation mode is e_single_continuous, all the pages are arranged vertically with one page in each row, and therefore the Canvas Space is rectangle with possibly large height value. For this reason, Canvas Space is also, like Page Space, independent of the zoom factor. Also note that since PDFView adds gaps between adjacent pages, the Canvas Space is larger than the space occupied by all the pages. The origin of the Canvas Space is located at the upper-left corner.

    • Screen Space (or Client Space) is the space occupied by PDFView and its origin is at the upper-left corner. Note that the virtual size of this space can extend beyond the visible region.

    • Scrollable Space is the virtual space within which PDFView can scroll. It is determined by the Canvas Space and the current zoom factor. Roughly speaking, the dimensions of the Scrollable Space is the dimensions of the Canvas Space timed by the zoom. Therefore, a large zoom factor will result in a larger Scrollable region given the same Canvas region. For this reason, Scrollable Space might also be referred to as Zoomed Canvas Space. Note that since PDFView adds gaps between pages in Canvas Space and these gaps are not scaled when rendered, the scrollable range is not exactly what the zoom factor times the Canvas range. For functions such as SetHScrollPos(), SetVScrollPos(), GetCanvasHeight(), and GetCanvasWidth(), it is the Scrollable Space that is involved.

    Note

    PDFView is available on all platforms supported by PDFNet.

    See more

    Declaration

    Objective-C

    @interface PTPDFView : NSObject

    Swift

    class PTPDFView : NSObject
  • Stamper is a utility class that can be used to stamp PDF pages with text, images, or vector art (including another PDF page) in only a few lines of code.

    Although Stamper is very simple to use compared to ElementBuilder/ElementWriter it is not as powerful or flexible. In case you need full control over PDF creation use ElementBuilder/ElementWriter to add new content to existing PDF pages as shown in the ElementBuilder sample project.

    See more

    Declaration

    Objective-C

    @interface PTStamper : NSObject

    Swift

    class PTStamper : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTTextExtractorCharRange : NSObject
    {
    
    
    }
    
    
    
    
    - (void)setIndex: (int)value;
    - (int)getIndex;
    - (void)setLength: (int)value;
    - (int)getLength;
    - (instancetype)init;
    @end

    Swift

    class PTTextExtractorCharRange : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTTextExtractor : NSObject
    {
    
    
    }
    
    
    
    
    - (void)Begin: (PTPage*)page clip_ptr:  (PTPDFRect*)clip_ptr flags:  (unsigned int)flags;
    - (void)SetOCGContext: (PTContext*)ctx;
    - (int)GetWordCount;
    - (void)SetRightToLeftLanguage: (BOOL)rtl;
    - (BOOL)GetRightToLeftLanguage;
    - (NSString *)GetAsText: (BOOL)dehyphen;
    - (NSString *)GetTextUnderAnnot: (PTAnnot*)annot;
    - (NSString *)GetAsXML: (unsigned int)xml_output_flags;
    - (PTHighlights*)GetHighlights: (NSArray<PTTextExtractorCharRange *> *)char_ranges;
    - (int)GetNumLines;
    - (PTTextExtractorLine*)GetFirstLine;
    
    - (instancetype)init;
    @end

    Swift

    class PTTextExtractor : NSObject
  • A class representing predominant text style associated with a given Line, a Word, or a Glyph. The class includes information about the font, font size, font styles, text color, etc.

    See more

    Declaration

    Objective-C

    @interface PTTextExtractorStyle : NSObject

    Swift

    class PTTextExtractorStyle : NSObject
  • TextExtractor::Word object represents a word on a PDF page. Each word contains a sequence of characters in one or more styles (see TextExtractor::Style).

    See more

    Declaration

    Objective-C

    @interface PTWord : NSObject

    Swift

    class PTWord : NSObject
  • TextExtractor::Line object represents a line of text on a PDF page. Each line consists of a sequence of words, and each words in one or more styles.

    See more

    Declaration

    Objective-C

    @interface PTTextExtractorLine : NSObject

    Swift

    class PTTextExtractorLine : NSObject
  • The class WebFontDownloader. static interface to control the behaviour of PDFNet web font downloading

    See more

    Declaration

    Objective-C

    @interface PTWebFontDownloader : NSObject

    Swift

    class PTWebFontDownloader : NSObject
  • The class PDFDocGenerator. A collection of static methods to create blank documents

    No notes :(

    See more

    Declaration

    Objective-C

    @interface PTPDFDocGenerator : NSObject

    Swift

    class PTPDFDocGenerator : NSObject
  • ReflowProcessor is a processor that manages the requests of converting PDF page documents to reflow documents as HTML files. The output reflowable HTML file is identified by the requested page itself. For each PDF document that at least one of its page is requested for converting to reflow, a folder is created in cache directory. The folder name will be set to a unique ID of the PDF document (obtained from PDFUtil::GetUniqueIdString). Also, the output HTML file is obtained by the page object number. For example, the output HTML path of a PDF page with document ID of 2740180447,229945,WT1NOmJhyyH9xNqwbEbbOg== and object number of 123 will be ../trn_reflowcache/2740180447,229945,WT1NOmJhyyH9xNqwbEbbOg==/123.html

    The cache is placed in the sub-directory ‘trn_reflowcache’ of the PDFNet Resources folder, which can be set by calling PDFNet::SetPersistentCachePath. In the case the PersistentCachePath is not set the HTML files will be stored in the system temp path (PDFNet::GetSystemTempPath()). The cache will be used by any PDFNet process that uses the resource path. If more than one PDFNet process is running concurrently, the first process to acquire a lock on the cache will use it. Subsequent processes will not read or modify the cache.

    See more

    Declaration

    Objective-C

    @interface PTReflowProcessor : NSObject

    Swift

    class PTReflowProcessor : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTRedactor : NSObject
    {
    
    
    }
    
    
    
    
    + (void)Redact: (PTPDFDoc*)doc red_arr:  (PTVectorRedaction*)red_arr app:  (PTAppearance*)app ext_neg_mode:  (BOOL)ext_neg_mode page_coord_sys:  (BOOL)page_coord_sys;
    - (instancetype)init;
    @end

    Swift

    class PTRedactor : NSObject
  • A redaction annotation (PDF 1.7) identifies content that is intended to be removed from the document. The intent of redaction annotations is to enable the following: a)Content identification. A user applies redact annotations that specify the pieces or regions of content that should be removed. Up until the next step is performed, the user can see, move and redefine these annotations. b)Content removal. The user instructs the viewer application to apply the redact annotations, after which the content in the area specified by the redact annotations is removed. In the removed content’s place, some marking appears to indicate the area has been redacted. Also, the redact annotations are removed from the PDF document. RedactionAnnot annotations provide a mechanism for the first step in the redaction process (content identification). This allows content to be marked for redaction in a non-destructive way, thus enabling a review process for evaluating potential redactions prior to removing the specified content. RedactionAnnot annotations shall provide enough information to be used in the second phase of the redaction process (content removal). This phase is application-specific and requires the conforming reader to remove all content identified by the redaction annotation, as well as the annotation itself. Conforming readers that support redaction annotations shall provide a mechanism for applying content removal, and they shall remove all traces of the specified content. If a portion of an image is contained in a redaction region, that portion of the image data shall be destroyed; clipping or image masks shall not be used to hide that data. Such conforming readers shall also be diligent in their consideration of all content that can exist in a PDF document, including XML Forms Architecture (XFA) content and Extensible Metadata Platform (XMP) content.

    See more

    Declaration

    Objective-C

    @interface PTRedaction : NSObject

    Swift

    class PTRedaction : NSObject
  • Class used to customize the appearance of the optional redaction overlay.

    See more

    Declaration

    Objective-C

    @interface PTAppearance : NSObject

    Swift

    class PTAppearance : NSObject
  • The PTPrint class handles preparing a PTPDFDoc for printing.

    See more

    Declaration

    Objective-C

    
    @interface PTPrint : NSObject

    Swift

    class PTPrint : NSObject
  • The PTAnalyticsManager class dispatches analytics events to registered handlers conforming to the PTAnalyticsHandler protocol. Each event sent to an analytics manager is dispatched to all registered handlers capable of handling the event.

    See more

    Declaration

    Objective-C

    
    @interface PTAnalyticsManager : NSObject <PTAnalyticsHandler>

    Swift

    class PTAnalyticsManager : NSObject, PTAnalyticsHandler
  • The PTAnnotStyleToolbar class displays a PTAnnotationStylePresetsGroup for controlling the selected annotation style preset. The selected annotation style preset can be edited by tapping on it.

    See more
  • A view that displays the appearance of a PDF annotation.

    See more

    Declaration

    Objective-C

    
    @interface PTAnnotationAppearanceView : UIView

    Swift

    class PTAnnotationAppearanceView : UIView
  • A representation of a PDF annotation.

    The class is parameterized by the annotation and properties types which must be subclasses of the PTAnnot and PTPDFAnnotationProperties classes, respectively.

    See more

    Declaration

    Objective-C

    
    @interface PTAnnotationAppearanceViewModel<
        AnnotationType : PTAnnot *, PropertiesType : PTPDFAnnotationProperties *>
        : NSObject

    Swift

    class PTAnnotationAppearanceViewModel<AnnotationType, PropertiesType> : NSObject where AnnotationType : PTAnnot, PropertiesType : PTPDFAnnotationProperties
  • Instances of the PTAnnotationManager class manage the annotations in a PTPDFViewCtrl and maintain annotation model objects that correspond to the PDF annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTAnnotationManager : NSObject <PTOverridable>

    Swift

    class PTAnnotationManager : NSObject, PTOverridable
  • An abstract base class for annotation refresh appearance handlers that generate a custom PDF appearance for annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTAnnotationRefreshCustomAppearanceHandler
        : NSObject <PTAnnotationRefreshAppearanceHandler>

    Swift

    class PTAnnotationRefreshCustomAppearanceHandler : NSObject, PTAnnotationRefreshAppearanceHandler
  • A view that accepts user text input.

    See more

    Declaration

    Objective-C

    
    @interface PTAnnotationReplyInputView : UIView <PTOverridable>

    Swift

    class PTAnnotationReplyInputView : UIView, PTOverridable
  • A view controller that receives and manages user text input.

    See more

    Declaration

    Objective-C

    
    @interface PTAnnotationReplyInputViewController
        : UIViewController <PTOverridable>

    Swift

    class PTAnnotationReplyInputViewController : UIViewController, PTOverridable
  • Instances of the PTAnnotationReplyViewController class display a list of replies made to an annotation.

    See more

    Declaration

    Objective-C

    
    @interface PTAnnotationReplyViewController : UIViewController <PTOverridable>

    Swift

    class PTAnnotationReplyViewController : UIViewController, PTOverridable
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTAnnotationSortMode : NSObject
    
    - (instancetype)init NS_DESIGNATED_INITIALIZER;
    - (instancetype)initWithTitle:(nullable NSString *)title sortDescriptors:(nullable NSArray<NSSortDescriptor *> *)sortDescriptors identifier:(nullable NSString *)identifier ascending:(BOOL)ascending NS_DESIGNATED_INITIALIZER;
    
    - (instancetype)initWithTitle:(nullable NSString *)title identifier:(nullable NSString *)identifier;
    
    + (instancetype)sortModeWithTitle:(nullable NSString *)title sortDescriptors:(nullable NSArray<NSSortDescriptor *> *)sortDescriptors identifier:(nullable NSString *)identifier ascending:(BOOL)ascending;
    + (instancetype)sortModeWithTitle:(nullable NSString *)title identifier:(nullable NSString *)identifier;
    
    @property (nonatomic, copy, nullable) NSString *title;
    
    @property (nonatomic, copy, nullable) NSArray<NSSortDescriptor *> *sortDescriptors;
    
    @property (nonatomic, copy, nullable) NSString *sectionNameKeyPath;
    
    @property (nonatomic, assign, getter=isAscending) BOOL ascending;
    
    @property (nonatomic, copy, nullable) NSString *identifier;
    
    - (BOOL)isEqualToSortMode:(PTAnnotationSortMode *)sortMode;
    
    @end

    Swift

    class PTAnnotationSortMode : NSObject
  • Manages the saved annotation style presets

    See more

    Declaration

    Objective-C

    
    @interface PTAnnotationStyleManager : NSObject <PTOverridable>

    Swift

    class PTAnnotationStyleManager : NSObject, PTOverridable
  • A group of PTAnnotStyle instances for the same annotation type with one style denoted as the selected style.

    See more

    Declaration

    Objective-C

    
    @interface PTAnnotationStylePresetsGroup : NSObject <NSCopying, NSCoding>

    Swift

    class PTAnnotationStylePresetsGroup : NSObject, NSCopying, NSCoding
  • The PTAnnotationStylePresetsView class displays a set of buttons for the styles in a PTAnnotationStylePresetsGroup instance and allows the user to change the selected style.

    See more

    Declaration

    Objective-C

    
    @interface PTAnnotationStylePresetsView : UIView

    Swift

    class PTAnnotationStylePresetsView : UIView
  • A table view cell class capable of displaying PDF annotation info.

    See more

    Declaration

    Objective-C

    
    @interface PTAnnotationViewCell : UITableViewCell

    Swift

    class PTAnnotationViewCell : UITableViewCell
  • The configuration settings used by a PTAnnotationViewController.

    See more

    Declaration

    Objective-C

    
    @interface PTAnnotationViewControllerConfiguration : NSObject <NSCopying>

    Swift

    class PTAnnotationViewControllerConfiguration : NSObject, NSCopying
  • Creates area annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTAreaCreate : PTPolygonCreate

    Swift

    class PTAreaCreate : PTPolygonCreate
  • An object that contains options for arrow annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTArrowAnnotationOptions : PTAnnotationOptions

    Swift

    class PTArrowAnnotationOptions : PTAnnotationOptions
  • The PTBaseCollaborationManager is an abstract base class that is responsible for sending local annotation changes to a remote server, and for receiving remote changes from the server.

    See more

    Declaration

    Objective-C

    
    @interface PTBaseCollaborationManager : NSObject

    Swift

    class PTBaseCollaborationManager : NSObject
  • The object that is responsible for sending local changes to the remote server, and for receiving remote changes from the server.

    The PTBasicXFDFCollaborationManager class operates by merging XFDF strings and/or XFDF command strings into the PTPDFDoc of the associated PTPDFViewCtrl instance.

    See more

    Declaration

    Objective-C

    
    @interface PTBasicXFDFCollaborationManager : PTBaseCollaborationManager

    Swift

    class PTBasicXFDFCollaborationManager : PTBaseCollaborationManager
  • An object that manages the user bookmarks inside PDF documents. User bookmarks can be created with the PTUserBookmark class and stored inside a PTPDFDoc with a PTBookmarkManager instance.

    See more

    Declaration

    Objective-C

    
    @interface PTBookmarkManager : NSObject

    Swift

    class PTBookmarkManager : NSObject
  • A table view cell class capable of displaying user bookmark info.

    See more

    Declaration

    Objective-C

    
    @interface PTBookmarkViewCell : UITableViewCell <UITextFieldDelegate>

    Swift

    class PTBookmarkViewCell : UITableViewCell, UITextFieldDelegate
  • The PTCalloutEditTool is used to edit free text callout (PTExtendedAnnotTypeCallout) annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTCalloutEditTool : PTAnnotEditTool

    Swift

    class PTCalloutEditTool : PTAnnotEditTool
  • This class is a subclass of PKCanvasView which is used by the PTPencilDrawingCreateTool.

    See more

    Declaration

    Objective-C

    
    @interface PTCanvasView : PKCanvasView

    Swift

    class PTCanvasView : PKCanvasView
  • Creates check box form annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTCheckBoxCreate : PTRectangleCreate

    Swift

    class PTCheckBoxCreate : PTRectangleCreate
  • Creates check mark stamp annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTCheckMarkStampCreate : PTRubberStampCreate

    Swift

    class PTCheckMarkStampCreate : PTRubberStampCreate
  • A class that represents a PTAnnot for collaboration purposes. It is typically passed between an instance of a PTCollaborationManager and an object that conforms to the PTCollaborationServerCommunication protocol as a means of describing annotations that have been created, modified and deleted.

    See more

    Declaration

    Objective-C

    
    @interface PTCollaborationAnnotation : NSObject
  • A subclass of the PTDocumentController that will synchronize annotations between the device and central server.

    The implementation is minimal:

    1. It connects the PTCollaborationDocumentController.toolManager.collaborationManager and the PTCollaborationServerCommunication service.

    2. It does not allow the user to select annotations where the author of the annotation does not match the user that is logged in to the PTCollaborationServerCommunication service.

    See more

    Declaration

    Objective-C

    
    @interface PTCollaborationDocumentController : PTDocumentController

    Swift

    class PTCollaborationDocumentController : PTDocumentController
  • A subclass of the PTDocumentViewController that will synchronize annotations between the device and central server.

    The implementation is minimal:

    1. It connects the PTCollaborationDocumentViewController.toolManager.collaborationManager and the PTCollaborationServerCommunication service.

    2. It does not allow the user to select annotations where the author of the annotation does not match the user that is logged in to the PTCollaborationServerCommunication service.

    See more

    Declaration

    Objective-C

    
    @interface PTCollaborationDocumentViewController : PTDocumentViewController

    Swift

    class PTCollaborationDocumentViewController : PTDocumentViewController
  • The object that is responsible for sending local changes to the remote server, and for receiving remote changes from the server.

    See more

    Declaration

    Objective-C

    
    @interface PTCollaborationManager : PTBaseCollaborationManager

    Swift

    class PTCollaborationManager : PTBaseCollaborationManager
  • Creates combo box form annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTComboBoxCreate : PTRectangleCreate

    Swift

    class PTComboBoxCreate : PTRectangleCreate
  • Handles the creation and editing of count annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTCountCreate
        : PTStickyNoteCreate <PTSavedCountGroupsViewControllerDelegate>
  • The PTCountPopupViewController displays the textField and color picker for users to edit the group name and color of count annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTCountPopupViewController
        : UIViewController <PTColorPickerViewControllerDelegate>

    Swift

    class PTCountPopupViewController : UIViewController, PTColorPickerViewControllerDelegate
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTCreateRubberStampViewController: UIViewController <PTOverridable>
    
    /**
     * The rubber stamp manager used by the `PTRubberStampViewController`
     */
    @property (nonatomic, readonly, strong) PTRubberStampManager* rubberStampManager;
    /**
     * Notifies the delegate when the user wishes to save the rubber stamp
     */
    @property (nonatomic, weak, nullable) id<PTCreateRubberStampViewControllerDelegate> delegate;
    
    @end

    Swift

    class PTCreateRubberStampViewController : UIViewController, PTOverridable
  • Creates cross mark stamp annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTCrossMarkStampCreate : PTRubberStampCreate

    Swift

    class PTCrossMarkStampCreate : PTRubberStampCreate
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTCustomStampOption : NSObject <NSCoding>
    
    /**
     * The main text of the stamp annotation.
     */
    @property (nonatomic, strong) NSString *text;
    
    /**
     * The secondary text of the stamp annotation.
     */
    @property (nonatomic, strong) NSString *secondText;
    
    /**
     * The starting colour of the background gradient of the stamp annotation.
     */
    @property (nonatomic, strong) UIColor *bgColorStart;
    
    /**
     * The end colour of the background gradient of the stamp annotation.
     */
    @property (nonatomic, strong) UIColor *bgColorEnd;
    
    /**
     * The text color of the stamp annotation.
     */
    @property (nonatomic, strong) UIColor *textColor;
    
    /**
     * The border colour of the stamp annotation.
     */
    @property (nonatomic, strong) UIColor *borderColor;
    
    /**
     * The fill opacity of the stamp annotation.
     */
    @property (nonatomic) CGFloat fillOpacity;
    
    /**
     * Whether the stamp annotation is pointing left.
     */
    @property (nonatomic) BOOL pointingLeft;
    
    /**
     * Whether the stamp annotation is pointing right.
     */
    @property (nonatomic) BOOL pointingRight;
    
    /**
     * Returns an initialized `PTCustomStampOption`.
     *
     * @param text            The text to be displayed in the rubber stamp
     * @param secondText      The text to be displayed below first text
     * @param bgColorStart    The start background color in gradient background
     * @param bgColorEnd      The end background color in gradient background
     * @param textColor       The text color
     * @param borderColor     The border color
     * @param fillOpacity     The fill opacity
     * @param pointingLeft    True if pointing left
     * @param pointingRight   True if pointing right
     *
     * @return an initialized `PTCustomStampOption`.
     */
    -(instancetype)initWithText:(NSString *)text secondText:(nullable NSString*)secondText bgColorStart:(UIColor*)bgColorStart bgColorEnd:(UIColor*)bgColorEnd textColor:(UIColor*)textColor borderColor:(UIColor*)borderColor fillOpacity:(CGFloat)fillOpacity pointingLeft:(BOOL)pointingLeft pointingRight:(BOOL)pointingRight NS_DESIGNATED_INITIALIZER;
    
    /**
     * Returns an initialized `PTCustomStampOption`.
     *
     * @param text            The text to be displayed in the rubber stamp
     * @param secondText      The text to be displayed below first text
     * @param colourModel   The colour used in the stamp
     * @param fillOpacity     The fill opacity
     * @param pointingLeft    True if pointing left
     * @param pointingRight   True if pointing right
     *
     * @return an initialized `PTCustomStampOption`.
     */
    -(instancetype)initWithText:(NSString *)text secondText:(nullable NSString*)secondText colourModel: (PTRubberStampColorModel*)colourModel fillOpacity:(CGFloat)fillOpacity pointingLeft:(BOOL)pointingLeft pointingRight:(BOOL)pointingRight;
    /**
     * Returns an initialized `PTCustomStampOption`.
     *
     * @param stampObj The stamp SDF object with which to configure the custom stamp.
     *
     * @return an initialized `PTCustomStampOption`.
     */
    -(instancetype)initWithFormXObject:(PTObj*)stampObj NS_DESIGNATED_INITIALIZER;
    
    /**
     * Method to configure a rubber stamp's appearance object from a `PTCustomStampOption`.
    */
    - (void)configureStampObject:(PTObj *)stampObj;
    
    
    -(instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
    
    
    -(instancetype)init NS_UNAVAILABLE;
    
    @end

    Swift

    class PTCustomStampOption : NSObject, NSCoding
  • The PTCustomTableViewController displays a selection of buttons and controls from an array of UIBarButtonItems.

    See more

    Declaration

    Objective-C

    
    @interface PTCustomTableViewController : UITableViewController <PTOverridable>

    Swift

    class PTCustomTableViewController : UITableViewController, PTOverridable
  • An object that contains options for date text annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTDateTextAnnotationOptions : PTAnnotationOptions

    Swift

    class PTDateTextAnnotationOptions : PTAnnotationOptions
  • Creates date text annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTDateTextCreate : PTFreeTextCreate

    Swift

    class PTDateTextCreate : PTFreeTextCreate
  • A generic refresh-appearance handler for annotations.

    This handler calls -[PTAnnot RefreshAppearance] (or -[PTAnnot RefreshAppearanceWithOptions:]) for all annotation types.

    See more

    Declaration

    Objective-C

    
    @interface PTDefaultAnnotationRefreshAppearanceHandler
        : NSObject <PTAnnotationRefreshAppearanceHandler>

    Swift

    class PTDefaultAnnotationRefreshAppearanceHandler : NSObject, PTAnnotationRefreshAppearanceHandler
  • The PTDiffViewController class provides functionality to produce a document representing the visual difference between two documents. Instances of this class must be embedded inside a UINavigationController.

    See more

    Declaration

    Objective-C

    
    @interface PTDiffViewController : UIViewController
  • An object that manages digital signature validation.

    See more

    Declaration

    Objective-C

    
    @interface PTDigitalSignaturesManager : NSObject <PTOverridable>

    Swift

    class PTDigitalSignaturesManager : NSObject, PTOverridable
  • The PTDigitalSignaturesViewController displays a list of digital signatures in a document being viewed by a PTPDFViewCtrl.

    See more

    Declaration

    Objective-C

    
    @interface PTDigitalSignaturesViewController
        : UITableViewController <PTOverridable>

    Swift

    class PTDigitalSignaturesViewController : UITableViewController, PTOverridable
  • A UINavigationItem subclass that allows setting different sets of bar button items for different user interface size classes.

    See more

    Declaration

    Objective-C

    
    @interface PTDocumentNavigationItem : UINavigationItem

    Swift

    class PTDocumentNavigationItem : UINavigationItem
  • Options to be used when opening or accessing a document.

    See more

    Declaration

    Objective-C

    
    @interface PTDocumentOptions : NSObject <NSCopying>

    Swift

    class PTDocumentOptions : NSObject, NSCopying
  • A control used to select a single value from a continuous range of values. This control is similar to UISlider, except that this control can be oriented horizontally and vertically.

    See more

    Declaration

    Objective-C

    
    @interface PTDocumentSlider : UIControl

    Swift

    class PTDocumentSlider : UIControl
  • The PTDocumentSliderViewController class displays a scroll indicator for a PTPDFViewCtrl‘s scroll position. The scroll indicator allows user interaction and is used to change the current page of the associated PTPDFViewCtrl instance.

    This view controller is intended to be placed over the PTPDFViewCtrl instance, covering the entire viewport. Unhandled touches in this view controller are forwarded to the views behind.

    The scroll indicator adapts for the page presentation mode (scrolling direction) of the PTPDFViewCtrl. For non-continuous page presentation modes, the scroll indicator is displayed at the bottom of this view controller and for continuous page presentation modes, the scroll indicator is displayed along the trailing edge of this view controller.

    See more

    Declaration

    Objective-C

    
    @interface PTDocumentSliderViewController : UIViewController

    Swift

    class PTDocumentSliderViewController : UIViewController
  • The PTDocumentTabBar class displays the a set of tabs in a horizontally scrollable layout.

    See more

    Declaration

    Objective-C

    
    @interface PTDocumentTabBar
        : UIView <UICollectionViewDelegateFlowLayout, UICollectionViewDataSource>

    Swift

    class PTDocumentTabBar : UIView, UICollectionViewDelegateFlowLayout, UICollectionViewDataSource
  • A PTDocumentTabItem represents a document in a tabbed user interface, where the document is displayed in a PTDocumentBaseViewController subclass.

    See more

    Declaration

    Objective-C

    
    @interface PTDocumentTabItem : NSObject <NSSecureCoding, NSCopying>

    Swift

    class PTDocumentTabItem : NSObject, NSSecureCoding, NSCopying
  • This class tracks a list of PTDocumentTabItem instances and allows manipulation of the order and selection.

    See more

    Declaration

    Objective-C

    
    @interface PTDocumentTabManager : NSObject

    Swift

    class PTDocumentTabManager : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTDocumentTabTableViewController : UITableViewController <PTOverridable>
    
    @property (nonatomic, strong, nullable) PTDocumentTabManager *tabManager;
    
    @property (nonatomic, weak, nullable) id<PTDocumentTabTableViewControllerDelegate> delegate;
    
    @property (nonatomic, strong) UIBarButtonItem *doneButtonItem;
    
    @property (nonatomic, strong) UIBarButtonItem *closeAllTabsButtonItem;
    
    - (void)closeAllTabs:(id)sender;
    
    @end

    Swift

    class PTDocumentTabTableViewController : UITableViewController, PTOverridable
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTDocumentViewSettings : NSObject <NSCoding, NSCopying>
    
    - (instancetype)init NS_DESIGNATED_INITIALIZER;
    - (instancetype)initWithDocumentViewSettings:(PTDocumentViewSettings *)documentViewSettings NS_DESIGNATED_INITIALIZER;
    - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
    
    @property (nonatomic, assign) TrnPagePresentationMode pagePresentationMode;
    @property (nonatomic, assign, getter=isReflowEnabled) BOOL reflowEnabled;
    
    @property (nonatomic, assign) PTColorPostProcessMode colorPostProcessMode;
    @property (nonatomic, strong, nullable) UIColor *colorPostProcessWhiteColor;
    @property (nonatomic, strong, nullable) UIColor *colorPostProcessBlackColor;
    
    @property (nonatomic, assign, getter=isNightModeEnabled) BOOL nightModeEnabled;
    
    @property (nonatomic, assign, getter=isRightToLeft) BOOL rightToLeft;
    
    @property (nonatomic, assign) PTRotate pageRotation;
    
    @end

    Swift

    class PTDocumentViewSettings : NSObject, NSCoding, NSCopying
  • The PTDocumentViewSettingsController class displays settings to control a PTPDFViewCtrl.

    See more

    Declaration

    Objective-C

    
    @interface PTDocumentViewSettingsController
        : UITableViewController <PTOverridable>

    Swift

    class PTDocumentViewSettingsController : UITableViewController, PTOverridable
  • A model class used to represent the state of a document in a viewer.

    See more

    Declaration

    Objective-C

    
    @interface PTDocumentViewState : NSObject <NSCoding, NSSecureCoding, NSCopying>

    Swift

    class PTDocumentViewState : NSObject, NSCoding, NSSecureCoding, NSCopying
  • Creates dot mark stamp annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTDotStampCreate : PTRubberStampCreate

    Swift

    class PTDotStampCreate : PTRubberStampCreate
  • A view used to indicate that the contents of a table or collection view are empty. Assigning an instance of this class to the backgroundView property of a UITableView or UICollectionView will display the indicator as a non-scrolling subview. Adding an instance of this class as a subview to a table or collection view will make it scroll with the scroll view.

    See more

    Declaration

    Objective-C

    
    @interface PTEmptyTableViewIndicator : UIView

    Swift

    class PTEmptyTableViewIndicator : UIView
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTFeatureGate : NSObject <PTOverridable>
    
    /**
     * The global instance of the shared tools settings manager.
     */
    @property (nonatomic, class, readonly, strong) PTFeatureGate *sharedInstance;
    
    -(BOOL)isAvailable:(NSString*)featureID;
    
    - (void)handleFeature:(NSString *)featureID onController:(UIViewController*)controller;
    
    - (NSString *)proButtonTitleForTitle:(NSString *)title forFeature:(NSString *)featureID;
    
    - (UIImageView *)proImageViewWithTintColor:(nullable UIColor *)tintColor;
    
    - (UIImage *)unavailableIndicatorImage;
    
    - (UIImage *)unavailableIconImage;
    
    - (void)didUpdateAvailability;
    
    @property (nonatomic, weak, nullable) id<PTFeatureGateDelegate> delegate;
    
    @end

    Swift

    class PTFeatureGate : NSObject, PTOverridable
  • Options for file attachment annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTFileAttachmentAnnotationOptions : PTAnnotationOptions

    Swift

    class PTFileAttachmentAnnotationOptions : PTAnnotationOptions
  • Create file attachment (PTFileAttachment) annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTFileAttachmentCreate : PTCreateToolBase

    Swift

    class PTFileAttachmentCreate : PTCreateToolBase
  • The PTFileAttachmentHandler class handles file attachment annotations. It can be used to export file attachment annotations from a document.

    See more

    Declaration

    Objective-C

    
    @interface PTFileAttachmentHandler : NSObject

    Swift

    class PTFileAttachmentHandler : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTFontPickerViewController : UITableViewController
    
    @property (nonatomic, weak) id<PTFontPickerViewControllerDelegate> delegate;
    
    @property (nullable, strong, nonatomic) UIFont *selectedFont;
    
    - (instancetype)initWithFonts:(NSArray<UIFont *> *)fonts;
    
    @end

    Swift

    class PTFontPickerViewController : UITableViewController
  • An object that contains options for FreeText annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTFreeTextAnnotationOptions : PTAnnotationOptions

    Swift

    class PTFreeTextAnnotationOptions : PTAnnotationOptions
  • Properties of a free text annotation.

    See more

    Declaration

    Objective-C

    
    @interface PTFreeTextAnnotationProperties
        : PTMarkupAnnotationProperties <PTRichTextAnnotationProperties>

    Swift

    class PTFreeTextAnnotationProperties : PTMarkupAnnotationProperties, PTRichTextAnnotationProperties
  • A view that displays the appearance of a free text annotation.

    See more

    Declaration

    Objective-C

    
    @interface PTFreeTextAppearanceView
        : PTAnnotationAppearanceView <UITextViewDelegate>

    Swift

    class PTFreeTextAppearanceView : PTAnnotationAppearanceView, UITextViewDelegate
  • A view model representing the appearance of a free text annotation.

    See more
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTVectorLabel: UILabel
    
    @end

    Swift

    class PTVectorLabel : UILabel
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTFreeTextInputAccessoryView : UIToolbar <PTOverridable>
    
    /**
     * Returns a new instance of a `PTFreeTextInputAccessoryView`.
     */
    - (instancetype)initWithToolManager:(PTToolManager *)toolManager textView:(UITextView*)textView NS_DESIGNATED_INITIALIZER;
    
    /**
     * A reference to the tool manager.
     */
    @property (nonatomic, strong, readonly) PTToolManager* toolManager;
    
    /**
     * A reference to the accessory view's associated text view.
     */
    @property (nonatomic, strong, readonly) UITextView* textView;
    
    /**
     * A reference to the accessory view's font picker button item.
     */
    @property (nonatomic, strong, nullable, readonly) UIBarButtonItem *fontPickerButtonItem API_AVAILABLE(ios(13.0));
    
    /**
     * A reference to the accessory view's font size button item.
     */
    @property (nonatomic, strong, nullable, readonly) UIBarButtonItem *fontSizeButtonItem;
    
    /**
     * A reference to the accessory view's font color button item.
     */
    @property (nonatomic, strong, nullable, readonly) UIBarButtonItem *fontColorButtonItem;
    
    /**
     * A reference to the accessory view's font size stepper button item.
     */
    @property (nonatomic, strong, nullable, readonly) UIBarButtonItem *fontSizeStepperButtonItem;
    
    
    - (instancetype)init NS_UNAVAILABLE;
    
    
    - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
    
    
    - (instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE;
    
    @end

    Swift

    class PTFreeTextInputAccessoryView : UIToolbar, PTOverridable
  • A PTFreeTextRefreshAppearanceHandler generates custom PDF appearances for free text annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTFreeTextRefreshAppearanceHandler
        : PTAnnotationRefreshCustomAppearanceHandler

    Swift

    class PTFreeTextRefreshAppearanceHandler : PTAnnotationRefreshCustomAppearanceHandler
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTFreeTextView : UITextView <PTOverridable>
    
    - (instancetype)initWithFrame:(CGRect)frame textContainer:(nullable NSTextContainer *)textContainer NS_UNAVAILABLE;
    
    - (void)setBorderWithColor:(CGColorRef)color withWidth:(double)width;
    
    @property (nonatomic, assign, getter=isRichContentEnabled) BOOL richContentEnabled;
    
    @property (nonatomic, assign, getter=isAlignmentModeEnabled) BOOL alignmentModeEnabled;
    
    @property (nonatomic, assign) double zoom;
    @property (nonatomic, readonly, copy, nullable) NSString *richTextString;
    @property (nonatomic, readonly, copy, nullable) NSString *defaultStyleString;
    @property (nonatomic, assign) NSInteger verticalAlignment;
    
    @end

    Swift

    class PTFreeTextView : UITextView, PTOverridable
  • A grabber view can be used to indicate that an area can be dragged or resized by the user. The handling of gestures and touches is the responsibility of the view containing an instance of the PTGrabberView class.

    See more

    Declaration

    Objective-C

    
    @interface PTGrabberView : UIView

    Swift

    class PTGrabberView : UIView
  • A presentation controller that displays its presented view controller anchored at the bottom of the screen. In its default configuration, the presentation controller allows touches outside the presented view controller to be passed through to the view(s) underneath.

    The height of the presented view controller is determined by its UIViewController.preferredContentSize instance property. If the preferred content size is not set then the presented view controller will extend to the top of the screen, respecting the safe area insets.

    The presented view controller can be dismissed by dragging downwards over its view. Pan gesture recognizers inside the presented view controller are given priority over the drag-to-dismiss gesture.

    See more

    Declaration

    Objective-C

    
    @interface PTHalfModalPresentationController : UIPresentationController

    Swift

    class PTHalfModalPresentationController : UIPresentationController
  • An object that contains options for image stamp annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTImageStampAnnotationOptions : PTAnnotationOptions

    Swift

    class PTImageStampAnnotationOptions : PTAnnotationOptions
  • Create image stamp annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTImageStampCreate : PTCreateToolBase

    Swift

    class PTImageStampCreate : PTCreateToolBase
  • The PTLegacyAnnotationViewController displays a list of all annotations in a document being viewed by a PTPDFViewCtrl The list will contain any comments that have been added to the annotations, and selecting an annotation will scroll the PTPDFViewCtrl to the position of the annotation. See the sample project Complete Reader for example usage.

    See more

    Declaration

    Objective-C

    
    @interface PTLegacyAnnotationViewController
        : UITableViewController <PTOverridable>

    Swift

    class PTLegacyAnnotationViewController : UITableViewController, PTOverridable
  • Creates link annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTLinkCreate : PTCreateToolBase

    Swift

    class PTLinkCreate : PTCreateToolBase
  • The PTLinkPopupViewController displays the textfield for users to edit the link.

    See more

    Declaration

    Objective-C

    
    @interface PTLinkPopupViewController : UIViewController

    Swift

    class PTLinkPopupViewController : UIViewController
  • Creates list box form annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTListBoxCreate : PTRectangleCreate

    Swift

    class PTListBoxCreate : PTRectangleCreate
  • A helper class that outputs messages to the log console.

    See more

    Declaration

    Objective-C

    
    @interface PTLogger : NSObject

    Swift

    class PTLogger : NSObject
  • Properties of a markup annotation.

    See more

    Declaration

    Objective-C

    
    @interface PTMarkupAnnotationProperties : PTPDFAnnotationProperties

    Swift

    class PTMarkupAnnotationProperties : PTPDFAnnotationProperties
  • A PTMeasurementScale is used to describe a measurement’s conversion factors.

    See more

    Declaration

    Objective-C

    
    @interface PTMeasurementScale : NSObject <NSCoding>

    Swift

    class PTMeasurementScale : NSObject, NSCoding
  • The PTMoreItemsViewController displays a selection of buttons and controls used to interact with a PTToolManager and PTPDFViewCtrl beyond what can be shown in a UINavigationBar.

    See more

    Declaration

    Objective-C

    
    @interface PTMoreItemsViewController : UITableViewController <PTOverridable>

    Swift

    class PTMoreItemsViewController : UITableViewController, PTOverridable
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTMultiAnnotStyleViewController : UIViewController <PTOverridable>
    
    - (instancetype)initWithStyles:(NSArray<PTAnnotStyle *> *)styles;
    - (instancetype)initWithToolManager:(nullable PTToolManager *)toolManager styles:(NSArray<PTAnnotStyle *> *)styles NS_DESIGNATED_INITIALIZER;
    
    @property (nonatomic, weak, nullable) id<PTMultiAnnotStyleViewControllerDelegate> delegate;
    
    @property (nonatomic, readonly, strong, nullable) PTToolManager *toolManager;
    
    @property (nonatomic, copy, nullable) NSArray<PTAnnotStyle *> *styles;
    
    @property (nonatomic) NSUInteger selectedStyleIndex;
    @property (nonatomic, strong, nullable) PTAnnotStyle *selectedStyle;
    
    @property (nonatomic, readonly, copy, nullable) NSArray<PTAnnotStyleViewController *> *annotationStyleViewControllers;
    
    @property (nonatomic, readonly, strong, nullable) PTAnnotStyleViewController *selectedAnnotationStyleViewController;
    
    
    - (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil NS_UNAVAILABLE;
    
    - (instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE;
    
    @end

    Swift

    class PTMultiAnnotStyleViewController : UIViewController, PTOverridable
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTNavigationHistoryItem : NSObject
    
    - (instancetype)initFromPageNumber:(PTPDFPageNumber)fromPageNumber toPageNumber:(PTPDFPageNumber)toPageNumber;
    - (instancetype)initFromPageNumber:(PTPDFPageNumber)fromPageNumber toPageNumber:(PTPDFPageNumber)toPageNumber title:(nullable NSString *)title NS_DESIGNATED_INITIALIZER;
    - (instancetype)init NS_UNAVAILABLE;
    
    @property (nonatomic, readonly, assign) PTPDFPageNumber fromPageNumber;
    @property (nonatomic, readonly, assign) PTPDFPageNumber toPageNumber;
    
    @property (nonatomic, readonly, copy, nullable) NSString *title;
    
    @end

    Swift

    class PTNavigationHistoryItem : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTNavigationHistoryManager : NSObject
    
    - (instancetype)initWithPDFViewCtrl:(PTPDFViewCtrl *)pdfViewCtrl;
    - (instancetype)init NS_UNAVAILABLE;
    
    @property (nonatomic, strong) PTPDFViewCtrl *pdfViewCtrl;
    
    @property (nonatomic, strong, nullable) PTPageLabelManager *pageLabelManager;
    
    - (void)registerNavigationFromPageNumber:(int)fromPageNumber toPageNumber:(int)toPageNumber;
    
    @property (nonatomic, readonly, strong) PTNavigationHistoryState *state;
    
    @property (nonatomic, readonly, assign) BOOL canGoBack;
    @property (nonatomic, readonly, assign) BOOL canGoForward;
    
    - (void)goBack:(nullable id)sender;
    - (void)goForward:(nullable id)sender;
    
    - (void)clearNavigationHistory;
    
    @end

    Swift

    class PTNavigationHistoryManager : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTNavigationHistoryState : NSObject
    
    - (instancetype)initWithBackItems:(nullable NSArray<PTNavigationHistoryItem *> *)backItems forwardItems:(nullable NSArray<PTNavigationHistoryItem *> *)forwardItems;
    
    @property (nonatomic, readonly, copy, nullable) NSArray<PTNavigationHistoryItem *> *backItems;
    
    @property (nonatomic, readonly, copy, nullable) NSArray<PTNavigationHistoryItem *> *forwardItems;
    
    @end

    Swift

    class PTNavigationHistoryState : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTNavigationHistoryView : UIView
    
    - (instancetype)initWithNavigationHistoryManager:(PTNavigationHistoryManager *)navigationHistoryManager;
    
    @property (nonatomic, strong, nullable) PTNavigationHistoryManager *navigationHistoryManager;
    
    @property (nonatomic, readonly, strong) UIButton *backButton;
    
    @property (nonatomic, readonly, strong) UIButton *forwardButton;
    
    @end

    Swift

    class PTNavigationHistoryView : UIView
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTNavigationHistoryViewController : UIViewController <PTOverridable>
    
    @property (nonatomic, strong) PTNavigationHistoryManager *navigationHistoryManager;
    
    @property (nonatomic, readonly, strong) PTNavigationHistoryView *navigationHistoryView;
    
    @property (nonatomic, assign, getter=isNavigationHistoryViewHidden) BOOL navigationHistoryViewHidden;
    
    - (void)setNavigationHistoryViewHidden:(BOOL)hidden animated:(BOOL)animated;
    
    @end

    Swift

    class PTNavigationHistoryViewController : UIViewController, PTOverridable
  • The PTOCRProcessor class performs Optical Character Recognition (OCR) on the content of a PDF and applies the recognized text results to each page.

    See more

    Declaration

    Objective-C

    
    @interface PTOCRProcessor : NSObject

    Swift

    class PTOCRProcessor : NSObject
  • A representation of the border around a PDF annotation.

    See more

    Declaration

    Objective-C

    
    @interface PTPDFAnnotationBorder : NSObject <PTPDFAnnotationBorderAppearance>

    Swift

    class PTPDFAnnotationBorder : NSObject, PTPDFAnnotationBorderAppearance
  • Instances of this class represent annotation changes (add, modify, remove, etc.).

    See more

    Declaration

    Objective-C

    
    @interface PTPDFAnnotationChange : NSObject

    Swift

    class PTPDFAnnotationChange : NSObject
  • Properties of a PDF annotation.

    See more

    Declaration

    Objective-C

    
    @interface PTPDFAnnotationProperties : NSObject

    Swift

    class PTPDFAnnotationProperties : NSObject
  • A representation of an annotation’s state.

    See more

    Declaration

    Objective-C

    
    @interface PTPDFAnnotationState : NSObject

    Swift

    class PTPDFAnnotationState : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTPDFDocumentFile : NSObject
    
    - (instancetype)initWithFileURL:(NSURL *)fileURL;
    
    - (instancetype)initWithFileURL:(NSURL *)fileURL
            fileCoordinationEnabled:(BOOL)fileCoordinationEnabled NS_DESIGNATED_INITIALIZER;
    
    - (instancetype)init NS_UNAVAILABLE;
    + (instancetype)new NS_UNAVAILABLE;
    
    /**
     * The URL of the PDF document file.
     */
    @property (nonatomic, readonly, strong) NSURL *fileURL;
    
    /**
     * The display name of the file, localized for the current locale.
     */
    @property (nonatomic, readonly, copy) NSString *localizedDisplayName;
    
    /**
     * The data model representation for the PDF document while it is open.
     *
     * @note The default value of this property is `nil`.
     */
    @property (nonatomic, readonly, strong, nullable) PTPDFDocumentModel *model;
    
    /**
     * The URL of the cache file used to indirectly access the file at `fileURL`.
     */
    @property (nonatomic, readonly, strong, nullable) NSURL *cacheFileURL;
    
    #pragma mark - File coordination
    
    /**
     * Whether the File Coordination system is used in accessing the document.
     *
     * @note The default value of this property is `NO`.
     */
    @property (nonatomic, readonly, assign, getter=isFileCoordinationEnabled) BOOL fileCoordinationEnabled;
    
    /**
     * The presenter responsible for managing the document's file in the File Coordination system.
     *
     * The value of this property is nonnull when file coordination is enabled, otherwise `nil`.
     *
     * @see `PTPDFDocumentFile.fileCoordinationEnabled`
     */
    @property (nonatomic, readonly, strong, nullable) id<NSFilePresenter> filePresenter;
    
    #pragma mark - Opening
    
    @property (nonatomic, copy, nullable) NSDictionary<PTPDFDocumentReadOptionKey, id> *defaultReadOptions;
    
    - (void)openWithOptions:(nullable NSDictionary<PTPDFDocumentReadOptionKey, id> *)options
          completionHandler:(void (PT_ESCAPING ^ _Nullable)(BOOL success,
                                                            NSError * _Nullable error))completionHandler;
    
    - (void)reloadContentsWithCompletionHandler:(void (PT_ESCAPING ^ _Nullable)(BOOL success,
                                                                                NSError * _Nullable error))completionHandler;
    
    #pragma mark - Saving
    
    /**
     * The default options to be used for write operations.
     */
    @property (nonatomic, copy, nullable) NSDictionary<PTPDFDocumentWriteOptionKey, id> *defaultWriteOptions;
    
    - (void)saveWithOptions:(nullable NSDictionary<PTPDFDocumentWriteOptionKey, id> *)options
          completionHandler:(void (PT_ESCAPING ^ _Nullable)(BOOL success,
                                                            NSError * _Nullable error))completionHandler;
    
    /**
     * Saves the document to the file at the specified URL.
     *
     * @param fileURL The URL location of the file to which the document will be written.
     */
    - (void)saveToFileAtURL:(NSURL *)fileURL
                withOptions:(nullable NSDictionary<PTPDFDocumentWriteOptionKey, id> *)options
          completionHandler:(void (PT_ESCAPING ^ _Nullable)(BOOL success,
                                                            NSError * _Nullable error))completionHandler;
    
    #pragma mark - Closing
    
    - (void)closeWithCompletionHandler:(void (PT_ESCAPING ^ _Nullable)(BOOL success,
                                                                       NSError * _Nullable error))completionHandler;
    
    @end

    Swift

    class PTPDFDocumentFile : NSObject
  • Instances of the PTPDFDocumentManager class control how documents are accessed, usually by a viewer component.

    See more

    Declaration

    Objective-C

    
    @interface PTPDFDocumentManager : NSObject <PTOverridable>

    Swift

    class PTPDFDocumentManager : NSObject, PTOverridable
  • A model class that manages access to a PTPDFDoc instance.

    The PTPDFDocumentModel encapsulates some of the more complex operations that can be performed on a PTPDFDoc, especially saving of the document in a way that handles common pitfalls.

    See more

    Declaration

    Objective-C

    
    @interface PTPDFDocumentModel : NSObject

    Swift

    class PTPDFDocumentModel : NSObject
  • The PTLayerInfo class encapsulates a single Optional Content Group and its visibility in the current context.

    See more

    Declaration

    Objective-C

    
    @interface PTLayerInfo : NSObject

    Swift

    class PTLayerInfo : NSObject
  • The PTPDFLayerViewController class displays a list of the document’s Optional Content Groups (OCGs), also known as layers.

    The visibility of each layer can be toggled on or off using this control.

    See more

    Declaration

    Objective-C

    
    @interface PTPDFLayerViewController : UITableViewController <PTOverridable>

    Swift

    class PTPDFLayerViewController : UITableViewController, PTOverridable
  • Utilities for creating PTPDFDoc objects.

    See more

    Declaration

    Objective-C

    
    @interface PTPDFTronUtil : NSObject
  • The PTPageCropViewController displays a control for cropping the pages of a document.

    See more

    Declaration

    Objective-C

    
    @interface PTPageCropViewController : UIViewController <PTOverridable>

    Swift

    class PTPageCropViewController : UIViewController, PTOverridable
  • Instances of the PTPageLabelManager class manage the page labels associated with the PTPDFDoc of a PTPDFViewCtrl instance.

    See more

    Declaration

    Objective-C

    
    @interface PTPageLabelManager : NSObject <PTOverridable>

    Swift

    class PTPageLabelManager : NSObject, PTOverridable
  • Displays a control for adding blank pages. Allows the user to add pages with various page background templates such as line, grid, graph, and music.

    See more

    Declaration

    Objective-C

    
    @interface PTPageTemplateViewController : UITableViewController <PTOverridable>

    Swift

    class PTPageTemplateViewController : UITableViewController, PTOverridable
  • Instances of the PTPanelView class can contain any view as a subview of its contentView, and when the panel can be resized, resize-controls are shown as appropriate.

    See more

    Declaration

    Objective-C

    
    @interface PTPanelView : UIView

    Swift

    class PTPanelView : UIView
  • A container view controller that can display its child view controllers in a “panel” layout, where a panel can be shown or hidden and can be, optionally, resized by the user.

    See more

    Declaration

    Objective-C

    
    @interface PTPanelViewController : UIViewController

    Swift

    class PTPanelViewController : UIViewController
  • Creates perimeter annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTPerimeterCreate : PTPolylineCreate

    Swift

    class PTPerimeterCreate : PTPolylineCreate
  • A UINavigationController subclass designed to be used with a UIPopoverPresentationController, or other UIPresentationController classes that rely on the preferredContentSize of the view controllers on the navigation stack.

    The default modalPresentationStyle for instances of this class is UIModalPresentationCustom and the transitioningDelegate is set to the presentationManager property.

    See more

    Declaration

    Objective-C

    
    @interface PTPopoverNavigationController
        : UINavigationController <PTOverridable>

    Swift

    class PTPopoverNavigationController : UINavigationController, PTOverridable
  • A UITableViewController replacement designed to work well in a popover presentation.

    Functionality replicated from UITableViewController includes:

    • Creates a table view with the correct dimensions and autoresizing, setting the dataSource and delegate to self.
    • In -viewWillAppear:, it reloads the table’s data if it’s empty. Otherwise, it deselects all rows (with or without animation) if clearsSelectionOnViewWillAppear is YES.
    • In -viewDidAppear:, it flashes the table’s scroll indicators.
    • Implements -setEditing:animated: to toggle the editing state of the table view.
    • Sets the preferredContentSize to reflect the contentSize and contentInset of the table view.

    Unlike the UITableViewController class, this view controller class does NOT adjust the contentInset of the table view when the virtual keyboard is shown.

    See more

    Declaration

    Objective-C

    
    @interface PTPopoverTableViewController
        : UIViewController <UITableViewDelegate, UITableViewDataSource>

    Swift

    class PTPopoverTableViewController : UIViewController, UITableViewDelegate, UITableViewDataSource
  • Creates radio button form annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTRadioButtonCreate : PTRectangleCreate

    Swift

    class PTRadioButtonCreate : PTRectangleCreate
  • Creates rectangular redaction annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTRectangleRedactionCreate : PTRectangleCreate

    Swift

    class PTRectangleRedactionCreate : PTRectangleCreate
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTReflowManager : NSObject
    
    - (instancetype)initWithPDFViewCtrl:(PTPDFViewCtrl *)pdfViewCtrl NS_DESIGNATED_INITIALIZER;
    
    @property (nonatomic, weak, nullable) id<PTReflowManagerDelegate> delegate;
    
    /**
     * Overrides the font to use for reflowed content.
     *
     * If this property is nil, the default PDF font will be used.
     *
     * Warning: If the original PDF has incorrect unicode, changing the font will render the PDF
     * unreadable, so use of this property in the general case is not recommended.
     *
     * The default value of this property is `nil`.
     *
     * @note This property only has effect when `reflowMode` is set to `PTReflowModeTextAndRawImages`.
     */
    @property (nonatomic, copy) NSString* fontOverrideName;
    
    @property (nonatomic, assign) PTReflowMode reflowMode;
    
    /**
     * `true` if annotation is disabled; `false` otherwise. Default is `false`.
     */
    @property (nonatomic, assign) BOOL annotationToolsHidden;
    
    /**
     * `true` if any images should be included; `false` otherwise. Default is `true`.
     */
    @property (nonatomic, assign) BOOL includeImages;
    
    /**
     * `true` if background images should be hidden; `false` otherwise. Default is `false`.
     */
    @property (nonatomic, assign) BOOL hideBackgroundImages;
    
    /**
     * `true` if images should be hidden under text; `false` otherwise. Default is `false`.
     */
    @property (nonatomic, assign) BOOL hideImagesUnderText;
    
    /**
     * `true` if images should be hidden under invisible text; `false` otherwise. Default is `false`.
     */
    @property (nonatomic, assign) BOOL hideImagesUnderInvisibleText;
    
    /**
     * `true` if text should not reflow over images; `false` otherwise. Default is `false`.
     */
    @property (nonatomic, assign) BOOL doNotReflowTextOverImages;
    
    /**
     * `true` if can create annotation; `false` otherwise. Default is `true`.
     * This property will be ignored if `annotationToolsHidden` is `true`.
     */
    @property (nonatomic, assign) BOOL annotationModeEnabled;
    
    - (void)requestReflowForPageNumber:(int)pageNumber;
    
    - (void)clearCache;
    
    - (int)pageNumberForReflowFile:(NSURL *)reflowFile;
    
    
    
    PT_INIT_UNAVAILABLE
    
    @end

    Swift

    class PTReflowManager : NSObject
  • The PTReflowSettingsViewController class displays settings to control the ‘PTReflow’.

    See more

    Declaration

    Objective-C

    
    @interface PTReflowSettingsViewController
        : PTPopoverTableViewController <PTOverridable>

    Swift

    class PTReflowSettingsViewController : PTPopoverTableViewController, PTOverridable
  • The view for the rotation handle that allows annotation rotation (for image stamps) with a PTSelectionRectContainerView.

    See more

    Declaration

    Objective-C

    
    @interface PTRotateWidgetView : UIView

    Swift

    class PTRotateWidgetView : UIView
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTRubberStampColorModel : NSObject
    
    /**
     * The start background color of the rubber stamp.
     */
    @property (nonatomic, strong, readonly) UIColor *startColor;
    
    /**
     * The end background color of the rubber stamp.
     */
    @property (nonatomic, strong, readonly) UIColor *endColor;
    
    /**
     * The text color of the rubber stamp.
     */
    @property (nonatomic, strong, readonly) UIColor *textColor;
    
    /**
     * The border color of the rubber stamp.
     */
    @property (nonatomic, strong, readonly) UIColor *borderColor;
    
    /**
     * Intializes the model with 4 different colors.
     */
    - (instancetype)init: (UIColor*)startColor endColor:(UIColor*)endColor textColor:(UIColor*)textColor borderColor:(UIColor*)borderColor NS_DESIGNATED_INITIALIZER;
    
    - (instancetype)init NS_UNAVAILABLE;
    @end

    Swift

    class PTRubberStampColorModel : NSObject
  • Creates ruler annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTRulerCreate : PTLineCreate

    Swift

    class PTRulerCreate : PTLineCreate
  • Presents a list of saved groups, and buttons to create new ones.

    See more

    Declaration

    Objective-C

    
    @interface PTSavedCountGroupsViewController
        : UITableViewController <PTOverridable>

    Swift

    class PTSavedCountGroupsViewController : UITableViewController, PTOverridable
  • The PTSearchSettingsViewController displays a list of search settings used by PTTextSearchViewController by a PTPDFViewCtrl.

    See more

    Declaration

    Objective-C

    
    @interface PTSearchSettingsViewController
        : UITableViewController <PTOverridable>

    Swift

    class PTSearchSettingsViewController : UITableViewController, PTOverridable
  • The PTSelectableBarButtonItem class allows selection of a bar button item and can display a red badge indicator.

    See more

    Declaration

    Objective-C

    
    @interface PTSelectableBarButtonItem : UIBarButtonItem

    Swift

    class PTSelectableBarButtonItem : UIBarButtonItem
  • An object that contains options for signature annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTSignatureAnnotationOptions : PTAnnotationOptions

    Swift

    class PTSignatureAnnotationOptions : PTAnnotationOptions
  • Creates signature field form annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTSignatureFieldCreate : PTRectangleCreate

    Swift

    class PTSignatureFieldCreate : PTRectangleCreate
  • A tool that creates different types of annotations depending on if a touch begins over text in the document or over a non-text area.

    See more

    Declaration

    Objective-C

    
    @interface PTSmartPen : PTTool

    Swift

    class PTSmartPen : PTTool
  • Creates spacing text annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTSpacingTextCreate : PTFreeTextCreate <PTAnnotEditToolDelegate>

    Swift

    class PTSpacingTextCreate : PTFreeTextCreate, PTAnnotEditToolDelegate
  • An object that contains options for text (sticky note) annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTTextAnnotationOptions : PTAnnotationOptions

    Swift

    class PTTextAnnotationOptions : PTAnnotationOptions
  • Creates text field form annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTTextFieldCreate : PTRectangleCreate

    Swift

    class PTTextFieldCreate : PTRectangleCreate
  • An object that contains options for text markup annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTTextMarkupAnnotationOptions : PTAnnotationOptions

    Swift

    class PTTextMarkupAnnotationOptions : PTAnnotationOptions
  • Creates text redaction annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTTextRedactionCreate : PTTextMarkupCreate

    Swift

    class PTTextRedactionCreate : PTTextMarkupCreate
  • Properties of a text widget annotation.

    See more

    Declaration

    Objective-C

    
    @interface PTTextWidgetAnnotationProperties
        : PTWidgetAnnotationProperties <PTRichTextAnnotationProperties>

    Swift

    class PTTextWidgetAnnotationProperties : PTWidgetAnnotationProperties, PTRichTextAnnotationProperties
  • A view that displays the appearance of a text widget annotation.

    See more

    Declaration

    Objective-C

    
    @interface PTTextWidgetAppearanceView
        : PTAnnotationAppearanceView <UITextViewDelegate>

    Swift

    class PTTextWidgetAppearanceView : PTAnnotationAppearanceView, UITextViewDelegate
  • A view model representing the appearance of a text widget annotation.

    See more
  • A PTTextWidgetRefreshAppearanceHandler generates custom PDF appearances for text widget annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTTextWidgetRefreshAppearanceHandler
        : PTAnnotationRefreshCustomAppearanceHandler

    Swift

    class PTTextWidgetRefreshAppearanceHandler : PTAnnotationRefreshCustomAppearanceHandler
  • A PTThumbnailSliderView object shows a set of page thumbnails for a PTPDFViewCtrl‘s current document. The view also acts similar to a UISlider control, allowing the current page of the associated PTPDFViewCtrl to be changed with tap, pan, and long-press gestures on the pages.

    See more

    Declaration

    Objective-C

    
    @interface PTThumbnailSliderView
        : UIView <PTOverridable, UICollectionViewDataSource,
                  UICollectionViewDelegate>

    Swift

    class PTThumbnailSliderView : UIView, PTOverridable, UICollectionViewDataSource, UICollectionViewDelegate
  • Undocumented

    See more

    Declaration

    Objective-C

    
    @interface PTToolBarButtonItem : PTSelectableBarButtonItem <NSCopying>

    Swift

    class PTToolBarButtonItem : PTSelectableBarButtonItem, NSCopying
  • The PTToolGroup class encapsulates a list of UIBarButtonItem instances with a title and image to be displayed in a user interface.

    This class is similar to the UIBarButtonItemGroup class except that a bar button item can be included in more than one PTToolGroup.

    See more

    Declaration

    Objective-C

    
    @interface PTToolGroup : NSObject <NSCoding>

    Swift

    class PTToolGroup : NSObject, NSCoding
  • The PTToolGroupDefaultsViewController class allows the user to edit the items in a tool group. If more than one tool group is specified in the itemGroups property, then items can be added to the first tool group from the other groups.

    See more

    Declaration

    Objective-C

    
    @interface PTToolGroupDefaultsViewController : UITableViewController

    Swift

    class PTToolGroupDefaultsViewController : UITableViewController
  • The PTToolGroupView displays the current tool group of a PTToolGroupManager instance.

    See more

    Declaration

    Objective-C

    
    @interface PTToolGroupIndicatorView : UIView

    Swift

    class PTToolGroupIndicatorView : UIView
  • The PTToolGroupToolbar displays a list of buttons that allow the user to switch between tools in a PTToolManager instance. The set of tool buttons displayed by this control can be selected from a list of “Annotation Modes”, each of which have different tools available for different tasks (drawing, measuring, etc.). The tool groups are controlled by a PTToolGroupManager instance used by the toolbar.

    The tool buttons in the toolbar are represented by UIBarButtonItem instances. The list of buttons for the current tool group are displayed in a scrollable area of the toolbar.

    In addition to the tool buttons displayed in the center of the toolbar, other buttons can be shown pinned at the leading and trailing ends of the toolbar. By default the PTToolGroupManager.undoButtonItem and PTToolGroupManager.redoButtonItem buttons are shown at the trailing end of the toolbar.

    See more

    Declaration

    Objective-C

    
    @interface PTToolGroupToolbar
        : UIView <PTAnnotStyleViewControllerDelegate, UIToolbarDelegate,
                  PTAnnotationStylePresetsViewDelegate, PTOverridable>

    Swift

    class PTToolGroupToolbar : UIView, PTAnnotStyleViewControllerDelegate, UIToolbarDelegate, PTAnnotationStylePresetsViewDelegate, PTOverridable
  • The PTToolGroupViewController class displays the available list of annotation modes from a PTToolGroupManager instance.

    See more

    Declaration

    Objective-C

    
    @interface PTToolGroupViewController : UITableViewController <PTOverridable>

    Swift

    class PTToolGroupViewController : UITableViewController, PTOverridable
  • A class that manages user preferences.

    The settings in this class are use by the PTDocumentBaseViewController to control its behaviour, except as noted in the documentation for each setting.

    See more

    Declaration

    Objective-C

    
    @interface PTToolsSettingsManager : NSObject

    Swift

    class PTToolsSettingsManager : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTUndoRedoInfo : NSObject <NSCoding>
    
    - (instancetype)init NS_DESIGNATED_INITIALIZER;
    - (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
    
    @property (nonatomic, copy, nullable) NSIndexSet *pageNumbers;
    
    @end

    Swift

    class PTUndoRedoInfo : NSObject, NSCoding
  • The PTUndoRedoManager class is responsible for managing the undo/redo chain of a PTPDFViewCtrl and an NSUndoManager instance.

    See more

    Declaration

    Objective-C

    
    @interface PTUndoRedoManager : NSObject <PTOverridable>

    Swift

    class PTUndoRedoManager : NSObject, PTOverridable
  • An object that contains options for widget (form field) annotations.

    See more

    Declaration

    Objective-C

    
    @interface PTWidgetAnnotationOptions : PTAnnotationOptions

    Swift

    class PTWidgetAnnotationOptions : PTAnnotationOptions
  • Properties of a widget annotation.

    See more

    Declaration

    Objective-C

    
    @interface PTWidgetAnnotationProperties : PTPDFAnnotationProperties

    Swift

    class PTWidgetAnnotationProperties : PTPDFAnnotationProperties