How to stamp PDF and control page range by command line?

Question:I want to place a text stamp (page number) on every page except the first page. That is, I want to number the pages from the 2nd page to the last page. How do I do this using the SR parameter? I am using software VeryPDF PDF Stamp Command Line. Thanks.

Answer: When stamp PDF by VeryPDF PDF Stamp Command Line and control page range, please refer to the following part. I will show detail steps and parameter related.

Step 1. Download PDF Stamp Command Line

  • If you need to know about this software, please visit its homepage. As it is command line version, when downloading finishes, there will be an zip file. Please unzip it and then you can check the elements in it and call this software in MS Dos Windows.
  • Software user manual is also included in the extracted package. If you need to check stamp effect, please run bat files in example folder.

Step 2. Stamp PDF by page number on every page except the first page

  • When you run the conversion, please refer to the usage and examples.
  • Usage:      [<-PDF> <file> [-O <file>] ]
    [<-PDFS> <dir> [-O <dir> ] [-A] ]
    [<-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] ]
    [<-SR> [-Sn] [-En]]
  • Please note adding page number is a kind of text stamp, so please refer to the rules of stamp text stamp on PDF.
  • When you need to stamp PDF by page number and control page range, please refer to the following command line templates.
    pdfstamp -PDF "example.pdf" -o "1.pdf"  -SR -S2 –E99999 -AT "Page \p of \c " -fs10 -p5 -c255 -mlr-50 -mtb-30    By this command line template, we can apply page number stamp at the second page to the end. Please use parameter -PDF to specify the input PDF file, use parameter –o to specify output PDF file path, use parameter -SR to specify stamping page range, use parameter –AT to lead text stamp of page number and parameters after him are for specify page number position, color, and style.
    Now let us check the stamp effect from the following snapshot.

input PDF and output stamped PDF

 

Now let us check the related parameters:
-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. Type texts exactly as you want it to appear.
\P±n Current page number±a—> specified value, Maybe "Page \p+1" equal "Page 4"
-SR:Pages to Stamp — Specify Start page and page count , default is from first page to maximum
-Sn (default is -S1): Start page number.
-En (default is maximum page)
E99999: this parameter can help you omit the first page.
-FSn (default is -FS16): Set the font size, default is 16 point, for example,e.g. -FS16

If you need to know more functions, please check details in help documents in extracted folder. By this above command line, you can stamp PDF by page number and control page range. The first page the PDF can be omitted. During the using, if you have any question, please contact us as soon as possible.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

This entry was posted in PDF Stamp and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!