In this article, I will show you how to add new layer to PDF either by image layer or text layer which can be hidden casually. I use the tool VeryPDF PDF Stamp Command Line, which is an professional application to stamp PDF through command line. However, if you would like to use GUI version, there is also one available for you.
- Please download this Window application to your computer then unzip it. The executable file is kept in subfolder example.
- Also in the example folder, there are many bat files which allow you check the stamping effect by simply clicking.
Step 2. Add Layer to PDF
- When you use this software, please pay more attention to the syntax as it is a little complicated for its powerful functions.
[<-PDF> <file> [-O <file>] ]
[<-AT> <string> [-Pn] [-MLRn] [-MTBn] [-Rn] [-L]—>those parameters are for stamping text stamp
[<-AI> <string> [-Pn] [-MLRn] [-MTBn] [-Rn] [-L]—> those parameters are for stamping image stamp
[<-newlayer> <layer name>]—>this parameter is for specifying layer name
Please check more detail information on our website.
- When you need to
pdfstamp.exe -newlayer "VeryPDF New Layer" -PDF "example.pdf" -o "newlayer.pdf" -AT "VeryPDF New\nLayer Test" -FT "Arial" -P9 -FS100 -opacity50 -R45 -C#0000FF -AI logo.jpg -opacity80 -P2 -AL -LW30 -opacity30 -LINEEX 100,100,200,200
When you to PDF, please call this software first, then input parameter –layer and specify layer name. Specify the input output and output PDF file path. When you need to add text layer, please use parameter –AT and its values. When you need to add image layer, please use parameter –AI and its values.
-newlayer: specify layer name
-PDF:specify the input PDF file path
-O:specify output layer file path
-AT: this parameter is used to specify text layer
-FT:Set Text font name, default is Times-Roman, you only can use one of them in one time
-P9: Stamps on the Center of the page
to PDF, please refer to the following command line template.
-FS100:Set the font size as 100 point, default is 16 point
-opacity:this parameter can help you control opacity of layers.
-R45: this parameter can help you rotate the layer as 45 degree
-C#0000FF: this parameter can help you set the layer color
-AI: this parameter is for adding image stamp
Now let us check the effect of adding layers from the following snapshot.
The layer in PDF can be hidden or shown easily. By this method, you can add layer to PDF easily. During the using, if you have any question, please contact us as soon as possible.