Center Aligned Fields give javascript error

6 Replies

SK Sathiyaseelan Kannigaraj Syncfusion Team January 14, 2025 02:26 PM UTC

Hi Singh,

Thank you for the update. We have tested the demo sample by loading the PDF into the viewer, entering values, and downloading the PDF. Both the viewer and the downloaded PDF appear the same. To help us replicate the issue you're facing, could you please provide a demo video. This will assist us in understanding the problem and providing an appropriate solution.


Regards,
Sathiyaseelan K



RP R P January 14, 2025 04:08 PM UTC

https://www.awesomescreenshot.com/video/35517864?key=086f11fc61ca4c133b54f9ba47b514da


Please see attached video where i gives javascript error after typing M and download


Attached the PDF again


Attachment: IR330_2024_(1)_bfda8a11.zip


SK Sathiyaseelan Kannigaraj Syncfusion Team January 15, 2025 02:02 PM UTC

Hi Singh, 

Thank you for the update. We were able to reproduce the reported issue  “An exception occurred when attempting to download after adding a value to the form field” and suspect this to be a defect. We will analyze further on this and update you with more details on January 17, 2025.


Regards,
Sathiyaseelan K



PA Priyadharshini Annamalai Syncfusion Team January 18, 2025 08:41 AM UTC

Hi Singh,


Thank you for your patience. We discovered that the issue is related to our dependent team. We will follow up with them and provide an update by January 22, 2024


Regards,

Priyadharshini



PA Priyadharshini Annamalai Syncfusion Team January 23, 2025 06:11 AM UTC

Hi 

 

Thank you for the patience. We have confirmed the issue "An exception occurred when attempting to download after adding a value to the form field" and logged it as a defect. We will include the fix for this defect in our weekly NuGet release, which is estimated to be available on 11th February 2025. You can track the status of the issue through the following link.

 

FeedbackScript error thrown when adding textbox field with insertSpaces is set to true in ej2-pdf parser library in JavaScript | Feedback Portal

 

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,

Priyadharshini



SK Sathiyaseelan Kannigaraj Syncfusion Team February 4, 2025 03:16 PM UTC

Hi Singh,

Thank you for your patience.
We have fixed the reported issue "The text position is incorrectly aligned after downloading the PDF" and the fix for the reported issue was included in our latest weekly release v28.2.4. Kindly upgrade to that version to get the issue resolved.

Root cause:  In the TextBox field, when insertSpaces is set to true and the text is center-aligned, the text is not retrieved properly from text = current[i - startLocation] due to incorrect calculation of the start location. This results in undefined being assigned to the text, causing a script error.

Solution: Handled the start location calculation using Math.floor to get proper index and handled the preservation issue while setting border width 0.

Packages:   


Regards,
Sathiyaseelan K


Loader.
Up arrow icon