Nope.
Just checked.
The printer file has the indds option, pointing to the data structure with
the indicators. And the printer file has the indara keyword at the file
level.
Printer DDS file specs (beginning)
A INDARA
A R HEADER
A 1'Reporting software''
A SKIPB(1)
A 53'Multi-File Audit Analysis'
A 114DATE(*YY)
A EDTCDE(Y)
A 125TIME
A EDTWRD(' : : 0')
A SPACEA(1)
A*---
Printer file spec in RPGLE program...
0017.00 fE071155310o e printer oflind(*in10)
indds(indicators)
0018.00 d IndicatorP s * inz(%addr(*in))
0019.00 dIndicators ds based(IndicatorP)
-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
tgarvey@xxxxxxxxxx
Sent: Thursday, April 3, 2025 2:14 PM
To: 'RPG programming on IBM i' <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: RE: print attributes in pdf document
I am guessing that the underline (or highlight or color) is being ignored
when the attribute is conditioned by an indicator.
I say this because the underline works on other fields that are not
conditioned.
But it occurs to me that maybe RPG is not passing the indicators using
INDARA.
-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Brian
Parkins
Sent: Thursday, April 3, 2025 1:56 PM
To: rpg400-l@xxxxxxxxxxxxxxxxxx
Subject: Re: print attributes in pdf document
Not exactly sure where you're confused, Thomas. Are you saying UNDERLINE
doesn't work for PDFs when it's conditioned on an indicator? (Has the
indicator been turned on in the program?) OR are you saying you haven't seen
UNDERLINE specified in any DDS Manual?
The DDS Manual (for Printer Files) states:
UNDERLINE (Underline) keyword in printer files You use this field-level
keyword to specify that the IBM i operating system underlines the field when
it is printed.
Specify UNDERLINE only if the printer supports underlining.
This keyword has no parameters.
Option indicators are valid for this keyword.
And an example from the same:
A FLD1 40 47SPACEA(2) UNDERLINE
A 30 FLD2 40A 47SPACEA(2) UNDERLINE
(Incidentally, there is no need to use CPYSPLF. The Printer File can produce
a PDF directly. See
DEVTYPE(*AFPDS)
TOSTMF('/home/...../PRINTOUT.pdf')
WSCST(*PDF)
on the CRTPRTF/OVRPRTF commands.)
Not sure if this helps you at all.
Brian.
On 03/04/2025 19:27, tgarvey@xxxxxxxxxx wrote:
Hi,
I've got an external print file, produced by an RPGLE program, that
includes various print attributes, like underline, highlight, and colors.
The print file is converted to a pdf document in the IFS (using the
cpysplf command on a server with 5770TS1 IBM Transform Services for i
installed).
It looks like the UNDERLINE, for example, is working, but only when
there is no indicator that would activate it.
I haven't seen that in any DDS manual.
Can anyone confirm or 'unconfuse' me?
Kind Regards,
Thomas Garvey
--
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@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
--
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@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
As an Amazon Associate we earn from qualifying purchases.