Change Document.ID

Is it possible to change the Id property of the pdf document?

We are trying to compare the output of 2 conversion processes using an in some automated tests. Our initial thought is to create a hash of the 2 files and compare them. However, we have noticed that there are 2 sections of information that change.
1) The DocumentInfo in the header. Namely the creation date and modified date. These are easy enough to clear with a call to doc.Info.Clear();
2) The end of the document has the Id.
<</Root 1 0 R/Info 4 0 R/ID[<31382D31342D45452D32442D39432D30><32392D45362D36372D33372D45322D33>]/Size 83>>

Is there an easy way to do this?


Thanks for contacting support.

I am afraid currently Aspose.Pdf for .NET does not support the feature to update PDF Document ID. However for the sake of implementation, I have logged it as PDFNEWNET-40909 in our issue tracking system. We will further look into the details of this requirement and will keep you posted on the status of correction. Please be patient and spare us little time. We are sorry for this inconvenience.

PS, in order to compare PDF files, you may try using CompareApp of our sister company named GroupDocs.