You can select specific pages in your PDF file by using the concatenate c() function like this:
c()
library(pdftools) selected_pages <- pdf_text("my_file.pdf")[c(10:16)]