GithubHelp home page GithubHelp logo

harvestprofit / harvest-profit-pdf Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 575 KB

๐Ÿ“„ Generates PDFs for Harvest Profit

Home Page: https://harvestprofit.github.io/harvest-profit-pdf/

License: MIT License

JavaScript 100.00%
javascript pdf-generation

harvest-profit-pdf's People

Contributors

humphreyja avatar jarydkrish avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

humphreyja

harvest-profit-pdf's Issues

Source Maps

We should enable source maps for this. We already use webpack, so why not?

Add example

We could probably use an example implementation for this repo

Move to jsPDF

So the reason we stayed on PDFKit was that we had a bunch of stuff all built already and because we needed tables that would automatically insert the table header onto the next page by default which was hard to come by. But after taking a second look at some of this, I think it is possible to switch to jsPDF. The main thing this does for us is file size see the last comment here. PDFkit is HUGE (like 2mb) were jsPDF is closer to 50kbs (or something like that). Also, there is this plugin which allows for table headers to show up on every page. Plus I think it has more styling stuff. We would have to do a bit of work to get some of the same layout stuff built back again like page numbers and the logo but I think that would be pretty easy.

As a side note, anyone want to try to build a "react-ish" way of generating PDFs? I'm thinking the render function returns a JSON object which can be put through a PDF generator engine. That'd be cool....

Documentation

We could use more docs. And more linting. And more coffee โ˜•๏ธ

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.