AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  AIX 5.2 Printing Problem with Java

    Posted Sat November 26, 2005 12:45 AM

    Originally posted by: SystemAdmin


    I have a Java Program which issues print jobs to the the default print
    service in the operating system. I have tested my program with Windows
    platform with a Printronix P5215 printer (with IBM Proprinter 6400 Driver)
    and everything works fine. But when I execute my program from the AIX 5.2
    platform with the same Printer, the Printing is a garbage. It seems that
    the printer prints a PostScript Data stream treating as ASCII as the
    printing starts with PostScript header %!PS-Adobe-3.0... . I am sure that
    the Printronix P5215 is not capable of interpreting PostScript Data. What I
    cant understand is why the Printer Driver issues PostScript Data stream to
    the printer as the Printer Driver is well aware of its Printing
    capabilities. It seems that the OS sends PostScript Data to the
    PrinterDriver and which too does not recognize them and send them to the
    printer without further processing. I am guessing it because when I try to
    print a web Page from Netscape Navigator and redirect the printing to a
    file, it will create a PostScript file. Most of the Application Layer
    Programs seems to be doing so. I dont have GhostScript installed in the
    AIX box. Could you please let me know am I correct on my guess of OS sends
    PostScript data to the PrintDriver if the PrintJob is requested by JVM? My
    Program is printing a JEDitorPane which have only HTML Formatted text
    information (No Graphics). There for it should Definetely works on
    Printronix P5215 printer as it is working on windows with same Printer. Do
    I need to set GhostScript on my AIX box and set the print queue filters
    such as ps2ascii, which is available with GhostScript?

    Regards,
    Varuna Gunasekera
    #AIX-Forum


  • 2.  Re: AIX 5.2 Printing Problem with Java

    Posted Thu December 08, 2005 11:11 AM

    Originally posted by: SystemAdmin


    Does your AIX box have more then the default print queue defined? I believe you should be able to tell your application to print to another non-postscript print queue if its defined
    #AIX-Forum


  • 3.  Re: AIX 5.2 Printing Problem with Java

    Posted Thu December 08, 2005 09:49 PM

    Originally posted by: SystemAdmin


    I have only one queue in d AIX box. I have tried using several queues and changing them. Still I get the same result. A PostScript stream.

    Thank you for your kind interest...
    #AIX-Forum


  • 4.  Re: AIX 5.2 Printing Problem with Java

    Posted Mon January 30, 2006 12:00 PM

    Originally posted by: SystemAdmin



    The way I like to debug a problem like this is to create a file in the /dev directory. touch /dev/lpx, chmod 777 /dev/lpx, then create a queue to a device type file from 'smitty mkpq', choose your type of printer. Then print, and the output will go to this file. Make sure that this is a PostScript queue, or AIX will simply treat it as text, (if you don't setup for auto recognition), and it will add carriage returns and line feeds and the like and set the printer to PCL. Copy the header portion of the file back in here through the first few characters and it should tell us the problem. Otherwise post a short sample program and I'll try to test here.

    You may have already solve the problem, but if not.
    #AIX-Forum