Package com.pdfgate
Class CompressPdfParams
java.lang.Object
com.pdfgate.CompressPdfParams
Parameters for compressing a PDF by document ID.
Set linearize to enable Fast Web View output. Responses are JSON-only; use
CompressPdfParams.Builder.build() for PdfGateDocument metadata.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CompressPdfParams.Builderbuilder()Creates a new builder for compress PDF parameters.Returns the document ID when compressing by document ID.Returns whether the response is JSON.Returns whether the PDF should be linearized.Returns metadata to attach to the document.Returns the pre-signed URL expiration time in seconds.booleanReturns whether the response is JSON.
-
Method Details
-
builder
Creates a new builder for compress PDF parameters.- Returns:
- the builder for compress PDF parameters.
-
getDocumentId
Returns the document ID when compressing by document ID.- Returns:
- the document ID.
-
getLinearize
Returns whether the PDF should be linearized.- Returns:
- whether to enable linearized output.
-
getJsonResponse
Returns whether the response is JSON.- Returns:
- whether the response is JSON.
-
isJsonResponse
public boolean isJsonResponse()Returns whether the response is JSON.- Returns:
- whether the response is JSON.
-
getPreSignedUrlExpiresIn
Returns the pre-signed URL expiration time in seconds.- Returns:
- the pre-signed URL expiration time in seconds.
-
getMetadata
Returns metadata to attach to the document.- Returns:
- metadata to attach to the document.
-