Coder Social home page Coder Social logo

classcraft-meteor-wkhtmltopdf's People

Contributors

charlesvallieres avatar choyweston avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

tmeasday

classcraft-meteor-wkhtmltopdf's Issues

Any docs?

Is there any docs or getting started guides?

corrupt pdf as output

Hi,

I can't seem to get this package to work.

If I do

generatePDF = (html, {}) ->
  wkhtmltopdf(html, (code, signal) ->
    console.log 'worked!', fs.readFileSync('out.pdf').toString()
  ).pipe(fs.createWriteStream('out.pdf'))

then I get no output at all, no message logged either.

If I try

  wkhtmltopdf(html, (code, signal) ->
    console.log 'worked!', fs.readFileSync('out.pdf').toString()
  ).pipe(fs.createWriteStream('out.pdf'))

Then I get a 3kb corrupt PDF. I guess because the method isnt able to finish in time.

What am I doing wrong?

wkhtmltopdf returns nothing on ubuntu 14.04 when local(os x) works fine

here is a simple meteor method

Meteor.methods({
        genPdf: function () {
            var future = new Future();            
                wkhtmltopdf("<h1>test</h1>", {}, function (code, signal) {
                    future["return"](fs.readFileSync('out.pdf').toString('base64'));
                }).pipe(fs.createWriteStream('out.pdf'));
            return future.wait();
        }
    });

I was able to make this work on my localhost. base64 string returns when i call this methods. But on ubuntu 14.04 methods returns nothing. No errors, no exceptions nothing.

I did a research about wkhtmltopdf binaries and installed couple of different versions but sadly didn't able to make it work.

on ubuntu

which wkhtmltopdf
/usr/local/bin/wkhtmltopdf

how can i solve this issue ?

Where's the css?

Hi, I have this package in my meteor project.

twbs:bootstrap

How do I get to the bootstrap.css at runtime?

Thanks!

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.