rorostar wrote:
> Hi,
> 
> I have a question regarding PdfStamper.
> 
> Here is the code snippets 
> 
> 
> FileOutputStream outputStream = new
> FileOutputStream("C:\\Java\\HelloWorld.pdf");
> PdfWriter writer = PdfWriter.getInstance(document, outputStream);
> document.open();
> //add stuffs to documents
> 
> //This is the file to copy
> PdfReader reader = new PdfReader(new
> FileInputStream("c:\\java\\original.pdf"));
> 
> //how do I create a PdfStamper and redirecting the output to the existing
> writer so it could be appended to the same file? 
> //Most examples force the user to create another PDF file
> //I tried using outputStream and it didn't work.
> PdfStamper stamper = new PdfStamper(reader, outputStream);
> 
> Any suggestion?

Your design is all wrong. You can't just add several PDFs to
the same OutputStream. Rephrase your question, because as it is now,
I don't have a clue what you are trying to achieve.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to