Tips & Tricks

Adding 'stamps' or 'watermarks' to your PDFs

May 01, 2001

Advertisement
Advertisement
 

We have made a sample and instructions on how to use a similar method to add `stamps' or `watermarks' to your existing PDFs. This method allows you to apply text or images to all pages of a PDF. The message at the top of each of the pages of this PDF as well as the icons at the bottom have come from the template I have used.

The additional benefit of this method is that the images and text you apply with the template cannot be removed or altered - that is, even the touch up tools in Acrobat 4.0 will not work on them.

Using the 'OfficialRelease' file to apply the PDF template.

Open the OfficialRelease.PDF file. This file already has a sample 'Official Release' template included (this can be changed later). Get one of your PDFs and merge it with this file, making sure you add it to the end of it. You can do this by dragging and dropping the PDF into Acrobat. Make sure you insert it at the end of the OfficialRelease.PDF file.

Go to the first page and click the Stamp button. This now should have placed the template on all pages of your PDF for you.

Making your PDF template

The 'Template_used.PDF' file is the PDF I used to display the message at the bottom of the page - that is, it is the template I used. To create the message or image you want to appear on every page just use whatever software you normally use to make PDFs. The page should be completely blank except for the content you want to be displayed from your template. Turn the page into a PDF.

Making your PDF template

In the OfficialRelease.PDF go to Tools > Forms > Page Templates. You'll see that there is already one selected. Delete the one there and add the template you want to use. You do this by merging the template with the OfficialRelease.PDF. Go to the page you want to be the template and go to Tools > Forms > Page Templates. Type the name OfficialRelease in and then click the Add button. Also, make sure that the checkbox to the left of the template name is not checked on - if it is checked on you will see an 'eye' icon.

You can change the name of the template you use - which is based on the filename of OfficialRelease.pdf. See the next section for details on how to do this.

Additional notes: you now just follow the step above for applying a template to file. When you want to view the template you have added, go to Tools > Forms > Page Templates and click on the little icon to the left of the template name.

JavaScript used by the 'Stamp' button - renaming the PDF file you use

The JavaScript used in the Stamp button can be altered so among other things you can change the template name from OfficialRelease to whatever you like.

To access the JavaScript click on the Forms toolbar button and double click on the Stamp button. (Form button is shown here).

Once you have opened the Form, go to Actions and click on JavaScript.

The OfficialRelease (in blue below) just needs to be changed to the file name of the PDF you want to use as the template stamp.

	var iNumPages = this.numPages; 
	console.println(iNumPages); 
	for (i = 1; i < iNumPages; i++) 

	{ 
   		console.println(i); 
   		this.spawnPageFromTemplate(" 

	OfficialRelease", i, true); 
	}  
Related Products at PDF Store

Nitro PDF Professional

Nitro PDF Professional, your PDF creation and editing product. Priced at $99, Nitro PDF Pro is the m... View full product details
Download free demo

PDF Download

PDF Download removes the pain of dealing with PDF files on the web and is one of the most popular Fi... View full product details
Download free demo

PDF Snake

Imposes (n-up), stamps watermarks, makes booklets, splits pages, and adds bates numbers. 30-day, unl... View full product details
Download free demo

PDF In-Depth Free Product Trials Ubiquitous PDF

Nitro PDF Professional

the perfect PDF product for business and enterprise, combining an extremely competitive price with a...

Download free demo

XpdfViewer

This ActiveX control (OCX) provides a PDF file viewer component, enabling developers to add PDF viewing...

Download free demo

Ubiquitous PDF: PDF eBooks-Library

If you are looking for a good store of PDF content, you could do a lot worse than visiting eBooks-Library.com...

September 03, 2009
Search Planet PDF
more searching options...







Download PDF Creator

Download The Best of Planet PDF volume 2
Planet PDF Newsletter
Most Popluar Articles
Features

Collating PDFs using JavaScript

Despite the numerous benefits, there can be potential issues with the conversion of paper documents into electronic archives. When scanning paper pages into PDF, it's possible to end up with the odd- and even-numbered pages in separate PDF files. It can be very time-consuming to collate them manually, but there is an easier way. Sean Stewart explains.

Featured Product

BCL easyPDF SDK

BCL easyPDF SDK is a set of PDF Programming Libraries designed specifically to help Software Developers / Programmers build and deploy enterprise class PDF applications for corporate wide PDF...

Platinum Sponsor
Create & Edit PDF - Nitro PDF Software

ARTS PDF

Silver Sponsors

PDF-Tools enfocus

QuickPDF: The Unrivaled PDF Developer Toolkit