On 15/08/2013 0:20, chris.e...@depi.vic.gov.au wrote:
I have tried setting the version before opening the document. While
this adds a Version tag, it does not change the header.
PdfCopy copy = *new*PdfCopy(document,
*new*FileOutputStream(newName));
copy.setPdfVersion(PdfCopy./PDF_VERSION_1_6/);
document.open();
I am using java version 5.4 3. It looks like it is an iText bug.
By the way: I used the exact same code, and this is the header:
%PDF-1.6
%âãÏÓ
2 0 obj
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php