Class PDFDocument

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public class PDFDocument
extends NSObject
Since:
Available in iOS 11.0 and later.
  • Constructor Details

    • PDFDocument

      public PDFDocument()
    • PDFDocument

      protected PDFDocument​(NSObject.Handle h, long handle)
    • PDFDocument

      protected PDFDocument​(NSObject.SkipInit skipInit)
    • PDFDocument

      public PDFDocument​(NSURL url)
    • PDFDocument

      public PDFDocument​(NSData data)
  • Method Details

    • getDocumentURL

      public NSURL getDocumentURL()
    • getDocumentRef

      public CGPDFDocument getDocumentRef()
    • getDocumentAttributes

      public NSDictionary<?,​?> getDocumentAttributes()
    • setDocumentAttributes

      public void setDocumentAttributes​(NSDictionary<?,​?> v)
    • getMajorVersion

      public long getMajorVersion()
    • getMinorVersion

      public long getMinorVersion()
    • isEncrypted

      public boolean isEncrypted()
    • isLocked

      public boolean isLocked()
    • allowsPrinting

      public boolean allowsPrinting()
      Since:
      Available in iOS 11.0 and later.
    • allowsCopying

      public boolean allowsCopying()
      Since:
      Available in iOS 11.0 and later.
    • allowsDocumentChanges

      public boolean allowsDocumentChanges()
      Since:
      Available in iOS 11.0 and later.
    • allowsDocumentAssembly

      public boolean allowsDocumentAssembly()
      Since:
      Available in iOS 11.0 and later.
    • allowsContentAccessibility

      public boolean allowsContentAccessibility()
      Since:
      Available in iOS 11.0 and later.
    • allowsCommenting

      public boolean allowsCommenting()
      Since:
      Available in iOS 11.0 and later.
    • allowsFormFieldEntry

      public boolean allowsFormFieldEntry()
      Since:
      Available in iOS 11.0 and later.
    • getAccessPermissions

      public PDFAccessPermissions getAccessPermissions()
    • getPermissionsStatus

      public PDFDocumentPermissions getPermissionsStatus()
      Since:
      Available in iOS 11.0 and later.
    • getString

      public String getString()
    • getDelegate

      public PDFDocumentDelegate getDelegate()
    • setDelegate

      public void setDelegate​(PDFDocumentDelegate v)
    • getOutlineRoot

      public PDFOutline getOutlineRoot()
      Since:
      Available in iOS 11.0 and later.
    • setOutlineRoot

      public void setOutlineRoot​(PDFOutline v)
      Since:
      Available in iOS 11.0 and later.
    • getPageCount

      public long getPageCount()
    • getPageClass

      public Class<?> getPageClass()
    • isFinding

      public boolean isFinding()
    • getSelectionForEntireDocument

      public PDFSelection getSelectionForEntireDocument()
    • init

      protected long init​(NSURL url)
    • init

      protected long init​(NSData data)
    • unlock

      public boolean unlock​(String password)
    • dataRepresentation

      public NSData dataRepresentation()
    • dataRepresentation

      public NSData dataRepresentation​(NSDictionary<?,​?> options)
      Since:
      Available in iOS 11.0 and later.
    • writeToFile

      public boolean writeToFile​(String path)
    • writeToFile

      public boolean writeToFile​(String path, NSDictionary<NSString,​?> options)
    • writeToURL

      public boolean writeToURL​(NSURL url)
    • writeToURL

      public boolean writeToURL​(NSURL url, NSDictionary<NSString,​?> options)
    • outlineItemForSelection

      public PDFOutline outlineItemForSelection​(PDFSelection selection)
    • pageAtIndex

      public PDFPage pageAtIndex​(long index)
    • indexForPage

      public long indexForPage​(PDFPage page)
    • insertPage

      public void insertPage​(PDFPage page, long index)
    • removePageAtIndex

      public void removePageAtIndex​(long index)
    • exchangePage

      public void exchangePage​(long indexA, long indexB)
    • findString

      public NSArray<PDFSelection> findString​(String string, NSStringCompareOptions options)
    • beginFindString

      public void beginFindString​(String string, NSStringCompareOptions options)
    • beginFindStrings

      public void beginFindStrings​(NSArray<NSString> strings, NSStringCompareOptions options)
      Since:
      Available in iOS 11.0 and later.
    • findString

      public PDFSelection findString​(String string, PDFSelection selection, NSStringCompareOptions options)
    • cancelFindString

      public void cancelFindString()
    • selection

      public PDFSelection selection​(PDFPage startPage, CGPoint startPoint, PDFPage endPage, CGPoint endPoint)
    • selection

      public PDFSelection selection​(PDFPage startPage, long startCharacter, PDFPage endPage, long endCharacter)