I am trying to remove all hyperlinks in a pdf document i followed this tutorial https://www.syncfusion.com/kb/9450/how-to-remove-the-hyperlinks-from-a-pdf-using-c-and-vb-net but it is not working as expected. i have attached the concerned pdf,
I also want to remove the active javascript content in this pdf,
Any help is much appreciated.
Thanks
Attachment: pdfhyperlink_b6e0d09b.zip
Hi thanks for quick turn around. kindly point me on the knowledge resource on how to detect an active content i.e. javascript present in a pdf
Thanks
|
//Load a PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(stream);
//Check and Change the javascript action in a pdf document.
if (loadedDocument.Actions != null)
{
loadedDocument.Actions.AfterOpen = new PdfJavaScriptAction("app.alert(\"Modified Script!\")");
}
MemoryStream stream1 = new MemoryStream();
loadedDocument.Save(stream1); |
Thanks Gowtham, i will come back if i have any other questions