Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Printing AFP stuff to non-IPDS printer

512 views
Skip to first unread message

Koohiisan

unread,
Sep 28, 2006, 3:49:27 PM9/28/06
to
I've been able to create a document with some AFP functions. I am
drawing numerous boxes on the page, as well as using FNTCHRSET to
specify special fonts and sizes. I am also placing our company logo on
the page as a page segment. All of this is taking place on an IBM
InfoPrint 1120, via IPDS.

My problem is that I am designing a system that will be deployed
elsewhere, *NOT* using an IBM InfoPrint 1120 at all...in fact there
will be no IPDS support whatsoever. Instead, the printer they will be
using will be an HP 1320n.

I've managed to get ahold of one to test a little with, and my printout
is changed drastically. It does change the fonts, apparently, but is
ignoring the sizes on anything coded with FNTCHRSET. I have a few
items coded with the FONT parameter, and those retained the sizing.
Also, the boxes are present, but my logo is not. :(

Please help! What can I do to preserve my layout and logo?
(Purchasing software that costs more than $0 is out of the question
here, alas...)

Thanks in advance for your ideas!! :)

Message has been deleted

MarcoF

unread,
Sep 29, 2006, 4:44:08 AM9/29/06
to
Hi Koohiisan, check the log of the printer writer (wrkobj printername),
option 10 and press F10. You should see all the warnings about
resources not found or font substitution.

About fonts (I think) you have 2 options:
-choose a font present on the printer and play with the size
-setup the printer writer (HPT) enabling the raster mode (but
performances can be a problem)

HTH
M.

FT

unread,
Sep 29, 2006, 10:52:42 AM9/29/06
to
Here's an easy way to get the AFP/AFPDS off the 400 to any
Windows-based (IPDS or non-IPDS Printer):
http://ipds.brooksnet.com/afp-to-pdf.html

We used, works great and no as400 programming or fees required.

Best of luck!

Lukas Beeler

unread,
Sep 29, 2006, 12:27:18 PM9/29/06
to
* FT <fct...@gmail.com>:

> Here's an easy way to get the AFP/AFPDS off the 400 to any
> Windows-based (IPDS or non-IPDS Printer):
> http://ipds.brooksnet.com/afp-to-pdf.html
>
> We used, works great and no as400 programming or fees required.

I can second this. Brooks ExcelliPrint is a fantastic product.

Be aware that the Standard product requires a PCL capable
printer, the Premium product supports Host-based Windows
printers.

We use it internally with HP printers.

Koohiisan

