Class DocumentSource

  • All Implemented Interfaces:

    
    public final class DocumentSource
    
                        

    Represents a document source which may be a DataProvider or a file Uri.

    • Constructor Detail

      • DocumentSource

        DocumentSource(Uri fileUri)
        Creates a new DocumentSource with file Uri as a source.
        Parameters:
        fileUri - Uri of the PDF file.
      • DocumentSource

        DocumentSource(Uri fileUri, String password)
        Creates a new DocumentSource with file Uri as a source.
        Parameters:
        fileUri - Uri of the PDF file.
        password - Password to unlock the file.
      • DocumentSource

        DocumentSource(Uri fileUri, String password, String contentSignature)
        Creates a new DocumentSource with file Uri as a source.
        Parameters:
        fileUri - Uri of the PDF file.
        password - Password to unlock the file.
        contentSignature - An RSA encrypted SHA256 hash of the document if required by license, may be null.
      • DocumentSource

        DocumentSource(DataProvider dataProvider, String password, String contentSignature)
        Creates a new DocumentSource with a DataProvider as a source.
        Parameters:
        dataProvider - DataProvider for accessing the document to open.
        password - Password to unlock the PDF.
        contentSignature - An RSA encrypted SHA256 hash of the document if required by license, may be null.