Full template
- Input
- {filename} - p. {page}/{total}, arquivo Contrato.pdf, página 2 de 9
- Expected output
- Contrato - p. 2/9
The .pdf is stripped from the name.
add header and footer to pdf
Switch on Header or Footer and write in each zone. The variables in braces are replaced page by page: {page}, {total}, {date} and {filename}.
The .pdf is stripped from the name.
The four variables accept any mix of capitals.
Only the four known variables are replaced.
Inserted text is not interpreted again.
The five formats, in the picker's order.
Turn on Skip the first page. The cover stays unnumbered and the second page gets the start number (1 by default). The total "of N" follows: in a 10-page PDF, page 2 comes out as "Page 1 of 9" and page 10 as "Page 9 of 9". If you would rather have the second page show "2", set the start number to 2; the total becomes 10.
It is always the page number in the file, from 1 to the total. To count from the second page, with a start number of your own, use the Page number layer.
Yes, they are separate layers, each with its three zones, but with the same font, size, color and margin rules inside each layer.
Accents for Portuguese and English, yes (the WinAnsi set of the PDF standard fonts). Emoji and letters from other alphabets become a question mark, and the preview already shows the swap.
All processing happens in your browser: the PDF and the logo are never sent to a server. Closing the tab discards the open document.