Belval / pdf2image

A python module that wraps the pdftoppm utility to convert PDF to PIL Image object
MIT License
1.66k stars 195 forks source link

DIfferent results on different machines #243

Open Grigor355 opened 2 years ago

Grigor355 commented 2 years ago

PDF2Image produces different results on different machines. Both machines show the same result for the following pdffonts commands

Screen Shot 2022-09-22 at 22 10 47 Screen Shot 2022-09-22 at 22 12 58

Q1. Why are the first and last fonts not displayed for substituion? Q2. One of machines is Ubuntu 18.04 with poppler-utils version 0.62.0 , the other is Debian Buster with poppler-utils version 0.72.0 (both are the latest versions). Can this be the reason?

pdf2image version on both - 1.16.0

TheSeriousProgrammer commented 2 years ago

I think this is because of poppler-utils binary being different in different machines, I got completely bizare results in different systems

(Image cropped for privacy reasons)

This one in AMI linux test1

And this one in Ubuntu 18.04 WSL test2

I guess this should be reported to poppler-utils repo

Belval commented 2 years ago

Could this be caused by missing fonts on the AL machine? I seem to recall there were some missing fonts. What's the output of pdffonts?

zekriHichem commented 1 year ago

see https://github.com/Belval/pdf2image/issues/260