Skip to content

Issue using pdf_text #79

@OliverHamann1027

Description

@OliverHamann1027

Hello.

First thanks for such a greatful tool.

I have a strange issue using pdftools::pdf_text. The following error is displayed:
"PDF error (3490): Illegal character '{'
PDF error: xref num 367 not found but needed, try to reconstruct<0a>
"

This problem only seems to appear on Windows, not on MacOS.

afd_btw2017 <- "https://cdn.afd.tools/wp-content/uploads/sites/111/2017/08/AfD_Wahlprogramm_2017_A5-hoch.pdf"
afd_btw2017_local <- tempfile ()
download.file(url = afd_btw2017, destfile = afd_btw2017_local)

setwd(tempdir())
install.packages("pdftools")
library(pdftools)
pdftools::pdf_info(afd_btw2017_local)
sessionInfo()
R version 3.6.3 (2020-02-29)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18362)

pdftools version 0.73.0

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions