Hello,
In some cases where we add word documents, using the following code
ByteArrayInputStream bais = new ByteArrayInputStream(docToString(fo).getBytes("UTF-8"));
Pdf pdf = new Pdf();
pdf.bindFO(bais);
pdf.save(out);
save hangs and keep downloading to OutputStream out for ever, ending with corrupted pdf.
Actually the file is 42kb, but why we end up 500MB or 1G and end up corrupted pdf?
We don't have source code, may be you have some suggestions.
Thanks.
Selim.
↧