ropensci / pdftools

Text Extraction, Rendering and Converting of PDF Documents
https://docs.ropensci.org/pdftools
Other
513 stars 69 forks source link

PDF error: Gen inside xref table too large (bigger than INT_MAX) #131

Closed chilatticefi closed 4 months ago

chilatticefi commented 4 months ago

It happened when I run it on docker container (EC2 ubuntu)

Screenshot 2024-04-18 at 7 43 28 PM

May because pdf file are too big, but I run the same code and file in local, it is totally fine. How can I fix this? Thank you..!

chilatticefi commented 4 months ago

I solved this problem. Originally, RUN apt-get install -y poppler-utils in the Dockerfile.

change it to

RUN add-apt-repository -y ppa:cran/poppler
RUN apt-get update
RUN apt-get install -y libpoppler-cpp-dev

It works well now. Thanks.