Git Product home page Git Product logo

wkhtmltopdf-issue-traceur's Introduction

Illustration of wkhtmltopdf issue with google/traceur-compiler

My Config

  • wkhtmltopdf 0.12.2.1 (with patched qt)
  • Macos 10.10.2

How to reproduce the issue ?

  • You need node installed (or any http serveur)
  • git clone [email protected]:laguiz/wkhtmltopdf-issue-traceur.git
  • cd wkhtmltopdf-issue-traceur
  • (with node) http-server in root folder
  • Go to http://127.0.0.1:8080/ and make sure you see Static message AND Hello, world!
  • Open new console and try to reproduce doing : wkhtmltopdf --javascript-delay 2000 --debug-javascript http://127.0.0.1:8080/ resultko.pdf

Result observed

The Hello, world! message does not show and logs display this :

Loading pages (1/6)
Warning: undefined:0 TypeError: 'undefined' is not a function     
Warning: undefined:0 ReferenceError: Can't find variable: traceur
Counting pages (2/6)                                               
Resolving links (4/6)                                                       
Loading headers and footers (5/6)                                           
Printing pages (6/6)
Done    

Tested with 0.13 and it's ok

Tested on Windows 7 with this build http://downloads.sourceforge.net/wkhtmltopdf/wkhtmltox-0.13.0-alpha-7b36694_msvc2013-win64.exe and javscript works properly. Hower in my real case I got CSS and other issues probably due to the alpha version of the 0.13 branch.

Here is the output for 0.13 :

> "C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe" --debug-javascript  http://localhost:8080/ resultok.pdf
Loading page (1/2)
Printing pages (2/2)
Done

wkhtmltopdf-issue-traceur's People

Watchers

 avatar  avatar

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.