Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing PDFs on the AS400

Status
Not open for further replies.

jem122974

Programmer
Nov 1, 2001
114
US
After much reading, research and trying examples I found that the PDF flavor does not work in Java. So I decided to try and find a way to convert a PDF to a PostScript file because I know I can print that from the AS400. I found where sedj recommended using XPDF to convert from PDF to PS, but they don't support the AS400. Another tool I have found is Smart JPrint from ActiveTree.com. They have a conversion tool that works, but it has a few bugs when running on the AS400. I have looked at Apache FOP but do not see a way to take a PDF and convert it to a PS file.

Can anyone give me suggestions in the following two areas? At this point I don't care if the solutions are Java, just that they work on the AS400.
1) Printing PDFs from the AS400
2) Converting PDFs to PostScript or PCL

Thanks,
Jon Mitchell
Programmer/Analyst
 
Jon, as I said in your other post on this, Xpdf will compile with a GCC (GNU C Compiler). As I understand it, the AS400's OS is AIX - IBM's version of UNIX, and I know for certain that GCC will run on AIX. So all you have to do is download the Xpdf sourcecode, and then compile it.

Apache FOP is a XSL-FO engine - and I seriously doubt it converts PDF to PS ...


--------------------------------------------------
Free Database Connection Pooling Software
 
Sedj, thanks for your input. I am trying to get Xpdf to compile on the AS400. The AS400 does not run AIX, it runs OS400. IBM's AIX runs on some of their other boxes. The AS400 does have a Unix like shell and it does have C compilers. I don't believe it has a GNU C compiler, just IBM's C compiler. I am working with Derek Noonburg at Glyph and Cog to see if I can get it working.

With this post I was hoping to see if anyone else out there had any other suggestions.

Thanks again, Jon
 
Sedj, you actually turned out to be partially correct. The OS on an AS400 is OS400, but they have this thing called PASE that sort of emulates AIX OS. So I was able to run AIX stuff after all.

I downloaded GCC and tried to compile Xpdf, but with no success. So what I did instead was download GhostScript for AIX and that worked great!

So I think I've found our solution! [shadeshappy] If I find an hiccup I'll be back.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top