Re: [iText-questions] tiff2pdf byte Array problem

2008-03-18 Thread marlonbrando
Thank You!! your solution work fine! Fabrizio Accatino wrote: > > Hello, > > I'm not sure but try to close Document and PdfWrite before reading > content from "baos". > > > Fabrizio > > - > This SF.net email is spo

Re: [iText-questions] tiff2pdf byte Array problem

2008-03-18 Thread 1T3XT info
Fabrizio Accatino wrote: > Hello, > > I'm not sure but try to close Document and PdfWrite before reading > content from "baos". That's correct. Upon document.close() the Cross-Reference table is written to the byte array. Without the Cross-Reference table the PDF is not valid. -- This answe

Re: [iText-questions] tiff2pdf byte Array problem

2008-03-18 Thread Fabrizio Accatino
Hello, I'm not sure but try to close Document and PdfWrite before reading content from "baos". Fabrizio - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdm

Re: [iText-questions] tiff2pdf byte Array problem

2008-03-18 Thread marlonbrando
Ok, ByteArrayOutputStream baos =new ByteArrayOutputStream(); Document document = new Document(); PdfWriter writer = PdfWriter.getInstance(document,baos); try { int pages = 0; document.open(); PdfContentByte cb = writer.getDirectContent(); RandomA

Re: [iText-questions] tiff2pdf byte Array problem

2008-03-17 Thread Fabrizio Accatino
Post the source code where you use ByteArrayOutputStream. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/_

Re: [iText-questions] tiff2pdf byte Array problem

2008-03-17 Thread Paulo Soares
7, 2008 5:04 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] tiff2pdf byte Array problem > > > hello to alli have write a little application that > convert a multipage > tiff to a multipage pdf... > > OutputStream fout =new Fil

[iText-questions] tiff2pdf byte Array problem

2008-03-17 Thread marlonbrando
hello to alli have write a little application that convert a multipage tiff to a multipage pdf... OutputStream fout =new FileOutputStream("result.pdf"); Document document = new Document(); PdfWriter writer = PdfWriter.getInstance(document,fout); try {