Hi Matthew,
Thank you for contacting Syncfusion support.
We can disable the javascript prompt while opening the PDF document in reader. For this, we have to set AfterOpen as null to PdfJavaScriptAction from the existing PDF document. Please try the below code snippet on your end and let us know the result.
|
FileStream docStream = new FileStream("../../../Input.pdf", FileMode.Open, FileAccess.ReadWrite);
PdfLoadedDocument ldoc = new PdfLoadedDocument(docStream);
if(ldoc.Actions != null)
{
ldoc.Actions.AfterOpen = null;
}
|
Please refer the below link for more information,
If it is not suites your requirement, kindly please share the complete code snippet for PDF creation, Input document, product version to check the issue on our end. So, that it will be helpful for us to analyze and assist you further on this.
Regards,
Gowthamraj K