# Deactivating Anti-Aliasing when typesetting QR-Code

Using the following LaTeX-Code:

\documentclass[a4paper]{article}

\usepackage[pdf]{pstricks}
\usepackage{pst-barcode}

\begin{document}
\begin{pspicture}(0.7in,0.7in)
\psbarcode{01234567890}{eclevel=L}{qrcode}
\end{pspicture}
\end{document}


and pdflatex with "shell-escape" option

pdflatex -shell-escape QRCode.tex


a PDF containing the QR-Code is created. However, the QR-Code is anti-aliased. How can I turn off anti-aliasing?

I am using MacTeX (TeX-Live 2010) on Mac OS X 10.6

-
Welcome to TeX.sx! You don't have to sign with your name since it automatically appears in the lower right corner of your post. –  Martin Scharrer Jun 27 '11 at 17:43
AFAIK anti-aliasing is a feature of the PDF viewer and not influenced by LaTeX. You need to manually switch it off in your viewer. See also the related post My pixel perfect picture gets blurry when compiled in LaTeX, which is about images which look blurry. –  Martin Scharrer Jun 27 '11 at 17:48
Another question is why a programmatically generated image is embedded in raster, not vector, format. –  Andrey Vihrov Jul 24 '11 at 12:42