Placing a Text Stamp on the Last Page of a PDF with the -SR Parameter in VeryPDF PDF Stamp Command Line

If you need to place a text stamp on only the last page of a PDF but don't know how many pages the original PDF contains, the -SR parameter in VeryPDF's PDF Stamp Command Line tool can help you achieve this with ease.

The -SR parameter allows you to specify the range of pages where the stamp will be applied. In this case, the command below ensures that the text stamp will only be placed on the last page of the PDF, regardless of how many pages the document has.

Here’s how you can use the -SR parameter to place a stamp on the last page:

pdfstamp.exe -pdf test.pdf -o out.pdf -at VeryPDF -SR -S-3 -E-3

Explanation of the Command:
  • -pdf test.pdf: Specifies the input PDF file that you want to stamp (in this case, test.pdf).

  • -o out.pdf: Specifies the output file where the stamped PDF will be saved (in this case, out.pdf).
  • -at VeryPDF: Specifies the text to be stamped on the page. In this case, it’s the text VeryPDF, but you can replace it with whatever text you prefer.
  • -SR: This is the key parameter used to set the page range for stamping. By using -S-3 -E-3, you're specifying that the stamp should only be applied to the last page.
    • -S-3: This tells the tool to start at the 3rd page from the end, which in this case is the last page of the document.

    • -E-3: This tells the tool to end at the 3rd page from the end, ensuring that the text stamp is only applied to the last page.

Placing a Text Stamp on the Last Page of a PDF with the -SR Parameter in VeryPDF PDF Stamp Command Line

Why Use the -SR Parameter?

The -SR parameter is extremely useful when working with documents where the number of pages can vary. Instead of manually specifying a page number, which may not be consistent across different PDFs, this parameter dynamically stamps only the last page, regardless of the document’s length.

Download and Learn More

You can download the VeryPDF PDF Stamp Command Line tool and access detailed documentation from the VeryPDF PDF Stamp Command Line Guide.

By using the -SR parameter, you can efficiently and effectively add stamps to the last page of any PDF, streamlining your document management and processing workflow.

Related Posts