[R] Adding page numbers to existing PDFs

Dennis Fisher ||@her @end|ng |rom p|e@@th@n@com
Fri Oct 21 19:45:45 CEST 2022

R 4.2.1


I have multipage PDF files that were created in R — the files do NOT have page numbers.  I would like to add page numbers after the fact, i.e., read a file into R, add margin text, then output as a PDF.
Can this be done in R (base R or a package)?  
It can be done in Python using reportlab.pdfgen — however, the file size increases prohibitively.


Dennis Fisher MD
P < (The "P Less Than" Company)
Phone / Fax: 1-866-PLessThan (1-866-753-7784)

More information about the R-help mailing list