It seems you are encountering several issues while using GroupDocs for file comparison in your .NET Core application. Let’s address each of your concerns:
1. HTML Comparison Issues
Images and Tables Not Visible: This could be due to the way the HTML content is being processed during the comparison. Ensure that the images and tables are correctly referenced in the original HTML files. If they are linked externally, make sure the links are accessible.
Labels and Titles Being Swapped: This might be a result of how the comparison engine interprets the structure of the HTML. You may want to check if the HTML is well-formed and adheres to standards, as malformed HTML can lead to unexpected results.
2. PDF Comparison Issue
Excessive Pages in Resulting File: If the comparison of a 20-page PDF results in over 300 pages, it could be due to the way the comparison engine is handling the content. This might happen if there are many small changes or if the comparison settings are not optimized. You can try adjusting the comparison options to reduce the sensitivity of the comparison or to ignore certain elements like headers and footers.
Suggested Code Adjustments
To improve your comparison results, consider using CompareOptions to customize the comparison behavior. Here’s an example of how you might implement this:
using System;
using System.IO;
using GroupDocs.Comparison;
using GroupDocs.Comparison.Options;
public class FileComparer
{
public async Task CompareFiles(string filePath1, string filePath2, string outputPath)
{
await using (var inputFile1 = new FileStream(filePath1, FileMode.Open, FileAccess.Read))
{
using (Comparer comparer = new Comparer(inputFile1))
{
await using var inputFile2 = new FileStream(filePath2, FileMode.Open, FileAccess.Read);
comparer.Add(inputFile2);
// Set comparison options
var compareOptions = new CompareOptions
{
HeaderFootersComparison = false, // Ignore headers and footers
// Add other options as needed
};
await using var outputStream = new FileStream(outputPath, FileMode.Create, FileAccess.Write);
comparer.Compare(outputStream, new SaveOptions(), compareOptions);
}
}
}
}
Additional Resources
For more detailed guidance, you can refer to the official documentation for GroupDocs.Comparison for .NET, which provides comprehensive information on loading documents, comparison options, and handling various file formats.
If you continue to experience issues, consider sharing your specific HTML and PDF files with the support team for more tailored assistance.
Conclusion
By adjusting your comparison settings and ensuring your HTML is well-formed, you should be able to resolve the issues you’re facing. If you have further questions or need additional help, feel free to ask!
@koc-it-support
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): TOTALNET-209
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
Regarding the HTML comparison issues:
We were able to reproduce the problems with missing images in the result file and also the incorrect ordering of label and value elements. These issues are currently being addressed and are expected to be fixed in GroupDocs.Comparison version 25.4.
As for your note about tables not being visible, I’d appreciate it if you could clarify this part—whether the issue is with specific table content, structure, or formatting—so we can investigate it properly.
Regarding the PDF comparison, this is a known issue that our team is currently working on.
We’ll keep you updated as fixes become available. Please let us know if you have any additional details or questions.
Could you please let us know the expected release date for GroupDocs.Comparison version 25.4?
This information will help us plan our upcoming releases accordingly.
hi @koc-it-support ,
we plan to release GroupDocs.Comparison version 25.4 in the second half of next week. As mentioned earlier, this update will include the ix for the HTML comparison issue.
The issue related to PDF comparison is more complex and will require additional time to resolve.
Let us know if you have any further questions in the meantime.
In the latest version of GroupDocs.Comparison (v25.4), we are receiving the correct response when comparing two HTML files that contain images.
However, we are facing an issue when comparing HTML files with tables.
For example:
File 1 does not contain a table.
File 2 has a table added.
When comparing File 1 vs File 2, the table content appears correctly as “added” in the result.
But when comparing File 2 vs File 1, the deleted table content is not shown in the result.
I have attached two sample files along with their respective comparison result files for your reference.
In the latest version of GroupDocs.Comparison (v25.7), the comparison of HTML files with images and tables is working correctly — thank you for that improvement.
However, the PDF comparison issue still persists. While the response file page count has reduced compared to earlier, the resulting output content is still unclear. I’ve attached two sample PDF files along with the comparison response file for reference. The comparison process for these took about 6–7 minutes.
Hi @koc-it-support ,
Thank you for the update and for sharing the details.
Could you please double-check the link you provided? When I try to access it, I receive the following message: “Sorry, access through this link has been removed by admin policy. Please contact the person who shared it with you.”
If possible, could you share the files again using another method so we can investigate further?
hi @koc-it-support ,
Thank you for re-sharing the files. We’ve received them successfully and will proceed with the investigation. We’ll update you as soon as we have more details.
Dear Team,
Since we have restrictions on sharing files externally and upload size limit is there on your support platform we are unable to share larger files. Can you please work with 2 samples which we have already shared?.
Thanks in advance.