I have a program that sends raw print data through samba to typically PCL compatible printers. The program is written so basic PCL commands control how it prints.
When sending it to the printer it prints out correctly. However, I know need to be able to take this stream and convert it to a pdf file. I know this can be done but have not been able to find a good explanation as to how to do it.
I know that it would require a CUPS filter but am totally lost on how to modify it to take the raw stream sent to a queue, reroute it to pcl2pdf, then save it to a file.
Any guidance much appreciate. I have only basic sysadmin knowledge as this particular program is written in mvbasic ran by a Rocket D3 system on CentOS 6.6