Git Product home page Git Product logo

Comments (7)

mmarchini avatar mmarchini commented on July 30, 2024 1

You probably want these options:

--window-status <windowStatus>  Wait until window.status is equal to this
                                string before rendering page
--javascript-delay <msec>       Wait some milliseconds for javascript
                                finish (default 200)
--no-stop-slow-scripts          Do not Stop slow running javascripts

--window-status is probably the best option here, because you can control exactly when your page will be rendered by wkhtmltopdf

Maybe these links will help too:
http://wkhtmltopdf.org/usage/wkhtmltopdf.txt
https://groups.google.com/forum/#!msg/wkhtmltopdf-general/vWDe5hUAyJ8/2XbXM2g1ZtYJ:
http://stackoverflow.com/questions/15837932/wkhtmltopdf-with-javascript-delay-not-working

from python-pdfkit.

denisvolokh avatar denisvolokh commented on July 30, 2024

Thank you your hint. I am going to try window status.

from python-pdfkit.

denisvolokh avatar denisvolokh commented on July 30, 2024

Looks like there is problem with rendering when link is in this format www.site.com/#/invoice but it works when I put page like www.site.com/invoice.html.

I could not find any options for this case.

from python-pdfkit.

mmarchini avatar mmarchini commented on July 30, 2024

Are you using any framework (Angular, Backbone, Ember, etc.)? Have you tried rendering this page manually with wkhtmltopdf from the command line?

from python-pdfkit.

AhmedJaballah avatar AhmedJaballah commented on July 30, 2024

Hi,
I have the same issue i have tryed with the options :
--javascript-delay
--no-stop-slow-scripts

But no way plz help

from python-pdfkit.

anuj-bluebash avatar anuj-bluebash commented on July 30, 2024

Getting blank pages for React App pages

from python-pdfkit.

JazzCore avatar JazzCore commented on July 30, 2024

Looks like wkhtmltopdf issue, since it does page parsing and processing, closing.

Sorry that it took so long for me to get to it...

from python-pdfkit.

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.