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
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
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
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
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/_
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
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 {