We dealt with this exactly... it has to do with the .25" unprintable area on laser printers.
Look at the parameters on CRTPRTF in the DDS. This is what works for our particular case
I "think" the issue was related to FRONTMGN - make it (0 0). You may have to move your boxes and such, but this got the printed output to look the same as the PDF output (download via ACS or OVRPRTF)
FILE(ASTHHOBJ/INVOICE)
DEVTYPE(*AFPDS)
PAGESIZE(66 135)
CPI(12)
FRONTMGN(0 0)
OVRFLW(66)
OUTQ(*DEV)
LVLCHK(*NO)
HTH,
Greg
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of DEnglander--- via MIDRANGE-L
Sent: Thursday, January 4, 2024 6:10 PM
To: midrange-l@xxxxxxxxxxxxxxxxxx
Cc: DEnglander@xxxxxxxxxxxxxxx
Subject: [EXTERNAL] Overlays and PDFs
I have an RPG program that is creating a spool file with an Overlay. The overlay is basically boxes to make sections on the page. There is one format in the PRTF with BOX and POSITION keywords, which appears in the page footer area.
When the program finishes, I release the spool file to a network attached laser printer and it prints with the boxes and characters aligned.
When I convert it to a PDF and save it to the IFS via CPYSPLF and
WSCST(*PDF) option, I do get a PDF, but the boxes and characters are not in alignment anymore. It appears that the characters are too high by one line and about 4 positions to the right too far.
The PRTF is compiled with these parameters: DEVTYPE(*AFPDS) LPI(7.5)
CPI(10) OVRFLW(66). The OVRPRTF in the CL also specifies the Overlay and PAGRTT parameters.
Has anyone else experienced this? Our development system is on V7R4 with fairly recent PTFs.
Thank you,
Doug
"CONFIDENTIALITY NOTICE: This e-mail transmission (and/or the attachments accompanying it) contain confidential information belonging to the sender. The information is intended only for the use of the intended recipient. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of the information is strictly prohibited. Any unauthorized interception of this transmission is illegal under the law. If you have received this transmission in error, please promptly notify the sender by reply e-mail, and then destroy all copies of the transmission."
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.
[CAUTION! This email originated outside of the organization. Please do not open attachments or click links from an unknown or suspicious origin.]
As an Amazon Associate we earn from qualifying purchases.