The logo is in both .bmp and .tif formats. Does it have to be
converted to either IOCA or IMDS to be added to the page segment? Can
I create the page segment directly?
I have seen reference to page segment objects in many of the postings
but couldn't determine if this image could be converted directly to a
page segment or not.
The QIMGCVTI API was especially interesting. The output appears to be
a .afp object. Is this a complete file? Can it be added to an overlay?
Any help would be greatly appreciated.
Thanks,
--
Rick Chevalier
Petra Consulting
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
I believe there are other ways to do the same thing from the PC. You might
want to search the posts to this BB over the last month or so. I believe
someone wanted to do the same thing as you want to do.
Rick Chevalier wrote:
--
Rodney A Johnson
Technical Team Lead for AS/400 Spool
Dept GJC
IBM Rochester, Minnesota
The contents of this message express only the sender's opinion.
This message does not necessarily reflect the policy or views of
my employer, IBM. All responsibility for the statements
made in this Usenet posting resides solely and completely with the
sender.
Rick you can you the Client Access AFP printer driver on a PC to create
both page segments and overlays. You can also find the lastest version
of this driver on the IBM Printing Services web site at
http://www.printing.ibm.com
--
Charles Wilt
Miami Luken, Inc.
e-mail: charle...@worldnet.no.spam.att.net
--->remove the no.spam.
Thanks for the information.
Could you elaborate on the 'begin/end page segment' lines. Do I need
to insert these at the time the image is converted with the API or at a
later time. Maybe after it is moved to a DB file? Are these lines
documented in the AFP manuals?
Thanks,
Rick
In article <37CBDA4B...@rchland.ibm.com>,
Rodney Johnson <rjoh...@rchland.ibm.com> wrote:
> Rick, You could use the QIMGCVTI API to convert the .TIF to AFPDS, but
> I believe the API doesn't provide the option to put the resulting
APFDS to
> a DB file (just IFS file if I remember correctly). You will need to
get
> the AFPDS copied from the IFS file to a DB file. Make sure the AFPDS
> generated has a 'begin page segement' and an 'end page segement'
before and
> after the AFPDS image data. Once all that is accomplished, you can
use the
> CRTPAGSEG OS command to generate a page segment object.
>
> I believe there are other ways to do the same thing from the PC. You
might
> want to search the posts to this BB over the last month or so. I
believe
> someone wanted to do the same thing as you want to do.
>
> Rick Chevalier wrote:
>
> --
> Rodney A Johnson
> Technical Team Lead for AS/400 Spool
> Dept GJC
> IBM Rochester, Minnesota
>
> The contents of this message express only the sender's opinion.
> This message does not necessarily reflect the policy or views of
> my employer, IBM. All responsibility for the statements
> made in this Usenet posting resides solely and completely with the
> sender.
>
>
--
To elaborate on this a little further:
1. Install the AFP print driver. Freely available with CA/400 or CA/400
Express. When the installation asks for the device type specify IBM 3812
2. Change the AFP printer to print to a PC file
3. Load your TIF into your favorite windows application. Size it, rotate it,
crop it as you see fit.
4. Change the properties of the printer to specify that you want to create a
page segment (also uncheck the Compression box. Using compression can cause
some problems with older versions of PSF)
5. Print the TIF. When the File Prompt appears, you can store the file on your
local PC or if you are using Netserver, into an IFS directory
6. On your AS/400 use the CRTPF to create a physical file to hold the Page
segment data. Specify a record length of 80 and LVLCHK(*NO)
7. Using your favorite transfer utility (Binary FTP works best) transfer the PC
file to the Physical file you just created. If you stored the PC file in the
IFS use CPYFRMSTMF with CVTDTA(*NONE)
8. Use the CRTPAGSEG command to create the page segment object.
You can use this same method for creating overlays
Std database files can be accessed via IFS path/name, as QSYS.LIB file
system is part of IFS. It may be worthwile to try creating a database
file (with an empty member), and specify that file/member as output to
QIMGCVTI. This might (?) eliminate the step of copying from another IFS
stream file to the DB file.
CRTPF FILE(MYLIB/MYDBFILE) ... MBR(AFPLOGO)
Example IFS syntax for QIMGCVTI output:
/QSYS.LIB/MYLIB.LIB/MYDBFILE.FILE/AFPLOGO.MBR
--
Karl Hanson
Rick Chevalier wrote:
> Rodney,
>
> Thanks for the information.
>
> Could you elaborate on the 'begin/end page segment' lines. Do I need
> to insert these at the time the image is converted with the API or at a
> later time. Maybe after it is moved to a DB file? Are these lines
> documented in the AFP manuals?
>
> Thanks,
>
> Rick
>
> In article <37CBDA4B...@rchland.ibm.com>,
> > > Any help would be greatly appreciated.
> > >
> > > Thanks,
> > > --
> > > Rick Chevalier
> > > Petra Consulting
> > >
> > > Sent via Deja.com http://www.deja.com/
> > > Share what you know. Learn what you don't.
> >
> > --
> > Rodney A Johnson
> > Technical Team Lead for AS/400 Spool
> > Dept GJC
> > IBM Rochester, Minnesota
> >
> > The contents of this message express only the sender's opinion.
> > This message does not necessarily reflect the policy or views of
> > my employer, IBM. All responsibility for the statements
> > made in this Usenet posting resides solely and completely with the
> > sender.
> >
> >
>
> --
> Rick Chevalier
> Petra Consulting
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
--
Thanks
Martin
-----Original Message-----
From: Karl Hanson [mailto:kcha...@us.ibm.com]
Posted At: Tuesday, August 31, 1999 21:24
Posted To: misc
Conversation: AFP Page Segments
Subject: Re: AFP Page Segments
> --
> Rodney A Johnson
> Technical Team Lead for AS/400 Spool
> Dept GJC
> IBM Rochester, Minnesota
>
> The contents of this message express only the sender's opinion.
> This message does not necessarily reflect the policy or views of
> my employer, IBM. All responsibility for the statements
> made in this Usenet posting resides solely and completely with the
> sender.
Std database files can be accessed via IFS path/name, as QSYS.LIB file
My original image was in black & white so I don't know about color. I
was wondering the same thing though. If you use Microsoft Paint to
output the bitmap there are options for a color bitmap. This makes me
think it is possible to use a color image.
--
Rick Chevalier
Petra Consulting
In article <929DFD7D864DD311918E00105ACDD4682489BF@ISS_JHB_EXC_01>,
Sent via Deja.com http://www.deja.com/
I tried the API but kept receiving an error about floating point
division. I tried several different bitmaps and a TIFF but nothing
worked.
The PC solution with the CA AFP driver worked well. I used Visio to
create the bitmap because it was the easiest to manipulate the image in.
--
Rick Chevalier
Petra Consulting