Issue with fonts removing the white background

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
eliasml
Posts: 1
Joined: 2015-11-04T08:45:18-07:00
Authentication code: 1151

Issue with fonts removing the white background

Post by eliasml »

Good Afternoon!!

I have a problem with the next command line:

Code: Select all

convert -transparent white -density 300 -quality 90 original.pdf output.pdf
This generate a pdf without background but the fonts are not the same that the original document. I have specified the font in the next way:

Code: Select all

convert -transparent white -density 300 -quality 90 -font Arial original.pdf output.pdf
But I have the same result.

Could somebody help me please?

Thanks in advance!!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Issue with fonts removing the white background

Post by fmw42 »

The font set that was used in your original PDF is probably not on your system. That may be why the font is changed. Also IM is not a good vector processor. It convert vector data into raster images and cannot convert back to vectors. So your output PDF will be a raster images enclosed in a vector shell.

Also -quality probably does nothing for PDF files. The density is what controls the PDF quality/resolution
Post Reply