I have a .pdf with 120 certificates, each page is a certificate and the only difference is the name of the participant.
I also have a .csv with the name and e-mail (I will also try to send by e-mail with R later).
How can I split each certificate (page) and save in a new .pdf with the participant name?
I saw functions like
library(pdftools), but how can I identify the page number by some text?
# extract some pages pdf_subset('https://cran.r-project.org/doc/manuals/r-release/R-intro.pdf', pages = 1:3, output = "subset.pdf")
Example of .pdf (sorry, it is in portuguese)
in the .csv I have the column name
name,email Prof. Dr. Thiado Souza,email@example.com Prof. Dr. Marcelo José,firstname.lastname@example.org Ricado Augusto,email@example.com Carlos José,firstname.lastname@example.org