pdf-watermark
Reactive icon

PDF Watermark

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 13 May (yesterday)
 by 
0.0
 (0 ratings)
pdf-watermark

PDF Watermark

Documentation
1.0.0

Options 

 

  • PdfWatermark
    • PDF Watermark is a component that allows you to insert images (such as logos, signatures, or watermarks) into PDF files in a simple, fast, and entirely client-side way.
    • The entire operation is performed directly in the browser, without the need to send files to the server, ensuring greater performance, security, and ease of implementation.
    • With it, you can load a PDF and an image, define the exact position (X and Y coordinates), and generate a new document with the image superimposed on the desired page, in a lightweight and efficient way.
    • The component is ideal for scenarios where it is necessary to dynamically customize documents, such as applying watermarks, inserting visual signatures, or including corporate logos—all without depending on backend processing.
      • PdfBinary: Original PDF file in binary format that will be used as the basis for inserting the image. This document is not directly altered; a new PDF will be generated with the modifications.
      • ImageBinary: A binary image (PNG or JPG) to be inserted into a PDF. It can be used as a logo, signature, or watermark.
      • PositionHorizontal: Defines the horizontal position of the image within the PDF. The value represents the distance, in points, from the bottom-left corner of the page. The higher the value, the further to the right the image will be placed.
      • PositionVertical: Defines the vertical position of the image within the PDF. The value represents the distance, in points, from the bottom-left corner of the page. The higher the value, the higher the image will be placed on the page.
      • LastPage: Determines whether the image should be inserted on the last page of the PDF.
      • true → inserts the image on the last page of the document
      • false → inserts the image on the first page
      • This parameter allows easy control over image placement in multi-page documents without needing to specify the page number manually.
      • PDF: Final PDF file generated after inserting the image at the specified position. This is the resulting document that can be stored, displayed, or made available for download.


 

How can i use this component? 

  • You need to use it in a client action, passing the binary of the PDF and the image, the horizontal and vertical position, and choosing whether you want the inserted image to be on the first or last page of the PDF.