stamp_icon

Watermark in your PDF files

Alessandro Gasparini Document Management, How to

  •  
  •  
  •  
  •  

The LogicalDOC native platform has already done a lot with PDF files. “Already” and “native” translate to “you don’t have to do anything, the features are here,” which is always a good way to work. It allows you to focus on the other features of your application. For editing PDF files, here is a list (not an exhaustive on) of the available functions: extraction of complete text/indexing, conversion to pdf, preview, template rendering, and digital signature.

Now let’s say you want to mark a PDF. For example, put the watermark you want in this PDF (on the left) with the image, “Draft”:

Watermark the PDF (on the left) with the “Draft” image (on the right)

To do this we will use the capabilities of LogicalDOC to edit your PDF files within the system (uses PDFBox internally, a widely used tool for editing files in PDF format). In this article, we will use a stamp image, but you can do much more with this library (for example, seal with a simple text or another PDF, extract pages, encrypt, decrypt, etc.)

To create our example watermark using LogicalDOC, we first have to add the definition of a stamp. This will make it available in the list of labels when the user wishes to apply a watermark or for writing an automation task. An easy way to define your label is going to Administration> Document-metadata> Stamps. Then click Add stamp.

Give it a name like “Draft” and for Type choose the image, then upload the image and save.

setup the watermark image

Now open the Users tab and assign this seal to users who need to use it, and of course, don’t forget to assign it to yourself, too.

users allowed to use the stamp (watermark)

Next, open the browser, select the document you want to stamp and click on the stamp icon.

Look how easy it is:

Manual application of the watermark by clicking on the icon "Stamp"

In this example, images and values are not editable, and the user manually applied the stamp. In your application, you probably have something more dynamic, and perhaps are applying the label as a workflow action, or saving it to another document. The process will be the same. The point is that it’s so easy.

As expected, the resulting PDF has the watermark on all pages:

The watermark is applied to all pages of the document

PDF files are a fun, after all, right?

 

For More informations
User’s Guide: http://docs.logicaldoc.com/en/working-with-documents/stamping-a-document
Administrator’s Guide: http://docs.logicaldoc.com/en/document-metadata/stamps

The following two tabs change content below.

Alessandro Gasparini

CTO for LogicalDOC from 2015, software and testing enthusiast. I'm responsible for some technological choices made in the design and of some of the artifacts that make up the galaxy of this document management system.
  •  
  •  
  •  
  •  
  •