coherentgraphics / cpdf-binaries

PDF Command Line Tools binaries for Linux, Mac, Windows
GNU Affero General Public License v3.0
593 stars 42 forks source link

it's good tools,add page numbers,how can I set start number #39

Closed blackleexu closed 4 years ago

johnwhitington commented 5 years ago

To stamp numbers only on certain pages:

cpdf in.pdf 6-50 -add-text "%Page" -o out.pdf

To stamp numbers starting at a different number:

cpdf in.pdf -add-text "%Bates" -bates 20 -o out.pdf
blackleexu commented 5 years ago

@johnwhitington Thanks! It's worked for me.

blackleexu commented 5 years ago

@johnwhitington and another question,add page-num I need bottomright and diagonal style.My mother tongue is not English,sorry my poor English

johnwhitington commented 5 years ago

This combination is not possible in one command.

I suggest making a PDF file using -diagonal, then moving it using -shift, then combining with the original PDF using -stamp-on.