title: Trying to scrape a PDF in R, my code will only scrape 6 out of 9 pages and i'm not sure why, am I missing something in my code?
body: <p>Im trying to scrape a couple PDFs in R, PDF1 has 9 pages and PDF2 has 12 pages. When I run the code below it scrapes both PDFs but only up to page 6 and nothing after that. Is there a reason for this? Something missing in my code?</p>
  
  <pre><code>library(tm)
  read &lt;- readPDF(engine = "xpdf", control = list(text = "-layout")) 
  document &lt;- Corpus(URISource("C:\\Users\\Goku\\Documents\\Python Scripts\\PDF Scraping\\123.pdf"), readerControl = list(reader = read))
  doc &lt;- content(document[[1]])
  head(doc)
  </code></pre>
  
  <p>You can find the pdf at: <a href="https://www.scribd.com/document/396797318/123" rel="nofollow noreferrer">https://www.scribd.com/document/396797318/123</a></p>