Code Monkey home page Code Monkey logo

Comments (3)

ceeram avatar ceeram commented on July 29, 2024

afaik wkhtmltopdf has javascript enabled by default and a delay of 200,
CakePdf responsibilty it to render your view templates to generate the
html. Are you using external ,js scripts(jquery etc) or only pure
javascript in a script tag?

2013/10/13 Pelimak [email protected]

I don't know if this is a problem with my set up of CakePDF, or if this is
just impossible with the current plugin, but I cannot get any PDF to
actually read/execute Javascript. If I have an html page with just html and
php, the page will generate just fine; however, it will skip anything in
Javascript tags. I really need to be able to use Javascript when the PDF is
created so that I can create the images I need to be on the document. I am
using wkhtmltopdf as the engine.

I apologize if this has been answered before, but in days of researching
the problem and experimenting with possible solutions, I have found no
information on getting Javascript to work. I would greatly appreciate any
help in this matter. Thanks.


Reply to this email directly or view it on GitHubhttps://github.com//issues/44
.

from cakepdf.

Pelimak avatar Pelimak commented on July 29, 2024

I'm using only pure javascript. If I do something very simple like <script type="text/javascript">alert("test");</script> it will not do the alert. I also tried having it change the text of an html span to see if it was just alerts that did not work; however, that did not do anything either.

from cakepdf.

dakota avatar dakota commented on July 29, 2024

Closing due to inactivity. This sounds like a problem with wkhtmltopdf (If it is possible at all).

from cakepdf.

Related Issues (20)

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.