cornerpirate / JS2PDFInjector

Inject a JS file into a PDF file.
Apache License 2.0
303 stars 56 forks source link

Redirect not working #8

Closed Mr-P-D closed 11 months ago

Mr-P-D commented 3 years ago

Hello i want to open a pop up in pdf and once they click open i want them to be redirected to my site.

app.alert is working fine but for redirection i tried multiple methods like location.href window.location.href window.location

none of them seem to be working with js2pdfinjector can you suggest one way in which i can achieve this?

cornerpirate commented 11 months ago

I believe this is because of changes to the security model of PDF viewers. They stop quite a lot of things by default now.