Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi I wan't to create a jpeg and

Status
Not open for further replies.

magnusl

Programmer
Nov 25, 2003
1
SE
Hi

I wan't to create a jpeg and a pdf file from the same
postscript file. The pdf file looks as it should but
the jpeg file is in another font, why?


Example
<< /PageSize [595 842] >> setpagedevice
/A { /Arial-Bold findfont 300 scalefont setfont } def
A (Q) 200 300 moveto show
showpage

gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=1.pdf -c save pop -f 1.ps

gs -q -dNOPAUSE -dBATCH -sDEVICE=jpeg -sOutputFile=1.jpg -dJPEGQ=100 -dNOCACHE -dGraphicsAlphaBits=4 -dTextAlphaBits=4 1.ps


Thanks.
 
This really is a GhostScript interpreter question, rather than a PostScript language question!

Your PostScript looks fine.

I know that the newsgroup comp.lang.postscript has a lot of GhostScript afficianados, you might post a question there.

In regard to the JPEG format itself, there isn't such a thing as &quot;font&quot; support. Everything is rasterized; JPEGs don't contain fonts. So perhaps what you are getting is the best you can get out of GhostScript.

I've heard very good things about ImageMagick, for creating JPEGs out of various sources, including PDF.

Thomas D. Greer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top