pdf2image icon indicating copy to clipboard operation
pdf2image copied to clipboard

convert_from_path returns a blank page to some pdf

Open rorivy opened this issue 4 years ago • 8 comments

When converting pdfs to image, I would sometimes get a blank page as a result. Interestingly, i encounter no problem with similar pdfs.

I have tried some solutions suggested in here like setting use_cropbox=True, updating poppler to 20.12.1 but I still get the same blank page.

I am currently running this on a mac OS.

rorivy avatar Jan 14 '21 08:01 rorivy

Same here.

duarteharris avatar Jan 21 '21 19:01 duarteharris

This issue has been raised a lot and I find it worrying but I still haven't been able to reproduce it on my side. Can you provide a PDF that returns a blank page?

Belval avatar Jan 22 '21 02:01 Belval

Hi, same issue here. Also I'm loosing layers in some cases when I convert from pdf to whatever image format.

ZivotSen avatar Feb 01 '21 23:02 ZivotSen

I'm not sure, but maybe it's the same that's been addressed here?

https://github.com/Belval/pdf2image/issues/107

duarteharris avatar Feb 02 '21 18:02 duarteharris

Same here !

Sylv-Lej avatar Jun 29 '21 10:06 Sylv-Lej

I am currently having the same issue on M1 MBA. I installed pdf2image and poppler using pip as described in the readme. I enclose the pdf I am using as an example. blankpage.pdf

jan-schaeffer avatar Feb 21 '22 15:02 jan-schaeffer

I am also facing the same issue with convert_from_path. I have tried the previously mentioned poppler-data and font solutions, but nothing works.

Issue: I am trying to convert an editable pdf into an image using convert_from_path. The library is not showing any warning or exception and as a result, it is returning an image with blank editable spaces (having the values in pdf).

Image: image

I have mailed you the pdf.

Thank you in advance!!

shanusharma06 avatar May 19 '23 09:05 shanusharma06