Muralidhar,
    I am also getting same king of problem. I have already existing pdf
file. I want to  print the pdf file without user interaction. I have goggled
and got some information.

      InputStream is = new BufferedInputStream(
                    new FileInputStream("c:\\test.pdf"));            
            // Here  we need to convert pdf to pcl using fop             
            byte[] data = null; /* the fop output */; 
            DocFlavor flavor = DocFlavor.BYTE_ARRAY.PCL;
            PrintService service =
PrintServiceLookup.lookupDefaultPrintService();
            DocFlavor[] flavors = service.getSupportedDocFlavors();
            // Create the print job
            DocPrintJob job = service.createPrintJob();
            Doc doc = new SimpleDoc(data, flavor, null);
            // Print it
            job.print(doc, null);  

    Murali , The above code may gives you some idea to print pdf , but we
have to know how to convert  PDF file to PCL using FOP.
   
   









-- 
View this message in context: 
http://www.nabble.com/Printing-issue-tp15082765p15097273.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to