Underline, highlight, strikeout and squiggly is not retaining the place where annotation happened.

I added annotation on "programming c# for beginners " and after save it is showing on top of the page.

I am attaching the screenshot.



Attachment: download_3dcd9241.png

5 Replies

BS Bharathi Selvam Syncfusion Team July 2, 2025 04:14 PM UTC

Hi Akilesh,


Thank you for contacting Syncfusion Support.

We attempted to reproduce the issue by loading the PDF in the PDF Viewer and saving it using the SaveDocumentAPI to a specified file path. However, we were unable to replicate the issue where “text markup annotations are not rendered correctly in the saved PDF.” In our saved PDF, the added text markup annotations appeared correctly in their expected positions. We have attached a sample, saved PDF and a video demonstrating the steps we followed during our testing.


Could you please review them and let us know if we missed any steps while attempting to reproduce the issue?


To help us investigate further, please provide the following details:

  • The platform(s) where the issue occurs (e.g., Android, Windows, iOS, Mac Catalyst)
  • Exact steps to reproduce the issue, if different from what we tested
  • Device model and OS version, as the issue might be device-specific
  • A modified sample, if available
  • .NET MAUI package versions (e.g., Microsoft.Maui.Compatibility, Microsoft.Maui.Controls)
  • Any other relevant information that might help us reproduce the issue


We appreciate your cooperation and look forward to your response.


Regards,
Bharathi S


Attachment: PDFViewerDemo_feab713d.zip


AS akhilesh singh July 3, 2025 10:06 AM UTC

Hi Bharathi,

I added some code for saving pdf and also added one pdf file.

When we are saving FlattenOnSave, first heading of the pdf is not working with text markups.


I attached modified zip solution. Please run and check.



Thanks

Akhilesh



Attachment: PDFViewerDemo_43e7f75f.zip



BS Bharathi Selvam Syncfusion Team July 4, 2025 08:18 PM UTC

Hi Akilesh,

Thank you for the update.
We have been able to replicate the issue: “Text markup annotations are not rendered correctly in the saved PDF when saved by flattening the annotations.”
We are currently in the process of validating the issue and will provide you with further updates by July 9, 2025.

Regards,
Bharathi S



BS Bharathi Selvam Syncfusion Team July 9, 2025 04:21 PM UTC

Hi Akilesh,


Upon further analysis, we found that the issue, ”Text markup annotations are not rendered correctly in the saved PDF when saved by flattening the annotations” has been fixed internally. The fix will be included in our upcoming weekly release, which is expected to be available on July 15, 2025.


Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”


Regards,

Bharathi S



BS Bharathi Selvam Syncfusion Team July 15, 2025 01:21 PM UTC

Hi Akhilesh,

We have resolved the issue “Text markup annotations are not rendered correctly in the saved PDF when saved by flattening the annotations” and now the fix for the issue is available in our latest weekly NuGet 30.1.40.

Please find our latest Weekly NuGet:

https://www.nuget.org/packages/Syncfusion.Maui.PdfViewer/30.1.40

Root cause details:

The root cause of the issue is that, while flattening the annotation and saving it as a library annotation, the bounds were not applied. We have now applied the bounds to these annotation libraries before saving it.

Regards,
Bharathi S


Loader.
Up arrow icon