There is no such thing as a "streamed pdf". To add more pages you need to have the pdf in memory or in file. Note that all the PdfReader constructors, except when reading from file, read all the pdf to an internal byte array first.


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Allistair Crossley
Sent: Thursday, December 02, 2004 1:10 PM
To: [EMAIL PROTECTED]
Subject: [iText-questions] appending a file-pdf to a stream-pdf

Hi All,
 
I am using JasperReports to generate a PDF on-the-fly that I stream to the client. However, before I stream it, I need to somehow add a PDF from a file (terms and conds) to it.
 
Does iText have any dynamic way of manipulating an existing stream? This is the call I make to send it to the user...
 
JasperRunManager.runReportToPdfStream(
    getClass().getClassLoader().getResourceAsStream(
     "com/comp/newmedia/intranet/pof/dto/pof.jasper"),
    response.getOutputStream(),
    parameters,
    lineItemDataSource
   );
 
I am guessing not but maybe I get lucky!
 
Cheers, Allistair.



-------------------------------------------------------
QAS Ltd.
Developers of QuickAddress Software
www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
-------------------------------------------------------

Reply via email to