Hi,
I am trying to preview the text on the browser and will generate a document (pdf) destined to print so preview needs to be same as
the print.
Just wondering if there is any way to match the font-size (pixel perfect) on the web with imagemagick created image or pdf.
I need to get this exactly the same for design purpose. I've tried using exact size (e.g. 12pt) on the web and -pointsize 12 but somehow imagemagick created document is much smaller.
I'm new to this image magic world so any help will be much appreciated.
Regards,
Don.
font size
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: font size
with pdf as output, you need to specify the -density and -units to control the size of the output image (as dots per inch or dots per centimeter) as viewed on the browser. But the browser can change the size of a pdf to anything desired. So it is really just a matter of the quality produced by the -density.
see
http://www.imagemagick.org/script/comma ... 35#density
http://www.imagemagick.org/script/comma ... co35#units
http://www.imagemagick.org/Usage/formats/#pdf
see
http://www.imagemagick.org/script/comma ... 35#density
http://www.imagemagick.org/script/comma ... co35#units
http://www.imagemagick.org/Usage/formats/#pdf