Class PdfFileSourceAdapter

java.lang.Object
org.sejda.conversion.PdfFileSourceAdapter

public class PdfFileSourceAdapter extends Object
Adapter for PdfFileSourceAdapter. Main role is to be a string-based constructor for the underlying model object
Author:
Eduard Weissmann
  • Field Details

  • Constructor Details

    • PdfFileSourceAdapter

      public PdfFileSourceAdapter(String filePathAndPassword)
      Constructor for a PdfFileSourceAdapter. Supports pdf files that are password protected If file has no password protection, input parameter is the path to the file. Eg: /path/to/file.pdf For password protected files, input is concatenation of file path and password, using ":" as delimiter. Eg: /path/to/file.pdf:secret123
      Parameters:
      filePathAndPassword - file path concatenated using ":" with (optional) password
  • Method Details

    • getPdfFileSource

      public PdfFileSource getPdfFileSource()
      Returns:
      the pdfFileSource