On Jul 27, 2007, at 11:36 PM, David Kavanagh wrote:
> I'm trying to generate some PDFs using iText and I need them to be
> identical given the same input.
What makes you think that such files would be identical? Object
number, metadata (such as dates), document ID, etc. all preclude this
from happening. This is why comparison of PDF documents isn't as
simple as "diff".
> I have modified the info dictionary from the writer to set the
> author, and remove the create and mod dates.
Bad idea! The dates are there for a reason - and should be left
alone.
> The only thing I'm not able to remove is the ID. By looking at the
> PdfWriter code, it seems like there is no option to eliminate this.
> I'd appreciate any help in getting this to work.
>
ID is required by PDF specification.
Leonard
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/