Closed dianasotirova closed 2 years ago
Hi Team,
We suspect that you have disabled the annotation module and tried to add the form fields using the form designer toolbar. In our current implementation, Syncfusion PDF Viewer has shared some codes between the form designer and the annotation module. If we disable the annotation module then some other functionalities will not work correctly in the form designer module. This is the default behavior. So, we suggest you inject both the form designer and annotation module to resolve the script error while adding the form fields. We have shared the online demo and UG documentation for your reference.
Online demo: https://ej2.syncfusion.com/demos/#/bootstrap5/pdfviewer/formdesigner.html
UG documentation: https://ej2.syncfusion.com/documentation/pdfviewer/form-designer/create-fillable-PDF-forms/create-programmatically/
Please revert to us, if you need further assistance.
Regards, Dhivya.
I am creating the pdf viewer with the annotation module. The problem is observed only with one particular file. And the problem is also available on the online demo.
Hi Team,
We suspect that the reported issue might be document-specific. Could you please share the PDF document in which you are facing this issue? It will be helpful for us to investigate further and assist you better.
Regards, Dhivya.
This issue has not had any activity for 2 weeks. Closing for housekeeping purposes. Please feel free to reopen it if you have more information that can help us investigate the issue further.
With a certain pdf file when I try to add a new form field via the form designer I got a js error:
common.min.js:603523 Uncaught TypeError: Cannot read properties of undefined (reading 'addAction') at NodeDrawingTool.push../node_modules/@syncfusion/ej2-pdfviewer/src/pdfviewer/drawing/tools.js.NodeDrawingTool.mouseDown (common.min.js:603523:44) at PdfViewerBase.push../node_modules/@syncfusion/ej2-pdfviewer/src/pdfviewer/base/pdfviewer-base.js.PdfViewerBase.diagramMouseDown (common.min.js:590423:23) at HTMLDivElement.PdfViewerBase.viewerContainerOnMousedown (common.min.js:583385:23)
Can you advise that the problem migth be?