Git Product home page Git Product logo

Comments (7)

pilot avatar pilot commented on June 3, 2024

there is several options what can help you
wkhtmltopdf --javascript-delay 5000 --no-stop-slow-scripts --enable-javascript --debug-javascript

but seems it's problem of wkhtmltopdf not able correct include external js files, try:

  • use absolute path to the js file, not path builder {{ app.request.scheme ~'://' ~ app.request.httpHost....
  • include full js to the template (this is should work)

from knpsnappybundle.

blt909 avatar blt909 commented on June 3, 2024

Hi @pilot ,

I tried all of these options one at a time and then together.
It gives me usefull hints, about what fails.

I have several css and js scripts included the same way ({{ app.request.scheme ~'://' ~ app.request.httpHost....) in this page, but only one causes the problem.

I'll look forward to include the full js in the template...

from knpsnappybundle.

webdevilopers avatar webdevilopers commented on June 3, 2024

Did it work out, @blt909 ?

from knpsnappybundle.

blt909 avatar blt909 commented on June 3, 2024

@webdevilopers : No, I had several js files, but there were only one causing the problem (i18next with JQuery integration).
Using all the available options one by one or together did not solve my issue. Local paths and full js in template neither.

I had no feedback in my log, so I've replaced my js translations by the core symfony translations for my pdf exports.

from knpsnappybundle.

webdevilopers avatar webdevilopers commented on June 3, 2024

Ok , thanks. Did you ever manage to draw a chart ? See issue #39 you commented?

from knpsnappybundle.

blt909 avatar blt909 commented on June 3, 2024

No never

from knpsnappybundle.

webdevilopers avatar webdevilopers commented on June 3, 2024

Close?

from knpsnappybundle.

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.