pdf2image
pdf2image copied to clipboard
1 page missing/Blank image when converting from pdf to images
Describe the bug I was trying to convert a pdf to images using the module and one of the page is missing, getting a blank image.
Screenshots
For all the pages the font style and size looks like this :
For the page which is being skipped it looks like this :
essentially rest of the pages are typed and the error page is scanned.
Please tell me if I am missing any settings or attributes which can fix this.
Thank you for using the official bug report template. It helps.
Can you tell me what OS and function call were used to convert your PDF?
Also, I you can send me the actual PDF so I'd have a test case it would be great.
If you feel that your PDF is somewhat sensible (but obviously not confidential) you can send it at [email protected] instead of posting it publicly.
Thank you.
Thanks for your fast reply.
I am using windows, convert_from_path function. I will be sending you pdf via email, i will also try to run in it linux.
-Arpit.
Sorry i'm unable to send the pdf as it contains confidential information and when i tried to hide it, it changes the structure and then it is able to give the text instead of blank page.
-Arpit
No problem. I remember someone else having a similar problem and I think it was fixed by using cropbox=True
.
You should also try to convert it directly with the pdftoppm
and pdftocairo
executables.
Closing for inactivity. Feel free to reopen.
Closing for inactivity. Feel free to reopen.
No problem. I remember someone else having a similar problem and I think it was fixed by using
cropbox=True
.You should also try to convert it directly with the
pdftoppm
andpdftocairo
executables.
Unfortunately, I cannot understand how to convert my pdf directly with 'pdftopmm'. Can you elaborate it with an example?
Of course, (reopening)
To convert the image with pdftoppm, open a terminal (or cmd on Windows) and enter:
pdftoppm -r 200 -cropbox -jpeg in.pdf out
You should see at least one .jpeg file that you can open to see if the conversion was successful.
For all of the above to work, you need to have pdftoppm
in your PATH.