Printing to PDF using CUPS

  1. Install CUPS-PDF based on your distro, you can download if from here.

  2. Go to http://localhost:631.

  3. If the page requested a username and password, just enter your root as username and password for your root.

  4. Go to Administration > Add Printer.

  5. In the Add Printer page, put a name for your virtual PDF printe, any name will do. Then click Continue.

  6. For the Device for a, you should select CUPS-PDF (Virtual PDF Driver). If it’s not there, then you haven’t executed Step 1 successfully.

[Read more]

Java Printing Fix for Linux

Apparently, there’s a bug in Java where people using newer version of CUPS cannot print (can’t even display the print dialog) due to a null pointer exception and this is actually a known bug. So, how do we fix this? For people who use Gnome, you can refer to this page.

[Read more]

Printing to Zebra S4M Using Java

Apparently there’re some codes scattered on the net telling people that you can print to a Zebra printer by sending ZPL II codes using PrintService. But the problem is, it’s not working, I don’t know why, maybe because of a different version of printer or model but I’m pretty sure the thing that came out from the printer are just ordinary texts not barcode which is what the code was supposed to output.

[Read more]