Please consider the following MWE, which shall place a QR code (pst-barcode package) at a fixed position on the page using the textpos package:
\documentclass{article}
\usepackage{pst-barcode}
\usepackage[absolute,showboxes]{textpos}
\setlength{\TPHorizModule}{1mm}
\setlength{\TPVertModule}{1mm}
\textblockorigin{0mm}{0mm}
\newcommand{\insertBarcode}{
\begin{pspicture}(1in,1in)
\psbarcode{Test}{}{qrcode}
\end{pspicture}
}
\begin{document}
\begin{textblock}{75}(80,50)
Here should be a QR code:\\
\insertBarcode\\
But there is none.
\end{textblock}
\vspace*{50mm}
W/o being placed in a \texttt{texblock} environment, the QR code will show up:\\
\insertBarcode
\end{document}
If this document is compiled with XeLaTeX (MikTeX), the QR code within the normal page content is displayed without any problems. But the one enclosed in the textblock environment won't show up.
I get the following warning:
MiKTeX GPL Ghostscript 9.00: Unrecoverable error, exit code 1
** WARNING ** Filtering file via command -->mgs.exe -q -dNOPAUSE -dBATCH -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dUseFlateCompression=true -sOutputFile="mik56F0.tmp" "mik56EF.tmp" -c quit<-- failed.
** WARNING ** Image format conversion for PSTricks failed.
** WARNING ** Interpreting special command pst: (ps:) failed.
** WARNING ** >> at page="1" position="(226.77, 618.307)" (in PDF)
** WARNING ** >> xxx "pst: tx@Dict begin STP newpath 0.8 SLW 0 setgray gsave 0. "
Using LaTeX -> dvi2ps -> ps2pdf, the QR code will show up as intended.
So my question is: Is it possible to place barcodes from the pst-barcode package within a textblock environment using XeLaTeX (MikTeX)?
I would appreciate any help.

pst-barcodepackage within atextblockenvironment. Again, thank you both. – saint Aug 2 '12 at 10:55