pdftools package in r - error: Invalid Font Weight

pdftools package in r - error: Invalid Font Weight

我收到以下错误,有没有人对 R 中的无效字体错误有任何解决方案:

error: Invalid Font Weight
trying URL 'http://wolterskluwer.com/binaries/content/assets/wk/pdf/investors/annual-reports/wolters-kluwer_2015_sustainability_report.pdf'
Content type 'application/pdf;charset=UTF-8' length 1825508 bytes (1.7 MB)
downloaded 1.7 MB

你能帮帮我吗?

这意味着 PDF 有一些损坏的属性,但您可以安全地忽略这些警告。该功能仍然有效:

txt <- pdftools::pdf_text("http://wolterskluwer.com/binaries/content/assets/wk/pdf/investors/annual-reports/wolters-kluwer_2015_sustainability_report.pdf")
cat(txt)