The file type of the document, see #setFileType(FileType).setFileType(FileType).
getPassword()
public final String getPassword()
Gets or sets password to open a protected document.
It will be also used to save signed document as protected.
Returns:
java.lang.String
setPassword(String value)
public final void setPassword(String value)
Gets or sets password to open a protected document.
It will be also used to save signed document as protected.
Parameters:
Parameter
Type
Description
value
java.lang.String
getSkipExternalResources()
public final boolean getSkipExternalResources()
Gets or sets a flag that tells whether resources stored outside the document are skipped when it is loaded.
The default value is true.
A document can refer to resources outside it: linked images and INCLUDEPICTURE fields in word processing
documents, linked pictures in presentations and spreadsheets, images and style sheets an SVG image refers to.
Loading such a resource means requesting the address written in the document. On a server that processes
documents from other people that is a server-side request forgery risk, and on an offline installation the
request fails or waits for a time-out.
When true, external resources are not loaded, except those whose address contains one of
#getWhitelistedResources().getWhitelistedResources(). Skipped resources are not drawn in page previews or in documents saved as
images, and image, barcode and QR-code search does not see them. Embedded images are not affected, and
hyperlinks are never followed. The setting also applies to documents inside archives.
Returns:
boolean
setSkipExternalResources(boolean value)
public final void setSkipExternalResources(boolean value)
Gets or sets a flag that tells whether resources stored outside the document are skipped when it is loaded.
The default value is true. See #getSkipExternalResources().getSkipExternalResources().
Parameters:
Parameter
Type
Description
value
boolean
getWhitelistedResources()
public final List<String> getWhitelistedResources()
Gets or sets parts of addresses of external resources that may be loaded while
#getSkipExternalResources().getSkipExternalResources() is true. An address is loaded when it contains one of them, ignoring case.
Empty values are ignored. The default is an empty list; setting null clears it.
Returns:
java.util.List<java.lang.String>
setWhitelistedResources(List value)
public final void setWhitelistedResources(List<String> value)
Gets or sets parts of addresses of external resources that may be loaded while
#getSkipExternalResources().getSkipExternalResources() is true. See #getWhitelistedResources().getWhitelistedResources().
Parameters:
Parameter
Type
Description
value
java.util.List<java.lang.String>
getPermissions()
public final Integer getPermissions()
The PDF document permissions such as printing, modification and data extraction.
Only for PDF documents. Read-only \u2014 populated automatically while loading the document.
The value is a flags combination from Permissions.
Returns:
java.lang.Integer
setPermissions(Integer value)
public final void setPermissions(Integer value)
Internal setter, used by document load processors to record permissions parsed from the file.
Parameters:
Parameter
Type
Description
value
java.lang.Integer
getFileType()
public final FileType getFileType()
Gets the file type of the document. When it is FileType.Unknown (the default),
the file type is detected from the document content.