We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Designing a label in pdf and printing to a Zebra thermal printer

I am developing an application that creates a label with text and barcode using PDF API and printing through PDFViewer API.  However, I cannot seem to correctly print the PDF label on a Zebra thermal printer.  Below are the actual PDF label sample, print output using Acrobat Reader, and print output through PDFViewer.  

PDF label output

Acrobat reader print output

PDFViewer print output

As you can see, the printing is almost OK with Acrobat reader but rotated when printed using PDFViewer.  Also, I cannot seem to silently print through code, whether through a stream or by saving to PDF first.  I was able to print only when pdf file was opened in PDFViewer.  Below is my code for printing the label, the commented lines are for the other printing options (through a stream).

private void PrintBarcode()