On 6/07/2011 17:08, bobsyouruncle wrote:
> Hello,
>
> We have been using iText to print existing pdf's with the line:
>
> com.lowagie.tools.Executable.printDocument("c:/test.pdf");
>
> We would like to change it so that some of the pdf's are dynamic, is it
> possible to print a ByteArrayOutputStream or ByteArray?
>
> I have looked for examples but have been unable to find any.That's some mighty old code you're using there. The Executable class calls the PDF viewer that is installed on your Operating System. For instance: Adobe Reader. It calls this external application with a series of open parameters. For instance: to print a PDF. One of these parameters is the path to a file. You can't send a byte[] to Adobe Reader. In other words: it's normal that you can't find any examples. What you're looking for isn't possible, unless you switch to using a Java-based PDF viewer (such as JPedal). ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
