Comments (7)
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.
from pdf2image.
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.
from pdf2image.
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.
from pdf2image.
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
from pdf2image.
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.
from pdf2image.
Closing for inactivity. Feel free to reopen.
from pdf2image.
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?
from pdf2image.
Related Issues (20)
- pdf2image poppler error in Linux HOT 1
- convert_from_bytes has wrong argument name or docstring
- Missing characters like "Ε Δ ΔΎ δ»" when converting a fillable pdf form to image HOT 6
- Missing py.typed file HOT 4
- Wrong image converted HOT 2
- No source release on pypi for 1.16.3 HOT 1
- Inconsistent results between servers with the same code and PDF file HOT 2
- Problem converting from Image coordinates to PDF coordinates
- Invalid SOS parameters for sequential JPEG
- Adding conda poppler to PATH HOT 1
- Lossless conversion HOT 3
- weird CMYK and text at top of output image
- Missing optional arguments in pdfinfo_from_bytes and pdfinfo_from_path HOT 2
- `Page rot` metadata and `size` param interact incorrectly in convert_from_path() HOT 5
- When a pdf is converted to a picture, it takes up a very small part of the picture
- Add an option to start counter generator at index 0 HOT 1
- FileNotFoundError with poppler_path HOT 1
- Is there way to control rotation?
- Some missing words from converting PDF to Image
- OSS-Fuzz Integration HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdf2image.