[R] Adding page numbers to existing PDFs

Gabor Grothendieck ggrothend|eck @end|ng |rom gm@||@com
Fri Oct 21 21:11:46 CEST 2022

Create a pdf using latex that has only page numbers and then
superimpose that with your pdf using the free utility pdftk.  The
animation R package has an interface to pdftk. Google to locate
pdftk and again to locate instructions.

There are also freeware GUI Windows programs  that are easy
to use.  This has nothing to do with R.  The one I have used is
A-PDF Number.

On Fri, Oct 21, 2022 at 1:49 PM Dennis Fisher <fisher using plessthan.com> wrote:
> R 4.2.1
> OS X
> Colleagues
> 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
> Dennis Fisher MD
> P < (The "P Less Than" Company)
> Phone / Fax: 1-866-PLessThan (1-866-753-7784)
> www.PLessThan.com
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com

More information about the R-help mailing list