Giter Site home page Giter Site logo

js2pdfinjector's People

Contributors

cornerpirate avatar rst0git avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

js2pdfinjector's Issues

including complete js file

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.

Redirect not working

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?

Run javascript after injection

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

x11

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!

Latest version

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.