【问题标题】:pdftools package in r - error: Invalid Font Weightr 中的 pdftools 包 - 错误:无效的字体粗细
【发布时间】:2016-09-22 04:21:52
【问题描述】:

我收到以下错误,是否有人对 R 中的 Invalid Font Error 有任何解决方案:

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

你能帮帮我吗?

【问题讨论】:

    标签: r pdftotext


    【解决方案1】:

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

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

    【讨论】:

    • 感谢您的回复.. 另外只是想检查一下 pdftools 包是否能够排除少数文件以防它们没有打开示例 - sedar.com/…
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-01-20
    • 2013-12-29
    • 1970-01-01
    • 1970-01-01
    • 2016-06-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多