Comments (7)
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.
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.
Did it work out, @blt909 ?
from knpsnappybundle.
@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.
Ok , thanks. Did you ever manage to draw a chart ? See issue #39 you commented?
from knpsnappybundle.
No never
from knpsnappybundle.
Close?
from knpsnappybundle.
Related Issues (20)
- User deprecations in log HOT 4
- Most of options not working HOT 1
- PDF is generated, but message saying format is wrong. HOT 4
- Header and Footer are not displayed HOT 1
- wkhtmltopdf does not support es6 HOT 3
- Warning: Blocked access to file HOT 1
- You must define a binary prior to conversion HOT 4
- Symfony 5 + knp_snappy - failed to load and blocked access errors HOT 9
- Critical CVE in snappy HOT 2
- Symfony 6 + Webpack encore. Css bootstrap not load when export to pdf HOT 9
- Exit with code 1 due to network error: SslHandshakeFailedError (prod env) HOT 4
- JS present inside the twig file not executing HOT 1
- How to use it in cpanel? HOT 1
- Error Installation HOT 2
- wkhtmltopdf has been archived since Jan 2, 2023 HOT 1
- Page Number and Page Header HOT 2
- Version 1.9 is not compatible with Symfony 7.0 HOT 2
- Crash on a too long filePath HOT 1
- impossible to copy content in prod environment HOT 5
- Provide support for filenames with special characters. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from knpsnappybundle.