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



Yeah, that can really cause problems. I always tried to allow about 0.25" margins all around.


Roger Harman
COMMON Certified Application Developer - ILE RPG on IBM i on Power


-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Vern Hamberg via MIDRANGE-L
Sent: Friday, December 30, 2022 10:14 AM
To: midrange-l@xxxxxxxxxxxxxxxxxx
Cc: Vern Hamberg <vhamberg@xxxxxxxxxxxxxxx>
Subject: Re: AFPDS PDF scaling?

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://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ibm.com%2Fsupport%2Fpages%2Fexplanation-computer-output-reduction-cor-and-options-circumvent-it&data=05%7C01%7C%7Ccc15dea37bb943afe53108daea91afc9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638080208678649684%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=rU98c3RW1yF%2FuQtgDeNDnnYLFIh%2FxBfc1oXe%2F7dNOfs%3D&reserved=0
- 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://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Fmidrange-l&data=05%7C01%7C%7Ccc15dea37bb943afe53108daea91afc9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638080208678649684%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5U3HAWfdsQiVPdxj7VDGtgg1ZxYJRE4k53obU3BMZmg%3D&reserved=0
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Fmidrange-l&data=05%7C01%7C%7Ccc15dea37bb943afe53108daea91afc9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638080208678649684%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=4sV%2Bt56r73mm20betkpL7pZxvLjMnd3bI85oz19vUPQ%3D&reserved=0.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Famazon.midrange.com%2F&data=05%7C01%7C%7Ccc15dea37bb943afe53108daea91afc9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638080208678649684%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=lhYIxW09%2Fi4JOsqqjTVwFERzseBUue86rjYIcUSoYTo%3D&reserved=0



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.