Package com.pdfgate
Class WatermarkPdfParams.Builder
java.lang.Object
com.pdfgate.WatermarkPdfParams.Builder
- Enclosing class:
WatermarkPdfParams
Builder for
WatermarkPdfParams.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds watermark PDF parameters for JSON responses.documentId(String documentId) Sets the document id for the source PDF.Sets the text watermark font.Sets the text watermark font color.Sets the text watermark font size.imageHeight(Integer imageHeight) Sets the watermark image height.imageWidth(Integer imageWidth) Sets the watermark image width.Sets metadata to attach to the document.Sets the watermark opacity.preSignedUrlExpiresIn(Long preSignedUrlExpiresIn) Sets the pre-signed URL expiration time in seconds.Sets the watermark rotation in degrees.Sets the watermark text.Sets the watermark type.Sets the watermark image file.Sets the watermark horizontal position.Sets the watermark vertical position.
-
Method Details
-
documentId
Sets the document id for the source PDF.- Parameters:
documentId- the document id for the source PDF.- Returns:
- this builder.
-
watermark
Sets the watermark image file.- Parameters:
watermark- watermark image file.- Returns:
- this builder.
-
type
Sets the watermark type.- Parameters:
type- watermark type.- Returns:
- this builder.
-
text
Sets the watermark text.- Parameters:
text- watermark text.- Returns:
- this builder.
-
font
Sets the text watermark font.- Parameters:
font- text watermark font.- Returns:
- this builder.
-
fontSize
Sets the text watermark font size.- Parameters:
fontSize- text watermark font size.- Returns:
- this builder.
-
fontColor
Sets the text watermark font color.- Parameters:
fontColor- text watermark font color.- Returns:
- this builder.
-
opacity
Sets the watermark opacity.- Parameters:
opacity- watermark opacity.- Returns:
- this builder.
-
xPosition
Sets the watermark horizontal position.- Parameters:
xPosition- watermark horizontal position.- Returns:
- this builder.
-
yPosition
Sets the watermark vertical position.- Parameters:
yPosition- watermark vertical position.- Returns:
- this builder.
-
imageWidth
Sets the watermark image width.- Parameters:
imageWidth- watermark image width.- Returns:
- this builder.
-
imageHeight
Sets the watermark image height.- Parameters:
imageHeight- watermark image height.- Returns:
- this builder.
-
rotate
Sets the watermark rotation in degrees.- Parameters:
rotate- watermark rotation in degrees.- 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 watermark PDF parameters for JSON responses.- Returns:
- parameters configured for JSON responses.
-