PDF to * Convert

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
idranul
Posts: 2
Joined: 2014-11-19T06:55:42-07:00
Authentication code: 6789

PDF to * Convert

Post by idranul »

Topic to "how to" with PDF source files.
idranul
Posts: 2
Joined: 2014-11-19T06:55:42-07:00
Authentication code: 6789

PDF to PNG convertion

Post 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!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PDF to * Convert

Post by fmw42 »

I am moving this to the correct User's forum.
Post Reply