- Home
- Forum
- JavaScript - EJ 2
- Error related to downloading and saving PDF.
Error related to downloading and saving PDF.
Hello!
I encountered an issue related to the saveAsBlob command of the PDF viewer.
I commented "Tiếng Việt", but after saving, the comment became corrupted into "TiỂ뼀渀最 嘀椞쎇t".
Can you help me with this?
Here is my code:
viewer.saveAsBlob().then(function (value) {
var reader = new FileReader();
reader.readAsDataURL(value);
reader.onload = () => {
var base64data = reader.result;
viewer.load(base64data, null);
};
});
Hi
We were able to reproduce the reported scenario "Comment Corrupted After Adding and Downloading in Loaded Document". We will analyze further on this and update you with more details in two business days on October 4, 2024.
Hi,
Thank you for your patience. We will review this further and provide you with more details within two business days by October 8, 2024.
Hi,
Thank you for your patience. We will review this further and provide you with more details by October 9, 2024
Hi,
We have logged this as a defect as "Annotation comment is not retrieved properly in ej2-pdf parser library" and will include the fix in our weekly NuGet release, which is estimated to be available on October 29, 2024. You can track the status of the issue through the following link.
Feedback link: Annotation comment is not retrieved properly in ej2-pdf parser library
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."
Thank you, Syncfusion Team, for your feedback.
I look forward to the new version on October 29, 2024. ^^
Hi,
We have fixed the reported issue "Comment Corrupted After Adding and Downloading in Loaded Document" and the fix for the reported issue was included in our latest weekly release v27.1.57. Kindly upgrade to that version to get the issue resolved.
Root cause:
During text decode string to bytes conversion invalid character code added for the actual character, due to this text value not as expected.
Solution:
The byte values were properly retrieved by using string to bytes conversion.
Packages:
|
Service side package |
ASP.NET Core : https://www.nuget.org/packages/Syncfusion.EJ2.PdfViewer.AspNet.Core ASP.NET MVC: https://www.nuget.org/packages/Syncfusion.EJ2.PdfViewer.AspNet.Mvc5/ https://www.nuget.org/packages/Syncfusion.EJ2.PdfViewer.AspNet.Mvc4/ |
CDN Links:
https://cdn.syncfusion.com/ej2/27.1.57/dist/ej2.min.js
https://cdn.syncfusion.com/ej2/27.1.57/material.css
https://cdn.syncfusion.com/ej2/27.1.57/dist/ej2-pdfviewer-lib/pdfium.js
https://cdn.syncfusion.com/ej2/27.1.57/dist/ej2-pdfviewer-lib/pdfium.wasm
- 6 Replies
- 3 Participants
- Marked answer
-
VT Van Truong
- Sep 27, 2024 01:05 PM UTC
- Oct 29, 2024 10:06 AM UTC