× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Yes! That's true! I would ask Justin: When you said "the PDF files are
printed programmatically", do you mean a non-DDS-defined printer file? If
so, does it mean you are using the "O" form in your (probably old way of)
RPG program? That is another story then.

If DDS-defined printer file, can you give the source?

JS


El vie, 30 dic 2022 a las 12:41, Vern Hamberg via MIDRANGE-L (<
midrange-l@xxxxxxxxxxxxxxxxxx>) escribió:

Here is Justin's original post -
I have an *AFPDS printer file that's compiled with PAGESIZE(11 8.5 *UOM).
Unfortunately, the printer file uses the full page so when it's converted
to PDF there's clipping around the edge. The PDF files are printed
programmatically, so it's not a simple matter of specifying "Fit" in
Adobe.

Is there a way when generating the PDF to scale it down?
It seems there is more to this than meets the eye at first glance. I'm
curious what happens when the report is printed to an actual printer. Is
Host Print Transform involved? Or another transformation method?

I suggest he contact IBM support for help - they're paid to take the
time to ask the right questions.

Regards
Vern

On 12/30/2022 12:29 PM, Javier Sanchez wrote:
You are absolutely right. That is why I said it is not easy. You have
to
find your own road to go when producing PDF output.

JS


El vie, 30 dic 2022 a las 12:14, Vern Hamberg via MIDRANGE-L (<
midrange-l@xxxxxxxxxxxxxxxxxx>) escribió:

Be very careful with PAGRTT(*COR) - often it will take a portrait page
and turn it 90 degrees to landscape and CPI 15 or 17 or whatever. This
is most likely not what is the desired way to make a PDF conversion
print on the page. There is a good discussion at


https://www.ibm.com/support/pages/explanation-computer-output-reduction-cor-and-options-circumvent-it
- it does not seem to say what to do about PDF conversion, however, so
much as I could determine.

Cheers
Vern

On 12/30/2022 11:44 AM, Javier Sanchez wrote:
I was quickly looking at the CRTPRTF command parameter descriptions.
For
example, if you hit F1 and have your cursor on the PAGESIZE parameter,
section "Lines per page", it clearly gives an explanation like:

1. If you specify a unit of measure *INCH, then the lines per page
should be some decimal number expressed in 0.001 units of inches
starting
from 0.001 thru 255.000, and the width ranges from 0.001 thru 378.000.

2. If you want a width of 8.5 inches and 11.0 inches length with 10
CPI,
you should specify PAGESIZE(66 85) and page rotation of 0 = PAGRTT(0).
3. If you want to have a landscape of that same page size, then you
should
specify PAGESIZE(51 110) PAGRTT(90).
3. If your printing output does not fit, you should try PAGRTT(*COR) to
enable the automatic reduction.
4. You still have to deal with all margins too.
5. Trial and error is your best bet.

HTH.

Javier.


El vie, 30 dic 2022 a las 9:59, Javier Sanchez (<
javiersanchezbarquero@xxxxxxxxx>) escribió:

The "Unit of measure" parameter should be set to *INCH or *INCHES,
right
now I don't remember since I am not at my computer. There is another
concept to use that is called *COR for computer-output reduction
somewhere, and then you have to play with the cpi, don't just use
10cpi,
you should try like 12cpi or even 15cpi, and by trial and error you
should
get something close to what you want. I know it's not easy, that's
what
I
recall right now. Sorry to not give a concrete example. Just thought
you're
in a hurry. This may help guide you through, but you have to try a few
parameters. There's a big IBM manual for AFP printing that it's not
easy to
keep in your brain.

JS



El vie, 30 de dic. de 2022 9:20 a. m., Vern Hamberg via MIDRANGE-L <
midrange-l@xxxxxxxxxxxxxxxxxx> escribió:

I wonder the same as Justin - the OP said the printed text is
edge-to-edge, if I remember - there is a thing called "unprintable
area"
on the edges all around - so if you have 8-1/2x11 portrait with CPI
10,
you can't have text in the 2 or 3 columns on each side, I believe. If
you do, the text will be shifted to the right, to be in the
"printable
area" and text on the right will be truncated.

Now I don't know what would be considered "unprintable area" for PDF.
I'm not even sure how the OP got the thing to print in the first
place
-
and I wish that the first reply would have included the entire
original
message, so I could be sure what was said.

Now I do sometimes set PDF printing to reduce it to fit the page -
but
I
don't know that there is a way to do that in the conversion process
on
the i.

HTH
Vern

On 12/29/2022 12:58 PM, Justin Taylor wrote:
Won't that just push the text of the other side of the page?


date: Wed, 28 Dec 2022 21:35:02 -0600
from: Javier Sanchez<javiersanchezbarquero@xxxxxxxxx>
subject: Re: AFPDS PDF scaling?

You have to play with all margins until you get the right
proportion
of the
output.

JS


--
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
athttps://archive.midrange.com/midrange-l.

Please contactsupport@xxxxxxxxxxxxxxxxxxxx for any subscription
related
questions.

Help support midrange.com by shopping at amazon.com with our
affiliate
link:https://amazon.midrange.com

--
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
athttps://archive.midrange.com/midrange-l.

Please contactsupport@xxxxxxxxxxxxxxxxxxxx for any subscription
related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link:https://amazon.midrange.com

--
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.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.