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();
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.
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
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 {
-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
Post the source code where you use ByteArrayOutputStream.
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.