public class PdfFileSourceAdapter extends Object
PdfFileSourceAdapter. Main role is to be a string-based constructor for the underlying model object| Modifier and Type | Field and Description |
|---|---|
static String |
PASSWORD_SEPARATOR_CHARACTER |
| Constructor and Description |
|---|
PdfFileSourceAdapter(String filePathAndPassword)
Constructor for a
PdfFileSourceAdapter. |
| Modifier and Type | Method and Description |
|---|---|
PdfFileSource |
getPdfFileSource() |
public static final String PASSWORD_SEPARATOR_CHARACTER
public PdfFileSourceAdapter(String filePathAndPassword)
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:secret123filePathAndPassword - file path concatenated using ":" with (optional) passwordpublic PdfFileSource getPdfFileSource()
Copyright © 2022 sejda. All rights reserved.