465 pts.
 CVT2PDF
In the CVT2PDF in RPGLE is there a way to change the font output? It appears to be Courier and I have Customers that say when they print out the PDF I send them via email that it doesn't appear very well.

Software/Hardware used:
ASKED: May 30, 2008  9:06 PM
UPDATED: June 9, 2008  4:14 PM

Answer Wiki:
Hello, You should be able to do a OVRPRTF prior to sending the file. TPinky
Last Wiki Answer Submitted:  June 9, 2008  4:14 pm  by  Tpinky   4,165 pts.
All Answer Wiki Contributors:  Tpinky   4,165 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Not a clue..

You’ll probably need to change something the the “PDFHeader” proceedure in maybe the “fonts object” but this is a wild guess on my part.

You could look up the PDF reference info
http://www.adobe.com/devnet/pdf/pdf_reference.html

Regards
Mike

 2,725 pts.

 

OK, I have a clue.. maybe…

Down near the end of te program, there is a SELEC structure that determines the font size to use based on the CPI settings in the original spooled file. The CPI setting is retrieved in the calling CL using a call to QUSRSPLA and passed into the RPGLE program as part of a parameter.

So, you could monkey around with the code in the SELEC or change the value of “siCPI” and see what happens with the resulting font size.

I think you will want to keep the default Courier font as it is a monospaced font and well suited to printing reports that have columns of data.

Regards
Mike

 2,725 pts.