Truncated JPG with PDF convert
Posted: 2011-05-02T09:04:49-07:00
Hello all,
I'm experiencing a weird problem with some PDF.
I use Imagick thanks to : echo exec (“convert test.pdf test.jpg”).
That works very well, except with some pdf.
Some images created with pdf thanks to convert, seem being truncated (it generally misses the top of the document).
After some research, I noticed that the problems come from pdf “malformed”.
Indeed, when we look at the pdf (zoom 100%), this one is not visible completely (whereas it takes only one page) and this is what we get when I convert that PDF. (I hope to be clear in my explanations)
So, the result is a jpg which show 80% of the pdf document.
I used some resize tools with convert but that does not works :/
BTW thanks for your help
PS : I'm sorry for my English skill, I'm french :/
I'm experiencing a weird problem with some PDF.
I use Imagick thanks to : echo exec (“convert test.pdf test.jpg”).
That works very well, except with some pdf.
Some images created with pdf thanks to convert, seem being truncated (it generally misses the top of the document).
After some research, I noticed that the problems come from pdf “malformed”.
Indeed, when we look at the pdf (zoom 100%), this one is not visible completely (whereas it takes only one page) and this is what we get when I convert that PDF. (I hope to be clear in my explanations)
So, the result is a jpg which show 80% of the pdf document.
I used some resize tools with convert but that does not works :/
BTW thanks for your help
PS : I'm sorry for my English skill, I'm french :/