When you need to stamp PDF by current date and time for archiving from script, maybe you can have a free trial of software VeryPDF PDF Stamp Command Line. By the command line version, you can write some bat file to process thousands of PDF files automatically and systemly. In the following part, I will show you how to stamp PDF by current date and time through command line.
Step 1. Download PDF Stamp Command Line
- As it is command line version software, you do not need to install it. Once the downloading finishes, please unzip it and then you can find elements in it.
- Before using, please read readme.txt carefully and then find pdfstamp.exe in example sub folder.
Step 2. Stamp PDF by current data and time
Usage: [<-AT> <string> [-Pn] [-MLRn] [-MTBn] [-Rn] [-L]
[-U <url>]/[-GO <page no.>]/[-OP <file>]/[-GR <file> <page no.>]
[-Cn] [-H] [-FNn/-FT <name>] [-FSn] [-ML/-MR/-MC] ]
-
When you need to stamp PDF by current data and times, please refer to the following command line templates. In this command line, I will also add text stamp 2003 verypdf.com Inc. as logo at the right top corner. And add the page number at the right bottom corner.
pdfstamp -PDF "example.pdf" -o "1.pdf" -AT "\d\n\t - (\f)" -fs10 -p7 -c255 -mlr50 -mtb-30 -AT "Page \p of \c " -fs10 -p5 -c255 -mlr-50 -mtb-30 -AT "2003 verypdf.com Inc.\n\F" -p3 -mlr-30 -mtb30 -fs10 -fn300 –c2666666
First, please specify PDF needed stamping by parameter –PDF and output PDF by -o. Then specify the text stamp style and content(note time and date stamp are kind of text stamp) -AT "\d\n\t - (\f)" -fs10 -p7 -c255 -mlr50 -mtb-30 leading by parameter –AT. By this same way to add another text stamp like -AT "2003 verypdf.com Inc.\n\F" -p3 -mlr-30 -mtb30 -fs10 -fn300 –c2666666, here you can control stamp color, size and style.
Second, when you need to add page number, you can refer to this command -AT "Page \p of \c " -fs10 -p5 -c255 -mlr-50 -mtb-30 (this also belongs to text stamp).
Now let us check the main parameters detail information:
-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.
-AT:String is the content of the stamp that you will create. In your stamp the text to be stamped must be enclosed in quotation mark, as with all other parameters in the stamp content. - If you need to know more value information used in the above command line, please check them in user manual. Now let us check stamp effect from the following snapshot.
- From the snapshot you can know that all the stamps have been stamped successfully. The position, style, size, color of those stamps can be adjusted casually.
During the using, if you have any question, please contact us as soon as possible. Please note if you use the trial vision, there will be watermark on output and it only can process 100 PDF files then it will stop working. When you register it, you can use it forever.