[XeTeX] Ruby Annotation using XeTex? (and the convert problem)

Ross Moore ross at ics.mq.edu.au
Mon Jul 24 05:18:06 CEST 2006


Hi Pektiong,

On 24/07/2006, at 12:42 PM, Pektiong Tân wrote:

> Hi JK,

> Now I have encounter another problem, I would like to convert the PDF
> generated by xetex (CJK+Latin) into PNG or BMP,
> so I tried "convert" on my Mac OS X. It gives me some error message
> and fails to generate PNG file. I have tried to use

I also hit problems using  convert .
Now I just use Ghostscript directly.
Here's what I wrote on the MacOS X TeX list:

     Do the conversions directly with Ghostscript;
      e.g.
        gs-noX11 -q -dNOPAUSE -dBATCH -sDEVICE=png16m -r72 - 
dTextAlphaBits=4 -sOutputFile=slide.png slide.pdf

       converts  slide.pdf  to  slide.png  with a resolution of 72dpi  
and colour-space
       for 16 million colours. It also anti-aliases any text that is  
in the image.

     For pdfTeX-typeset material this does an OK job, especially if  
it's mainly
     a monochrome image.
     For web-pages however, it's even better to use  -r144 and setup  
the <IMG> tag
     to show the .png at exactly half its natural height and width.

It shouldn't matter whether you use the (X11-enabled)  gs  command
instead of  gs-noX11 (if you don't have this variant).

> convert to convert other PDF generated by the latex I have on my Mac
> and it works. Attached is the error message, I would like
> to know if there is a way to fix this or I should use other program
> to convert PDF into PNG.
>
> Cheers
> pektiong


Hope this helps,

	Ross

------------------------------------------------------------------------
Ross Moore                                         ross at maths.mq.edu.au
Mathematics Department                             office: E7A-419
Macquarie University                               tel: +61 +2 9850 8955
Sydney, Australia  2109                            fax: +61 +2 9850 8114
------------------------------------------------------------------------




More information about the XeTeX mailing list