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();

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.

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 answer is

[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 {

Re: [iText-questions] tiff2pdf byte Array problem

2008-03-17 Thread Paulo Soares
-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 FileOutputStream(result.pdf); Document document = new Document

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.