PDF error: May not be a PDF file (continuing anyway)

Tags: #<Tag:0x00007fbcac8dc9b0>

Hello,

I am using pdftools package to read pdf files and extract data, it works fine in local machine, but when I deploy the code to other machine it displays below errors.

PDF error: May not be a PDF file (continuing anyway)
PDF error: Couldn’t find trailer dictionary
PDF error: Couldn’t find trailer dictionary
PDF error: Couldn’t read xref table

Anything to do with acrobat adobe reader?
Which version of acrobat adobe reader is required for pdftools ? In local machine it’s 2019.021.20061
Other machine, it had 6.0.

Above errors are because of lower version? or any other dependent packages are required?

Thanks
Prabhakar

2 Likes

Jeroen any thoughts? @jeroenooms

@Prabhakar can you please include:

  • example code with example pdf files so we can reproduce your problem.
  • sessionInfo() from the machine where you get this error.

pdftools is not related to acrobat reader in any way. It sounds more like a bug in your code which causes you to read a wrong file.

1 Like