PSPDFEditingChange

Objective-C


@interface PSPDFEditingChange : PSPDFModel

Swift

class PDFEditingChange : ModelObject

Represents a change that was performed by PSPDFDocumentEditor.

See

PSPDFDocumentEditor
  • Unavailable

    Not the designated initializer

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Unavailable

    Not the designated initializer

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Initializes the editing change and sets all data values.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithOperation:(PSPDFEditingOperation)operation
                            affectedPageIndex:(NSUInteger)affectedPageIndex
                         destinationPageIndex:(NSUInteger)destinationPageIndex
                     pageReferenceSourceIndex:(NSUInteger)pageReferenceSourceIndex;

    Swift

    init(operation: PDFEditingChange.Operation, affectedPageIndex: UInt, destinationPageIndex: UInt, pageReferenceSourceIndex: UInt)
  • The operation type.

    Declaration

    Objective-C

    @property (nonatomic, readonly) PSPDFEditingOperation operation;

    Swift

    var operation: PDFEditingChange.Operation { get }
  • Which page index was affected.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSUInteger affectedPageIndex;

    Swift

    var affectedPageIndex: UInt { get }
  • The destination page index, if a move was performed.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSUInteger destinationPageIndex;

    Swift

    var destinationPageIndex: UInt { get }
  • The source page index, if a page reference was inserted.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSUInteger pageReferenceSourceIndex;

    Swift

    var pageReferenceSourceIndex: UInt { get }