I inherited support of an application written in PxPlus. It has a lot of reports built in, and they all use a common program to prompt for a printer to print to. The printer selection in turn is using Link Files to control which printer to send to.
For Example, if I run a report and select printer P3, there is a link file called P3 with this line in it:
[Pvxdev]| lpr -P Aficio-MP-301-2
This works great, and I've been able to replace physical printers with updated models, and update the link file to the new Unix printer name, and printing works fine.
I'd now like to designate one of the printers to send to a PDF file. I've been successful printing to a CUPS PDF printer I setup, using this line:
[Pvxdev]| lpr -P Cups-PDF -C "PDF_Print"
However, I don't have a lot of control on the fonts and other attributes. I have written some programs using *PDF*, so I thought I could create a link file that way, and print using *PDF*. I updated my P1 link file to this:
[Pvxdev]*PDF*;FILE=/home/glen/pvxdata/TestPDF.pdf;
But instead of printing to a PDF, my print output actually ends up written onto the P1 link file, appended after the above line. Does anyone know what I might be doing wrong? I've tried removing the "[Pvxdev]", but with the same result.
My intention if I can get this to work is to create a driver file and specify it in the link file, and set fonts and page size with mnemonics.
Thanks for any help.
Glen