PDF to * Convert
PDF to * Convert
Topic to "how to" with PDF source files.
PDF to PNG convertion
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

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

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

So, I need the image showing to user became like B after convertion of ImageImagick. Is it possible?
Thanks!
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

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

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

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