I wanted to build a unit test that generates a pdf and compares it to a previously generated and approved pdf, but comparing two streams of the same exact process shows that the files are not the same (probably because of file info differences?)
Do you have any idea how to succesfully compare the two memory streams that where created by the same exact process?
Currently Aspose.Pdf does not support the feature to compare two PDF documents. However we suggest you to please try using ComparisonApp of our sister company named GroupDocs.
Should you have any further query, please feel free to contact.
As per my understanding, you need to generate PDF files without MetaData information. If so is the case, then you may consider using following code snippet to strip MetaData information (pass empty information). Set XMP Metadata in a PDF File.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.