Package com.pdfgate
Class CompressPdfParams.Builder
java.lang.Object
com.pdfgate.CompressPdfParams.Builder
- Enclosing class:
CompressPdfParams
Builder for
CompressPdfParams.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds compress PDF parameters for JSON responses.documentId(String documentId) Sets the document ID for the source PDF.Enables linearized PDF output when set to true.Sets metadata to attach to the document.preSignedUrlExpiresIn(Long preSignedUrlExpiresIn) Sets the pre-signed URL expiration time in seconds.
-
Method Details
-
documentId
Sets the document ID for the source PDF.- Parameters:
documentId- the document ID.- Returns:
- this builder.
-
linearize
Enables linearized PDF output when set to true.- Parameters:
linearize- whether to enable linearized output.- 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 compress PDF parameters for JSON responses.- Returns:
- parameters configured for JSON responses.
-