I am using TexShop on a Mac, which handles all of the rendering for me, but have been asked by a colleague to find the command(s) that would render the LaTex document as a PNG instead of PDF.
By way of example, on linux it would be
$ pdflatex file.tex
$ gs -sDEVICE=pnggray -sOutputFile=card.png -dNOPAUSE -r1200 file.pdf quit.ps
(Note: the -r1200 will generate an image 4x larger than used, since it will be scaled down to produce an anti-aliased image).
Thank you & kind regards.
convert. – Marco Daniel Jun 11 '13 at 16:10quit.pscome from in the command you show? Is this command supposed to convert a PDF file to PNG image? So a 100 pages pdf file will be converted to one png image? becuase when I just tried it on 16 pages pdf file:gs -sDEVICE=pnggray -sOutputFile=card.png -dNOPAUSE -r1200 index.pdfthen when it is done, I get theGS>prompt. Now I typedquitand then looked atcard.pngbut it only shows the first page of the pdf file only. How is this supposed to work? – Nasser Jun 11 '13 at 17:00sipsandconvert. – Pouya Jun 11 '13 at 18:32