Comparing reports to PDF in .Net Core

Dear Sir or Madam,

We have recently moved our project to .Net Core and one our client complained about the discrepancy in outputting to PDF the results of compare two files containing the comments. Please find two PDFs attached. The documents that were compared were almost identical, the only difference was a comment in one of the documents. Now, the comparison in the “Old” file (which is .net framework shows the comment in the comments pain (see Old.png) while in the comparison in the “New” file shows the comment rather as the difference between two original files. Is it possible to achieve the same behaviour as we had in .Net framework in the .Net Core application?

Regards,
Alex
Docs.zip (556.0 KB)

@AlexanderNovickov

To keep progress on this scenario (“Comparing reports to PDF in .Net Core Dear Sir or Madam, We have recently moved our project to .Net Core and one our client complained about the discrepancy in outputting to PDF the results of compare two files containing the comments. Please find two PDFs attached. The docume…”), start by validating the hypothesis around post-321053_1122110.txt: Aspose.Words for .NET – Mail merge placeholders are not replaced Hi, I’m testing Aspose.Words for .NET 25.10.0 and trying to perform a mail merge, but the placeholders «Name» and «City» in my DOCX file remain unreplaced in the output PDF… (source: docs.aspose.com).

This is a best-effort explanation based on partial or unverified information because No retriever returned supporting documents yet and Only low-trust or forum sources were retrieved; please validate it against official documentation once supporting evidence is available.

Checklist / next steps:

  • post-321053_1122110.txt (docs.aspose.com): Aspose.Words for .NET – Mail merge placeholders are not replaced Hi, I’m testing Aspose.Words for .NET 25.10.0 and trying to perform a mail merge, but the placeholders «Name» and «City» in my DOCX file remain unreplaced in the output PDF…
  • /Aspose.WordsforJava.lic (docs.aspose.com): Get Evaluation Note message when generating documents using trial license Dear Support, This is request from Sai Kiran Chebiyyam saikiranchebiyyam@newgensoft.com: As you are aware, we are currently evaluating the 30-day trial version o…
  • TEST.7z (docs.aspose.com): Word to Pdf:Blank page When I used version words-25.10-jdk17.jar of the JAR file to convert the following Word file to PDF, the PDF had an extra blank page. file: TEST.7z (132.0…
  • Old.png usage (question): Inspect recent commits or release notes for changes to this API’s defaults or layout behaviour.
  • Docs.zip usage (question): Inspect recent commits or release notes for changes to this API’s defaults or layout behaviour.
  • Share these hypotheses with support engineers alongside logs, code samples, and the exact SDK version so they can confirm the behaviour.
  • Question summary: Comparing reports to PDF in .Net Core Dear Sir or Madam, We have recently moved our project to .Net Core and one our client complained about the discrepancy in outputting to PDF the results of compare two files containing the comments. Please find two PDFs attached. The docume…

@AlexanderNovickov Please try specifying CommentDisplayMode.ShowInAnnotations. Please see the following code:

Document doc = new Document(@"C:\Temp\in.docx");
doc.LayoutOptions.CommentDisplayMode = CommentDisplayMode.ShowInAnnotations;
doc.Save(@"C:\Temp\out.pdf");

Thank you, Alexey, that’s the solution.

1 Like