1

I have a host-based printer (HP Deskjet D2460) and have some printer language files (pcl codes) that I would like to print out. I saw that in cups there are some filters like rastertopcl, etc. which converts a raster format, for cups that is postscript into pcl... How to do the inverse?

If it is not possible, how to convert pcl to ps or pdf? A good little executable or python/perl script (interested in free solutions)

  • Can't you just pipe the files, as is, to the printer, if all you want to do is "like to print out" the files? – Anthon Sep 1 '14 at 11:54
  • I was thinking about cat filename > /dev/yourprintersusb – Anthon Sep 1 '14 at 12:55
  • I see, but the printer does not understand PCL codes, so it can't print it by himself. It does not work if I give it lp -o raw filename. – obeliksz Sep 2 '14 at 5:58
  • I did not check against the version, I assumed that it being an HP printer it would understand about HP's PCL language. I don't know about any free pcl2pdf convertors for Linux, but if this is a one-off and you access to a Windows box, you could at PCLReader – Anthon Sep 2 '14 at 9:46
  • 1
    Seems there is something for Linux as well: openpcl, unfortunately it is in Java – Anthon Sep 2 '14 at 9:52
0

Recent versions of ghostscript include a pcl interpreter, and can work with the full range of ghostscript output formats including pdf, ps, image formats like Tiff and Jpeg, and all their known printers. You may need to compile from source. I have no Idea if this will work directly with your printer or if additional intermediate steps would be needed. As a worst case, since That printer will support printing photos from sd cards, you can place your images there after converting to a supported format, unplugging the usb cable and printing from the printer screen.

  • If I understand correctly the affero license the ghostscript is not free for all, it has to be bought if used in commercial application... Intrestingly I saw in Pdf Creator that they are using ghostscript and pdf creator is used in many commercial environments. – obeliksz Apr 7 '15 at 5:30
  • the affero license is a gpl3 variant, the Artifex Commercial License is a paid licence, both ghostscript and ghostpcl are available under each licence. – hildred Apr 9 '15 at 22:08
  • Thanks. To supplement this answer, the gpl3 variant can be used in commercial programs as it is stated here: stackoverflow.com/questions/2280742/… – obeliksz Apr 10 '15 at 19:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.