Interface PDFTransformationService

    • Method Detail

      • getDefaultProperties

        WatermarkProperties getDefaultProperties()
        Returns:
        the watermark default properties
      • applyTextWatermark

        Blob applyTextWatermark​(Blob input,
                                String text,
                                WatermarkProperties properties)
        Add a text watermark to the input PDF blob
        Parameters:
        input - A PDF blob
        text - The text to use for the watermark
        properties - the properties of the watermark
        Returns:
        a new PDF file
      • applyImageWatermark

        Blob applyImageWatermark​(Blob input,
                                 Blob watermark,
                                 WatermarkProperties properties)
        Add an Image watermark to the input PDF blob
        Parameters:
        input - A PDF blob
        watermark - The image to use for the watermark
        properties - the properties of the watermark
        Returns:
        a new PDF file
      • overlayPDF

        Blob overlayPDF​(Blob input,
                        Blob overlayBlob)
        Overlay a PDF file on top of the input Blob
        Parameters:
        input - The original PDF file
        overlayBlob - The PDF file to overlay on top inBlob
        Returns:
        a new PDF file