cornerpirate / js2pdfinjector Goto Github PK
View Code? Open in Web Editor NEWInject a JS file into a PDF file.
License: Apache License 2.0
Inject a JS file into a PDF file.
License: Apache License 2.0
guess this doesn't work on acrobat 2020.09.20067, tested but "hello world" doesn't popup. what a nice project you put up anyway
Too bad.
Is there any way to run it without x server? I tested it on my workstation, it worked well but on server (without x window) it gives me "Can't connect to X11 window server"
Thank you!
I get this message: Unable to access jarfile JS2PDFInjector.jar when I run the command in readme. Perhaps I need a prerequisite before it can access the jarfile?
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?
Hey, this works like a charm with a simple alert, etc.
But will it work including a whole js script?
What I want to achieve is to include the js as we do in HTML for example
<script type="text/javascript" data-name="myscript" src="https://path_to_script/sdk.js" data-account="Pet" data-language="en"></script>
I have tried adding it like this in the js that I am including
var tagString = '<script async type="text/javascript" data-name="myscript" src="https://path_to_script/sdk.js" data-account="Pet" data-language="en"></script>';
var range = document.createRange();
range.selectNode(document.getElementsByTagName("BODY")[0]);
var documentFragment = range.createContextualFragment(tagString);
document.body.appendChild(documentFragment);
But it didn't work. Perhaps there is something else that should be done.
Hello,
Awesome library, thanks for making it open source. I am using it to programatically fill some forms that must have custom formatting on individual words.
I was wondering if it would be possible to run the javascript after injecting the javascript and before exporting the file? so that after I run the command I get the automatically filled forms.
I've been looking around the javascript acrobat api but with no luck so far. Any help would be much appreciated. Thank you
How would it be if you renamed the long name to jspi.jar
instead of JS2PDFInjector.jar
?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.