On 25.01.2008 22:37:38 mikeanderson wrote:
>
> 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.
>
FOP cannot convert PDF into anything!!!! FOP can only produce PDF! You
need a different tool.
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]