Page 1 of 1

PDF to * Convert

Posted: 2014-11-19T08:01:53-07:00
by idranul
Topic to "how to" with PDF source files.

PDF to PNG convertion

Posted: 2014-11-19T08:27:58-07:00
by idranul
I created an online solution to compare 2 PDF files.
Why? Cause no software or site offer this solution.
The idea is simple: user uploads two pdf files, server convert each pdf to PNG and browser, with CSS, overshow the images.

But I have a problem: while using Adobe to view pdf files, it´s possible to change lines width with the keyboard combination CTRL+5. With this view condition it´s possible to see the image details. But, when I convert PDF to PNG files the lines width´s became thick.

Using the following exec() php command server creates PNG file with transparency:
exec("convert -density 400 \"$fA\" -colorspace gray -fuzz 2% -transparent white +level-colors blue, \"$fC\"");

Follows images to you understand my problem and what I desire to solve:

Img A: opened pdf with Adobe before CTRL+5 command
Image

Img B: opened pdf with Adobe after CTRL+5 command
Image

Img C: how the image is showed on browser after convertion (it´s using black background)
Image

So, I need the image showing to user became like B after convertion of ImageImagick. Is it possible?

Thanks!

Re: PDF to * Convert

Posted: 2014-11-19T09:45:16-07:00
by fmw42
I am moving this to the correct User's forum.