TikZ-PGF – Exporting TikZ as Image File in LaTeX

exportgraphicstikz-pgf

I have created a tikz picture as a standalone.

Can I export the tex file as an image instead of as a pdf?

Best Answer

I achieved the best results with pdftoppm, the anti-aliasing is much better than imagemagicks convert.

Just do:

$ pdftoppm -png -r <dpi> document.pdf > document.png

I usually use 300 or 600 dpi.

pdftoppm comes with poppler (package poppler-utils on Ubuntu).

Related Question