Hiyas
In version 129 or so, the new and full Adobe compression was implemented
and, back then, worked with Acrobat. I have version 148 installed and
Adobe 7 plus Adobe Reader 6 on my system. When I use setFullCompression
(true), the file cannot be read anymore neither with Adobe 6 nor 7. I
setFullCompression() pretty soon:
document = new Document(new com.lowagie.text.Rectangle((float)
Conversion.nativeToDevice(d.width), (float)
Conversion.nativeToDevice(d.height)));
try { stream = new BufferedOutputStream(new
FileOutputStream(fileName)); }
catch (FileNotFoundException fnf) { throw new PhoenixRuntimeException(fnf);
}
try {
writer = PdfWriter.getInstance(document, stream);
writer.setViewerPreferences(PdfWriter.PageLayoutSinglePage |
PdfWriter.PageModeUseOutlines | PdfWriter.FitWindow);
// writer.setFullCompression();
}
catch (DocumentException de) { throw new PhoenixRuntimeException(de); }
outputProcessor.writePdfMetaData(this);
content = writer.getDirectContent();
layer = writer.getDirectContentUnder();
...
if I do not comment out the setFullCompression(), the document gets
smaller, but cannot be read anymore. I'm quiet sure that this once
worked though. Or do I have to set something else additionally to that
that I forgot? I do not set any PDF version tag, for example?
Best regards and thanks
Roger Misteli
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions