PTExternalAnnotManager
@interface PTExternalAnnotManager : 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()
-
Merge an xfdf string into the current document. This Xfdf can be in normal Adobe format, or it contain xfdf commands like add, delete, and modify.
Declaration
Objective-C
- (void)MergeXFDF:(NSString *)xfdf_content;
Swift
func mergeXFDF(_ xfdf_content: String!)
Parameters
xfdf_content
– xfdf string with content to be added to the document.
-
Perform the conversion. Will throw an exception on failure.
Declaration
Objective-C
- (NSString *)Undo;
Swift
func undo() -> String!
Return Value
a string consisting of the payload that was provided when TakeSnapshot was called. If that payload was in JSON format, then it will have added field “xfdf”, containing the xfdf commands representing the changes made by this call (if any).
-
Retrieve the last XFDF command string produced by the last call to either Undo, Redo, or TakeSnapshot.
Declaration
Objective-C
- (NSString *)GetLastXFDF;
Swift
func getLastXFDF() -> String!
Return Value
an xfdf command string.
-
Retrieve the last JSON command string produced by the last call to either Undo, Redo, or TakeSnapshot.
Declaration
Objective-C
- (NSString *)GetLastJSON;
Swift
func getLastJSON() -> String!
Return Value
a json command string.
-
Perform the conversion. Will throw an exception on failure. Does nothing if the conversion is already complete. Use GetConversionStatus() to check if there is remaining content to be converted.
Declaration
Objective-C
- (NSString *)Redo;
Swift
func redo() -> String!
Return Value
a string consisting of the payload that was provided when TakeSnapshot was called. If that payload was in JSON format, then it will have added field “xfdf”, containing the xfdf commands representing the changes made by this call (if any).
-
Returns any meta-data associated with the next state in the redo chain.
Declaration
Objective-C
- (NSString *)GetNextRedoInfo;
Swift
func getNextRedoInfo() -> String!
Return Value
a string consisting of the payload that was provided when TakeSnapshot was called.
-
Returns any meta-data associated with the next state in the undo chain.
Declaration
Objective-C
- (NSString *)GetNextUndoInfo;
Swift
func getNextUndoInfo() -> String!
Return Value
a string consisting of the payload that was provided when TakeSnapshot was called.
-
Take an undo snapshot, returning the xfdf command string representing any change in state since the last snapshot.
Declaration
Objective-C
- (NSString *)TakeSnapshot:(NSString *)payload;
Swift
func takeSnapshot(_ payload: String!) -> String!
Parameters
payload
– a string that will be returned when Undo or Redo are called such that the transition marked by this snapshot is reversed..
Return Value
an xfdf string.
-
Undocumented
Declaration
Objective-C
- (instancetype)init;
Swift
init!()