Package com.pdfgate
Class ProtectPdfParams.Builder
java.lang.Object
com.pdfgate.ProtectPdfParams.Builder
- Enclosing class:
ProtectPdfParams
Builder for
ProtectPdfParams.-
Method Summary
Modifier and TypeMethodDescriptionalgorithm(ProtectPdfParams.EncryptionAlgorithm algorithm) Sets the encryption algorithm.build()Builds protect PDF parameters for JSON responses.disableCopy(Boolean disableCopy) Disables copying when set to true.disableEditing(Boolean disableEditing) Disables editing when set to true.disablePrint(Boolean disablePrint) Disables printing when set to true.documentId(String documentId) Sets the document id for the source PDF.encryptMetadata(Boolean encryptMetadata) Encrypts metadata when set to true.Sets metadata to attach to the document.ownerPassword(String ownerPassword) Sets the owner password with full control.preSignedUrlExpiresIn(Long preSignedUrlExpiresIn) Sets the pre-signed URL expiration time in seconds.userPassword(String userPassword) Sets the user password required to open the PDF.
-
Method Details
-
documentId
Sets the document id for the source PDF.- Parameters:
documentId- the document id for the source PDF.- Returns:
- this builder.
-
algorithm
Sets the encryption algorithm.- Parameters:
algorithm- encryption algorithm.- Returns:
- this builder.
-
userPassword
Sets the user password required to open the PDF.- Parameters:
userPassword- user password required to open the PDF.- Returns:
- this builder.
-
ownerPassword
Sets the owner password with full control.- Parameters:
ownerPassword- owner password with full control.- Returns:
- this builder.
-
disablePrint
Disables printing when set to true.- Parameters:
disablePrint- whether printing is disabled.- Returns:
- this builder.
-
disableCopy
Disables copying when set to true.- Parameters:
disableCopy- whether copying is disabled.- Returns:
- this builder.
-
disableEditing
Disables editing when set to true.- Parameters:
disableEditing- whether editing is disabled.- Returns:
- this builder.
-
encryptMetadata
Encrypts metadata when set to true.- Parameters:
encryptMetadata- whether to encrypt metadata.- Returns:
- this builder.
-
preSignedUrlExpiresIn
Sets the pre-signed URL expiration time in seconds.- Parameters:
preSignedUrlExpiresIn- expiration time in seconds.- Returns:
- this builder.
-
metadata
Sets metadata to attach to the document.- Parameters:
metadata- metadata to attach to the document.- Returns:
- this builder.
-
build
Builds protect PDF parameters for JSON responses.- Returns:
- parameters configured for JSON responses.
-