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);

    };

});


6 Replies 1 reply marked as answer

PA Priyadharshini Annamalai Syncfusion Team October 2, 2024 03:00 PM UTC

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.




US Umamageshwari Shanmugam Syncfusion Team October 4, 2024 02:41 PM UTC

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.



US Umamageshwari Shanmugam Syncfusion Team October 8, 2024 11:17 AM UTC

Hi,


Thank you for your patience. We will review this further and provide you with more details by October 9, 2024





US Umamageshwari Shanmugam Syncfusion Team October 9, 2024 11:11 AM UTC

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."




VT Van Truong October 9, 2024 12:51 PM UTC


Thank you, Syncfusion Team, for your feedback.
I look forward to the new version on October 29, 2024. ^^



US Umamageshwari Shanmugam Syncfusion Team October 29, 2024 10:06 AM UTC

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:  

 

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


Marked as answer
Loader.
Up arrow icon