Code Monkey home page Code Monkey logo

crpdf's Introduction

Jorgen Evens logo

Hi, I'm Jorgen Evens

A developer with a passion for open-source software. I love a challenge and enjoy building and running software that scales beyond a single machine.

Get in touch

Interests

  • ๐Ÿง‘โ€๐Ÿ’ป Software Development
  • ๐Ÿ”Œ Infrastructure
  • ๐Ÿ›ก๏ธ Security
  • ๐Ÿ  Home Automation

Work

crpdf's People

Contributors

jorgenevens avatar tlvince avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

tlvince icnocop

crpdf's Issues

Add support for `--encoding`

wkhtmltopdf supports the --encoding command line option.

See https://wkhtmltopdf.org/usage/wkhtmltopdf.txt

If the ability to specify an encoding isn't supported in puppeteer, I'm thinking crPDF should just ignore the command line options.

Currently, crPDF outputs error: unknown option '--encoding' and doesn't produce the expected output.

Thank you.

Add support for `--user-style-sheet`

wkhtmltopdf supports the --user-style-sheet command line option.

See https://wkhtmltopdf.org/usage/wkhtmltopdf.txt

If the ability to specify a user style sheet isn't supported in puppeteer, I'm thinking crPDF should just ignore the command line options.

Currently, crPDF outputs error: unknown option '--user-style-sheet' and doesn't produce the expected output.

Thank you.

UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '-'

I used wkhtmltopdf and everything worked, but then our hosting provider said to try your library, because wkhtmltopdf is heavy, and I got this error:

OSError at /admin/fulfilment-report/
wkhtmltopdf reported an error:
(node:17000) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '-'
    at Object.fs.openSync (fs.js:646:18)
    at Object.fs.readFileSync (fs.js:551:33)
    at toPDF (/Users/mirzadelic/.nvm/versions/node/v8.15.0/lib/node_modules/crpdf/src/index.js:49:33)
    at Object.<anonymous> (/Users/mirzadelic/.nvm/versions/node/v8.15.0/lib/node_modules/crpdf/src/cli.js:47:1)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Function.Module.runMain (module.js:694:10)
(node:17000) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:17000) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Any solution?

Thanks.

Add support for `--javascript-delay`

Hi.

Thank you for crPDF.

wkhtmltopdf supports the --javascript-delay command line option.

See https://wkhtmltopdf.org/usage/wkhtmltopdf.txt

If a javascript delay isn't supported in puppeteer, I'm thinking crPDF should just ignore the command line option.

Currently, crPDF outputs error: unknown option '--javascript-delay' and doesn't produce the expected output.

Thank you.

Incompatible behavior if `-` is specified as the `output`

When I use wkhtmltox 0.12.5-1.msvc2015-win64 and run the following command:
wkhtmltopdf.exe TestPage.html -

wkhtmltopdf.exe will output the PDF file contents to the console (stdout) instead of to a file.

However, crPDF.exe will output the PDF to a file with the file name -.

I expected crPDF to behave the same as wkhtmltopdf and output the PDF file contents to the console.

Thank you.

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.