PxPlus User Forum

Twitter Twitter Twitter

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - GlenWill

Pages: [1]
1
Language / Re: Link File for PDF
« on: April 19, 2022, 03:39:07 PM »
Thank you.  I was able to get it to print a PDF by removing all options after the filename:
[Pvxdev]*PDF*;FILE=/home/glen/pvxdata/TestPDF.pdf;

...and then padding out the file to 256 bytes.

Unfortunately, that means I can't specify options past position 69, since that's where the driver name is supposed to start.  That means I can't use most of the *PDF* options. I'm trying to see if I can set what I need using a driver file. I was able to get a driver file recognized. 

Any hints on this?  Is there a way to override the position 69 restriction so I can specify more *PDF* options?

Thanks,
Glen

2
Language / Link File for PDF
« on: April 19, 2022, 02:33:55 PM »
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

Pages: [1]