I believe you have to adjust the page size something like below.
PAGESIZE(66 85)
FRONTMGN(.2 .3)
OVRFLW(66)
PAGRTT(0)
I sometimes had to adjust the margin as above or I could lose part of the report on the top and left - probably depends how close to the edge the print was. I see some of my ovrprtf also LPI and CPI but not all. If I remember correctly, some of them took some tinkering to get them to work properly.
Scott Mildenberger | Software Developer | Washington Corporations | 101 International Drive | Missoula, MT 59808 | Office: (406) 523-1536 | www.washcorp.com
-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Greg Wilburn
Sent: Wednesday, September 18, 2019 3:21 PM
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: OVRPRTF to PDF
I have several older reports where the print file is AFPDS...
I've been using an old method for a while to create PDFs and have been slowly moving over to using
OVRPRTF FILE(<printfile>) DEVTYPE(*AFPDS) TOSTMF(&STMF) WSCST(*PDF)
This works fantastic - the PDFs are much smaller now.
However, some of the reports (when printed to a printer) are landscape. The PDF version looks fine on the screen, but if you attempt to print from Acrobat Reader the file is Portrait (cutting off the right-hand side).
I tried several options on the OVRPRTF command with no luck. Rotating the page 90 degrees is not the answer (its rotated on screen)
Anyone have experience with this?
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com
This email has been scanned by Washington Corporations using Message Labs Spam Filtering Technology. If this e-mail is SPAM that you no longer want to receive, please refer to the Spam or Junk Email Handling Process (
https://washcorp.service-now.com/kb_view.do?sysparm_article=KB0011399). If you are experiencing any other e-mail problems, please call the IT Service Center at 855-WC-IT-NOW or x1212 from any office phone.
As an Amazon Associate we earn from qualifying purchases.