VeryPDF PDF Stamp Command Line can be used to by various kinds of stamps like image stamp, text stamp and line stamp. And by the command line COM version, you can call it together with C#, VB .NET, J# via .NET, Java via JNI, MS Visual Basic, Borland Delphi, MS Office products such as Access and C++ via COM, C and C++ via native C. In the following part, I will show you how to by lines through command line.
Step 1. Download PDF Stamp Command Line
- When downloading finishes, there will be an zip file. Please unzip it then check the elements and usage in it.
- In the example folder, you can find pdfstamp.exe, please call it in MS Dos Windows.
Step 2. Stamp PDF by Lines
Usage:pdfstamp.exe[<-PDF> <file> [-O <file>] ][<-PDFS> <dir> [-O <dir> ] [-A] ][<-AL> [-Pn] [-MLRn] [-MTBn] [-Rn] [-L]
[-Cn] [-Wn/-Hn] [-LWn] ]
- When you need to by lines, please refer to the following command line templates.
pdfstamp.exe -pdf example.pdf -o stamp-line1.pdf -al -lineex 100,100,200,100-LW10 -C#FF0000
pdfstamp.exe -pdf example.pdf -o stamp-line2.pdf -AL -LW30 -opacity30 -LINEEX 100,100,200,200 -C#00FF00
By the first command line, you can add grey lines to PDF file at the top of PDF. By the second stamp, you can add orange color lines and control its opacity at 30%.
When you input the command line, please specify the input and output PDF file path, then input values leading by parameter –AL.
-PDF <input file>:Open an existing PDF file to stamp.
-O <output file>:Write output to a new file, the default is stamp on the input PDF file.
-Opacity (default is -opacity100):Specify the opacity for stamps, range from 0 to 100, this option will apply a transparent watermark into PDF file.
-AL:Create a Line Stamp.
-Cn (default is -C0):Specify the line color, range from 0x000000-0xFFFFFF, in decimal system, .e.g –C255.
-LWn(default is -LW1):Line Width..e.g -LW3
-LineEx (x1,y1,x2,y2):Draw a line from (x1,y1) to (x2,y2), eg, -LINEEX 100,100,200,200
This function is extremely good when you need to add background watermarks. Even if do the printing job, the watermark will be printed the same time. During stamping PDF by lines, you can control line width, height and position. When you need to stamp PDF by image or text, please check more examples in help document. During the using, if you have any question, please contact us as soon as possible.