unread,
Oct 3, 2006, 10:56:19 AM10/3/06
to
I tried extracting the customization object source for the model of
printer (*LEXMARKT634) and creating a new customization object where I
changed :Rastermode, AFP = Yes, SCS=Yes, but I still get the same
results! Shouldn't I get an exact raster version of the AFPDS output?
This page prints fine on my IPDS printer... :(

If it helps, this print file is AFPDS, and contains both AFP commands
(to draw boxes, place logo) and SCS stuff.

Thanks for the software recommendation, but the printer is not going to
be connected to any Windows PC--I'm using the '400 to send directly to
a TCP/IP printer.

Dr.UgoGagliardelli

unread,
Oct 3, 2006, 11:11:02 AM10/3/06
to
Koohiisan wrote:
> I tried extracting the customization object source for the model of
> printer (*LEXMARKT634) and creating a new customization object where I
> changed :Rastermode, AFP = Yes, SCS=Yes, but I still get the same
> results! Shouldn't I get an exact raster version of the AFPDS output?
Using QWPTIFFG4 you'll get the raster output compressed ITU/G4 in a
multipage TIFF structure.
--
Dr.Ugo Gagliardelli,Modena,ItalyCertifiedUindoscrasherAñejoAlcoolInside
Spaccamaroni andate a cagare/Spammers not welcome/Spammers vão à merda
Spamers iros a la mierda/Spamers allez vous faire foutre/Spammers loop
schijten/Spammers macht Euch vom Acker/Spamerzy wypierdalac'

Koohiisan

unread,
Oct 3, 2006, 12:08:08 PM10/3/06
to
Forgive my lack of experience, but do I use QWPTIFFG4 as the model, or
workstation customization object? Will that send a TIFF to the printer
in question?

Thanks!!

Pat Barber

unread,
Oct 3, 2006, 4:55:18 PM10/3/06
to
You need to be using the HP printer for any
development work.

IPDS on a IBM 1120 is a hardware function and mixing
that with a AFP functions, you will NOT be able to
duplicate that on a basic ascii printer.(HP 1320)

You can use the DDS specs and compile to AFPDS, and
using the correct HPT printer, you will get "similar"
but not exactly the same results.

You need to do a good bit of reading on AFPDS and what
it supports and what it does not.

This is going to require "much" fooling around.

Paul Tykodi

unread,
Oct 3, 2006, 10:28:13 PM10/3/06
to
Hi Koohiisan,

What version of IBM server operating system are you using for your
testing? The host print transform feaure of i5/OS and OS/400 includes
an AFPDS to PCL conversion process, which supports everything you have
outlined you need to do in the releases since V4R5M0.

If your operating system is reasonably new, I would suggest looking at
the job log as someone else mentioned, because the inability to use
FNTCHRSET for downloading fonts and the loss of the page segment sound
like a library pathing problem or job permission access problem.

HTH

Best Regards,

/Paul
--
Paul Tykodi
Principal Consultant
TCS - Tykodi Consulting Services LLC

Dr.UgoGagliardelli

unread,
Oct 4, 2006, 3:11:47 AM10/4/06
to
Koohiisan wrote:
> Forgive my lack of experience, but do I use QWPTIFFG4 as the model, or
> workstation customization object? Will that send a TIFF to the printer
> in question?
>
> Thanks!!
You should specify *WSCST as model (or *WSCSTA4 if you want to force for
example the A4 paper size) and specify QWPTIFFG4 as WSCST object.

The following procedure auto create such a printer and tests the output.

Try configuring a client access emulated printer, use host print
transform, select other as printer model and put QWPTIFFG4 as
workstation customization object (in place of QWPDEFAULT that's the
default value). Create a windows printer on the FILE: port using the
"Generic/text only" windows printe driver. Start the session and put a
spooled file (either *AFPDS or *SCS) on the printe queue. When windows
prompt you for a file name give it a name of choice (e.g. c:\spool.tiff
will help you in finding the output file) enter the dos command "start
c:\spool.tiff" in a windows command prompt, this will start the default
application for a tiff file if any, usually imaging that's the default
and comes with windows accessories.

Koohiisan

unread,
Oct 4, 2006, 1:47:48 PM10/4/06
to
Thanks for the clarification.

I created the printer session, per your instructions. I get the TIFF
image...and it contains boxes, but no font sizes or FNTCHRSET
commands...

Someone mentioned how I could view the 'font substitution' messages and
other messages regarding unavailable functions, but I could not get it
to work from the instructions provided. My AS400 is V5R3. Could I get
a clarification of where I need to go to view these important messages,
or ideas why my logo and formatting are missing from this direct TIFF
printout?

Thanks so much for all of your help everyone!!

Dr.UgoGagliardelli

unread,
Oct 5, 2006, 2:20:14 PM10/5/06
to
Koohiisan wrote:
> Thanks for the clarification.
>
> I created the printer session, per your instructions. I get the TIFF
> image...and it contains boxes, but no font sizes or FNTCHRSET
> commands...
>
> Someone mentioned how I could view the 'font substitution' messages and
> other messages regarding unavailable functions, but I could not get it
> to work from the instructions provided. My AS400 is V5R3. Could I get
> a clarification of where I need to go to view these important messages,
> or ideas why my logo and formatting are missing from this direct TIFF
> printout?
>
> Thanks so much for all of your help everyone!!

[...]
I guess you didn't install any font, try installing SS1 opt.8 AFP
Compatibility fonts. Then if fonts are not acceptable you should install
the IBM Font collection.

Koohiisan

unread,
Oct 5, 2006, 10:41:50 PM10/5/06
to
Thanks, I'll check on the font installation, but when I do a WRKFNTRSC
I see a bunch of fonts listed in QFNTCPL, so I don't know if that means
that they are already installed or what. These fonts are the ones I
used with the FNTCHRSET command in my print file.

What am I doing wrong? :( I could understand if I was using fonts
that were totally incompatible with the HP printer, but now I'm using a
direct TIFF conversion on my PC via the Generic/Text only printer
driver, and am getting the same lack of fancy fonts and logo.

Interestingly, if I save the *same* spooled printer output that has no
logo or font enhancements, and print it on the IBM Infoprint IPDS
printer...TADA! Fonts and a logo magically appear! FROM THE SAME
SPOOLED PRINTOUT! ;( ;( ;(

I could just beat my head on a wall and cry... This surely must be
some simple thing that I don't know and am overlooking, right? :(

Also, I still have not seen any font substitution or unavailable
function messages on the writer. All it says in its message log is
that it was started.

MarcoF

unread,
Oct 6, 2006, 10:58:50 AM10/6/06
to
Usually to see the printer log you have to locate the various job
attached doing:

WRKJOB JOB(PDFMAIL) <-- PDFMAIL is the printer name

and you get a list of (in)active jobs like:

Opt Job User Number Type
-----Status------
PDFMAIL QSPLJOB 443363 PDJ ACTIVE
PDFMAIL QSPLJOB 443362 BATCH ACTIVE
PDFMAIL QSPLJOB 443338 WTR ACTIVE

or shorter depending on the printer type.

Each job controls the various functions needed to print.
Select (one by one), type 10 and then press F10.

HTH
M.

Paul Tykodi

unread,
Oct 6, 2006, 4:55:29 PM10/6/06
to
Hi Koohiisan,

1. Spool File --> IBM InfoPrint; i5/OS Print Driver is PSF/400.

2. Spool File --> HP LaserJet Printer; i5/OS Print Driver is host print
transform (AFPDS to PCL conversion).

Both PSF/400 and Host Print Transform support the use of overlays, page
segments, downloaded AFP fonts, and bar codes.

Limitation of host print transform - input spool file format must be
*AFPDS. PSF/400 can work with *SCS, *IPDS, and *AFPDS as input and
successfully add AFP resources to these input file formats.

Another potential difference between PSF/400 and Host Print Transform
can be the file permissions associated with the jobs and the libraries
queried for AFP resources.

If your input spool file format is *AFPDS, I believe your problem will
be that either Host Print Transform cannot find the resources specified
in the spool file or it currently does not have the proper security
authorization to access and use the resources specified.

As others have mentioned, these types of issues will definitely be
logged by the system. You just need to find the correct joblog.

HTH

Best Regards,

/Paul

Koohiisan

unread,
Oct 6, 2006, 5:40:57 PM10/6/06
to
Thanks for the details. I did notice that neither QFNTCPL nor QAFP
were in the system library list. I did a CHGSYSVAL and added them, and
I checked the writer jobs via WRKACTJOB to verify that they have those
libraries in their library list. What do I need to do in order to set
the permissions?

Interesting note: In playing with the fonts, I tried the only outline
font on our system (CZ6200) which is also in QFNTCPL with all the rest.
It printed on my Generic/Text only TIFF file printer...maybe something
is not allowing the raster fonts? But that doesn't explain the logo...
:(

Dr.UgoGagliardelli

unread,
Oct 9, 2006, 3:42:33 AM10/9/06
to
Koohiisan wrote:
> Thanks, I'll check on the font installation, but when I do a WRKFNTRSC
> I see a bunch of fonts listed in QFNTCPL, so I don't know if that means
> that they are already installed or what. These fonts are the ones I
> used with the FNTCHRSET command in my print file.
>
> What am I doing wrong? :( I could understand if I was using fonts
> that were totally incompatible with the HP printer, but now I'm using a
> direct TIFF conversion on my PC via the Generic/Text only printer
> driver, and am getting the same lack of fancy fonts and logo.
>
> Interestingly, if I save the *same* spooled printer output that has no
> logo or font enhancements, and print it on the IBM Infoprint IPDS
> printer...TADA! Fonts and a logo magically appear! FROM THE SAME
> SPOOLED PRINTOUT! ;( ;( ;(
To print on a IPDS printer you need PSF, PSF is capable to print an *SCS
spooled file with an overlay set in FRONTOVL attribute. HPT (Host Print
Transform) is not. To print an overlay via HPT you must set
DEVTYPE(*AFPDS) instead of *SCS, via CHGPRTF or OVRPRTF command.
HPT is not fully compatible with PSF, e.g. it cannot covert some
printerfile keywords a CHRSIZE an so on, see "Printer Device
Programming" guide for a comlete list of unsupported keywords.

>
> I could just beat my head on a wall and cry... This surely must be
> some simple thing that I don't know and am overlooking, right? :(
>

I agree. I still point out the absence of fonts installed. Look at
DSPSFWRSC if "AFP Compatibility fonts" is installed.

Try something simpler to see whose fault is it. E.g. enter the following
commands:
OVRPRTF FILE(*PRTF) DEVTYPE(*AFPDS) FORMFEED(*AUTOCUT)
FRONTOVL(YOUR_OVL) OUTQ(TIFF_OUTQ) OVRSCOPE(*JOB)

DSPJOB OUTPUT(*PRINT) OPTION(*LIBL)

DLTOVR FILE(*PRTF) LVL(*JOB)

where YOUR_OVL should be the qualified overlay name of choice, and
TIFF_OUTQ the name of the printer you created to have the TIFF output.
This will print the library list of your job suitable for HPT.

> Also, I still have not seen any font substitution or unavailable
> function messages on the writer. All it says in its message log is
> that it was started.

--

Koohiisan

unread,
Oct 9, 2006, 12:21:53 PM10/9/06
to
I checked WRKSFWRSC and I do have AFP Compatibility Fonts installed.

I also performed the commands you listed and I got a TIFF printout of
my library list...but with no logo... :(

I saw no error messages.

Dr.UgoGagliardelli

unread,
Oct 9, 2006, 1:32:34 PM10/9/06
to
Koohiisan wrote:
> I checked WRKSFWRSC and I do have AFP Compatibility Fonts installed.
>
> I also performed the commands you listed and I got a TIFF printout of
> my library list...but with no logo... :(
>
> I saw no error messages.
I don't know. I do it every day and it works. What's your logo? Is it a
*PAGSEG inside a *OVL? If yes try putting them into a library that's in
your library list and in the library list of the spool job too: QUSRSYS
for example. Check for authority, if you want to avoid any authority
issue grant *PUBLIC *ALL both *OVL and *PAGSEG (just to try).
What's inside the *PAGSEG? Only IOCA images Function set 10 (b/w
bilevel), 240 or 300 pels are supported.

Koohiisan

unread,
Oct 9, 2006, 11:53:31 PM10/9/06
to
I printed our company logo using the AFP 300 printer driver on my PC,
and then placed the file on the AS400 via mapping a drive in Windows to
QDLS...or something like that.

Then I took the file and went to STRAFPU and converted it to a page
segment. I did not use any other AFP commands on it...just converted it
to a page segment...did I skip an important step somewhere?

Should I start over from scratch?

Dr.UgoGagliardelli

unread,
Oct 10, 2006, 2:27:11 AM10/10/06
to
Koohiisan wrote:
> I printed our company logo using the AFP 300 printer driver on my PC,
> and then placed the file on the AS400 via mapping a drive in Windows to
> QDLS...or something like that.
>
> Then I took the file and went to STRAFPU and converted it to a page
> segment. I did not use any other AFP commands on it...just converted it
> to a page segment...did I skip an important step somewhere?
>
> Should I start over from scratch?
There's something that either I miss or it's wrong. At least strange! :-)
AFP Printer driver can produce page segments or overlays: you said you
got a page segment. STRAFPU can conver a pc file with a IOCA image
inside to a page segment. So you used this tool against a wrong file. To
convert a stream file that holds a page segment structure, to an object
of type *PAGSEG you must use CRTPAGSEG command. This command converts a
database file member, so you should copy the content of a stream-file
into a file member. The file should be a plain one created with a
command like:
CRTPF FILE(MYLIB/MYFILE) RCDLEN(32740) MBR(*NONE)
MAXMBRS(*NOMAX) LVLCHK(*NO)

I usually use ftp binary, but you can use CPYFRMSTMF or COPY commands as
well, specifying to copy without any character conversion.
Then you can use the CRTPAGSEG command. The same procedure can be used
to create an overlay, just configure the AFP driver to output as page
overlay and use CRTOVL command.

Koohiisan

unread,
Oct 10, 2006, 2:40:36 PM10/10/06
to
Okay, I scrapped the whole page segment idea and recreated the logo as
an overlay...now it works! :) Thanks!!

But my fonts still don't. :(

Even outputting to a TIFF file does not show them...that does not make
any sense to me. Some of you have mentioned the potential of an
authority issue or that it can't find the resources. I added the
QFNTCPL and QAFP libs to the system library list...how can I check
authority on the proper stuff?

Thanks again, everybody, for helping me. I'm new to this cool AFP
stuff! :)

Koohiisan

unread,
Oct 10, 2006, 3:47:37 PM10/10/06
to
I just tried creating a whole new AFPDS print file, and it is totally
ignoring the font size I specify in FNTCHRSET...though it will
apparently alter the font a little when I specify one as opposed to no
FNTCHRSET at all. I also can't just F4 to prompt for selecting fonts
and codepages on the FNTCHRSET screen...I have to put in QFNTCPL as the
library, and then I can F4...is this normal?

Or am I just trying to do something strange using FNTCHRSET? I want to
use the AFP fonts and still get correct sizing...is this the only way?

Is there a problem with the device's configuration? Here it is for
your viewing pleasure...


Display Device Description
Page 1
5722SS1 V5R3M0 040528 S1025A9C 10/10/06
15:25:08 EDT
Device description . . . . . . . . : DEVD DEP31

Option . . . . . . . . . . . . . . : OPTION *ALL

Category of device . . . . . . . . : *PRT

Device class . . . . . . . . . . . : DEVCLS *LAN

Device type . . . . . . . . . . . : TYPE 3812

Device model . . . . . . . . . . . : MODEL 1

LAN attachment . . . . . . . . . . : LANATTACH *IP

Port number . . . . . . . . . . . : PORT 9100

Physical attachment . . . . . . . : ATTACH *DIRECT

Online at IPL . . . . . . . . . . : ONLINE *YES

Font . . . . . . . . . . . . . . . : FONT

Identifier . . . . . . . . . . . : 11

Point size . . . . . . . . . . . : *NONE

Form feed . . . . . . . . . . . . : FORMFEED *AUTOCUT

Separator drawer . . . . . . . . . : SEPDRAWER *FILE

Separator program . . . . . . . . : SEPPGM *NONE

Library . . . . . . . . . . . . :

Printer error message . . . . . . : PRTERRMSG *INQ
Message queue . . . . . . . . . . : MSGQ *CTLD
Current message queue . . . . . . : QSYSOPR
Library . . . . . . . . . . . . : QSYS
Activation timer . . . . . . . . . : ACTTMR 170
Inactivity timer . . . . . . . . . : INACTTMR *SEC15
Line speed . . . . . . . . . . . . : LINESPEED 19200
Word length . . . . . . . . . . . : WORDLEN 8
Type of parity . . . . . . . . . . : PARITY *NONE
Stop bits . . . . . . . . . . . . : STOPBITS 1
Host print transform . . . . . . . : TRANSFORM *YES
Manufacturer type and model . . . : MFRTYPMDL *HPIIISI
Paper source 1 . . . . . . . . . . : PPRSRC1 *LETTER
Paper source 2 . . . . . . . . . . : PPRSRC2 *LETTER
Envelope source . . . . . . . . . : ENVELOPE *NUMBER10
ASCII code page 899 support . . . : ASCII899 *NO
Image configuration . . . . . . . : IMGCFG *NONE
Character identifier . . . . . . . : CHRID *SYSVAL
Remote location . . . . . . . . . : RMTLOCNAME
Name or address . . . . . . . . : DEP31

Workstation customizing object . . : WSCST *NONE

User-defined object . . . . . . . : USRDFNOBJ *NONE

Object type . . . . . . . . . . : *NONE

Data transform program . . . . . . : USRDTATFM *NONE

System driver program . . . . . . : SYSDRVPGM *HPPJLDRV

Allocated to:

Job name . . . . . . . . . . . . . : DEP31

User . . . . . . . . . . . . . . : QSPLJOB

Number . . . . . . . . . . . . . : 844610

Published . . . . . . . . . . . . : *NO

Display Device Description
Page 2
5722SS1 V5R3M0 040528 S1025A9C 10/10/06
15:25:08 EDT
Device description . . . . . . . . : DEVD DEP31

Option . . . . . . . . . . . . . . : OPTION *ALL

Category of device . . . . . . . . : *PRT

Publishing information . . . . . . : PUBLISHINF

Support duplex . . . . . . . . . : *UNKNOWN

Support color . . . . . . . . . : *UNKNOWN

Pages per minute black . . . . . : *UNKNOWN

Pages per minute color . . . . . : *UNKNOWN

Location . . . . . . . . . . . . : *BLANK

Data streams supported . . . . . : *UNKNOWN

Text . . . . . . . . . . . . . . . : TEXT Depot-HP LaserJet
1320n-Offi
ce

Active switched line . . . . . . . : *NONE

Switched line list . . . . . . . . : SWTLINLST

--------------------Switched lines---------------------

(No switched lines attached)

User-defined options . . . . . . . : USRDFNOPT

-----------------User-defined options------------------

* * * * * E N D O F L I S T I N G * * * * *

Dr.UgoGagliardelli

unread,
Oct 11, 2006, 4:29:06 AM10/11/06
to
Koohiisan wrote:
> I just tried creating a whole new AFPDS print file, and it is totally
> ignoring the font size I specify in FNTCHRSET...though it will
> apparently alter the font a little when I specify one as opposed to no
> FNTCHRSET at all. I also can't just F4 to prompt for selecting fonts
> and codepages on the FNTCHRSET screen...I have to put in QFNTCPL as the
> library, and then I can F4...is this normal?
You do not need to put QFNT* libraries in any library list, both PSF and
HPT will search for fonts in QFNTCPL library and QFNTnn where nn can
range from 01 to 19. If you want to install fonts in a differently named
library the best way is to include that library in a *PSFCFG object and
tup it in the printer configuration as USRDFNOBJ.
When you specify FNTCHRSET keyword the font should be present, or you
may get a font substitution that could not fit your needs.
You cannot specify a font size for raster AFP fonts, youre only allowed
with AFP outlined (vector) fonts.
Actually in library QFNTCPL there's only a few raster fonts, I suggest
to install IBM Font Collection, that comes with some font families both
raster (at 240 pels and 300 pels) and outline.

>
> Or am I just trying to do something strange using FNTCHRSET? I want to
> use the AFP fonts and still get correct sizing...is this the only way?
Find font AFP resources (objects of type *FNTRSC and attribute
FNTCHRSET) in library QFNTCPL, you'll easily do with command:

WRKOBJPDM LIB(QFNTCPL) OBJ(*ALL) OBJTYPE(*FNTRSC) OBJATR(FNTCHRSET)

Use one of these fonts, without specifying a size, to try before
wondering about authorization, unless particular restrictions were
applied on your system you should not have any authorization constrain
about fonts.

> Is there a problem with the device's configuration? Here it is for
> your viewing pleasure...

Very pleasant! :-)

I don't see any problem with your configuration, but the model you choose.
Generally speaking, most of what you should know (other then usual print
guides), can be found in:
http://www-912.ibm.com/s_dir/slkbase.NSF/wp?OpenView&view=wp
(also Font Collection information)
When you are in the page click on collapse to see all arguments: a new
world then appear!
To see if your printer is supported expand "Printer Hardware" and then
ASCII printers, open the document that's fitting the brand of your
printer (maybe HP, I guess) that search for the model (HP laser-jet
1320n, I guess) to see which type of data-stream and job-control
protocol is supported.
All of this be easily found with the search option.
I found it for you, and I can see that HP laser-jet 1320n supported
datastream is *HP5SI, so you can put this value in MFRTYPMDL attribute
instead of *HPIIISI.
Then should work very well.

Koohiisan

unread,
Oct 17, 2006, 1:53:04 PM10/17/06
to
Ooh, now I understand...I am trying to force it to scale these raster
fonts, and it cannot.

I will abandon using these fonts for my project, since I need to make a
good deal of large text on this document.

I printed the PCL font list from my HP printer. It shows "font #/id"
as well as the PCL escape sequences for each font. I tried to use the
id in my dds under the FONT keyword, but it is ignored...do I need to
do something to input the various escape sequences, as detailed here:
http://www-1.ibm.com/support/docview.wss?uid=nas198b6b000ead0990c862565c2007d0ee1

Thanks so much for your help! I've been on vacation, or I would have
asked sooner.

Dr.UgoGagliardelli

unread,
Oct 17, 2006, 2:07:22 PM10/17/06
to
Koohiisan wrote:
> Ooh, now I understand...I am trying to force it to scale these raster
> fonts, and it cannot.
>
> I will abandon using these fonts for my project, since I need to make a
> good deal of large text on this document.
>
> I printed the PCL font list from my HP printer. It shows "font #/id"
> as well as the PCL escape sequences for each font. I tried to use the
> id in my dds under the FONT keyword, but it is ignored...do I need to
> do something to input the various escape sequences, as detailed here:
> http://www-1.ibm.com/support/docview.wss?uid=nas198b6b000ead0990c862565c2007d0ee1
>
> Thanks so much for your help! I've been on vacation, or I would have
> asked sooner.

I strogly suggest you to keep the same way using outline fonts that are
scalable and mapped to available printer fonts. Using IBM font
collection you get Helvetica (functionally equivalent to Arial) Times
Roman Courier and other typewriter fonts, both raster (240 and 300 pels)
and outline. HPT will use Font collection fonts.

Koohiisan

unread,
Oct 17, 2006, 4:01:46 PM10/17/06
to
But I looked at my fntchrset resources and I only have *1* outline
font! All of the others have a point size attached to them... :( How
can I get a font size of 18, 24 and 32 with these raster fonts?

Don't I have to abandon FNTCHRSET and try to instruct the printer to
use the built-in scaleable fonts?

Dr.UgoGagliardelli

unread,
Oct 18, 2006, 12:34:53 PM10/18/06
to
Koohiisan wrote:
> But I looked at my fntchrset resources and I only have *1* outline
> font! All of the others have a point size attached to them... :( How
> can I get a font size of 18, 24 and 32 with these raster fonts?
>
> Don't I have to abandon FNTCHRSET and try to instruct the printer to
> use the built-in scaleable fonts?
You can try, usinng FONT keyword the font ID is a number that span from
1 to 65535, then if you have just one printer you have to try which
number will be mapped to the printer resident font, if you have many
printers of different model you're pretty sure to get a different
print-out for each printer.
Font mapping table is in "Printer Device Programming" that's in
information center.

Koohiisan

unread,
Oct 19, 2006, 10:38:57 AM10/19/06
to
Okay, I meticulously went through the IBM Printer Device Programming
reference and picked out all fonts available to a 3812 printer (since
that is what I have coded the printer as--is that correct?). I printed
an AFPDS print file containing a sample of each font. I have maybe 50
variations...but I am for the most part stuck with only certain sizes
on some fonts and cannot make them any larger. I need a 36 point or so
for my largest font...how can I achieve this?

Also, I printed the PCL font list from the printer...it has some nice
fonts that I can apparently scale to any size...is there not any way I
can use those fonts, since they are on the printer only and not the
AS400? Can I just tell the '400 to let the printer use its own fonts
and not substitute them for the AS400 fonts?

I read something in that IBM manual about being able to use TrueType
fonts...is that a possibility in this case, to use TT fonts to achieve
the sizing and font styles I want?

Sorry to ask so many questions...the project I'm working on is needing
to come together in the next week or less... :( I can live with the
fonts and sizes I have now, but it is not ideal for what we were hoping
for. Thanks!!

Dr.UgoGagliardelli

unread,
Oct 19, 2006, 1:18:20 PM10/19/06
to
Koohiisan wrote:
> Okay, I meticulously went through the IBM Printer Device Programming
> reference and picked out all fonts available to a 3812 printer (since
> that is what I have coded the printer as--is that correct?). I printed
> an AFPDS print file containing a sample of each font. I have maybe 50
> variations...but I am for the most part stuck with only certain sizes
> on some fonts and cannot make them any larger. I need a 36 point or so
> for my largest font...how can I achieve this?
>
> Also, I printed the PCL font list from the printer...it has some nice
> fonts that I can apparently scale to any size...is there not any way I
> can use those fonts, since they are on the printer only and not the
> AS400? Can I just tell the '400 to let the printer use its own fonts
> and not substitute them for the AS400 fonts?
>
> I read something in that IBM manual about being able to use TrueType
> fonts...is that a possibility in this case, to use TT fonts to achieve
> the sizing and font styles I want?
>
> Sorry to ask so many questions...the project I'm working on is needing
> to come together in the next week or less... :( I can live with the
> fonts and sizes I have now, but it is not ideal for what we were hoping
> for. Thanks!!
Well looking at "Table 21. Font Information" in appendix d of "Printer
device programming" guide, I decide to chose a scalable font with "Times
New Roman Medium" type face, just because I like, I could chose any
other scalable font and it will work the same (on the same printer, I mean).
Then I want to print with that font at a size of 36 points. So I have
three opportunity:
-creating (or changing or overriding) a printer-file with FONT(2308 36)
parameter
-using FONT(2308 (*POINTSIZE 36)) keyword at record level in the printer
file DDS
-using FONT(2308 (*POINTSIZE 36)) keyword at field level in the printer
file DDS
Remember that the base-line of a font is placed under the foot of a
capital letter, knowing that a 36 point letter is 1/2" high (1 point is
1/72 inch), basing on the LPI i sat in the printer file I have to put
the line to have room to print the whole high, e.g if LPI is 6 the 1st
line would be 3. But with *AFPDS you can use POSITION keyword too, so
you have to use POSITION(0.5 ...) to print half an inch downward.
Knowing that any WSCST defines an unprintable area around the page, you
should consider that, e.g if you find that the value for top is 240, you
should consider this extra margin. That value is in 1/1440 of an inch,
so 240/1440=0,1666 inches in other words 1/6" = 1 line at 6 LPI.
Instead of add 1/6 to all down position in a *AFPDS printer file I can
specify FRONTMGN (and BACKMGN too) to shift the logical page down and
accross, e.g. FRONTMGN(0.67 0.67) assuming that top and left unprintable
boarder are the same. The same consideration should be take about
right an bottom margins, but this way you have not an attribute that
trim, you should take care.
I spoke about inches because the default UOM parameter is *INCH, if you
plan to use *CM you have to convert the calculated values.
The above considerations prevent HPT to make a mess with your printout.
Also specifying the pater size in an unit of measure different from
line/column will, help, so if you plan to print on A4 paper specify
PAGESIZE(11,67 8,29 *UOM), again: if uom is *INCH.
Specify also FORMFEED(*AUTOCUT) *DEVD will not work with HPT.
Then there's another clue, very often you'll see a blank stripe on the
print-out printing on A4, to avoid this specify MFRTYPMDL(*WSCSTA4)
WSCST(the wscst of choice) there are other values as *WSCSTLETTER and so
on, look at the pressing F4 on the MFRTYPMDL field.
That's it.

Koohiisan

unread,
Oct 19, 2006, 2:41:20 PM10/19/06
to
Thanks for your help. My concern is that I had a need for some "letter
gothic" style fonts, as well as nice "Times New Roman" style ones, and
needed them scaled. But the "letter gothic" fonts I found, such as
font #40, 66, 230, 290 seem to be locked in at a certain size only. Or
am I overlooking something?

Thanks so much for your help! You've been quite a lifesaver!

Dr.UgoGagliardelli

unread,
Oct 20, 2006, 2:24:12 AM10/20/06
to
Koohiisan wrote:
> Thanks for your help. My concern is that I had a need for some "letter
> gothic" style fonts, as well as nice "Times New Roman" style ones, and
> needed them scaled. But the "letter gothic" fonts I found, such as
> font #40, 66, 230, 290 seem to be locked in at a certain size only. Or
> am I overlooking something?
Yes, they are. If you look at Table 21 you'll see a number under the
pitch column, to be scalable you have to find an S.
"Letter Gothic" and "Gothic Text" are very similar, so you can try with
font ID 304 or 404.

Keep in mind that these type of fonts are defined as "printer resident",
so the output strictly depends on the output device, that some times
could not have resident fonts at all.


>
> Thanks so much for your help! You've been quite a lifesaver!

Koohiisan

unread,
Oct 20, 2006, 9:04:16 AM10/20/06
to
Wonderful!! That is exactly what I wanted!! Thanks so much!

Are all of the fonts in table 21 "printer resident"? Thanks again! I
owe you dinner or something! :) You saved my project!

Dr.UgoGagliardelli

unread,
Oct 20, 2006, 9:28:12 AM10/20/06
to
Koohiisan wrote:
> Wonderful!! That is exactly what I wanted!! Thanks so much!
>
> Are all of the fonts in table 21 "printer resident"? Thanks again! I
> owe you dinner or something! :) You saved my project!
I think that in table 21 are IBM known Font ID. Then in that table there
are only resident fonts.
Maybe there could be font IDs of someone else. I've never care about.
0 new messages