PSPDFXFDFWriter


@interface PSPDFXFDFWriter : NSObject

Writes an XML in XFDF standard from PSPDFKit annotations. http://partners.adobe.com/public/developer/en/xml/XFDF_Spec_3.0.pdf

  • Writes the given annotations to the given outputStream and blocks until done.

    Declaration

    Objective-C

    - (BOOL)writeAnnotations:
                (nonnull NSArray<__kindof PSPDFAnnotation *> *)annotations
              toOutputStream:(nonnull NSOutputStream *)outputStream
            documentProvider:(nullable PSPDFDocumentProvider *)documentProvider
                       error:(NSError *_Nullable *_Nullable)error;

    Swift

    func write(_ annotations: [PSPDFAnnotation], to outputStream: OutputStream, documentProvider: PSPDFDocumentProvider?) throws

    Parameters

    annotations

    The annotations that should be written.

    outputStream

    The output stream the XML will be written to.

    documentProvider

    The document provider. If nil, form values will NOT be written.

    error

    Pass an error for better error description.

    Return Value

    YES if the data was written, NO otherwise.