GithubHelp home page GithubHelp logo

erka2010 / html-to-pdf-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thawkin3/html-to-pdf-demo

0.0 1.0 0.0 1.48 MB

Demo of exporting HTML content as PDFs using various html-to-pdf libraries

Home Page: http://tylerhawkins.info/html-to-pdf-demo/

HTML 11.68% JavaScript 88.32%

html-to-pdf-demo's Introduction

HTML to PDF Demo

This project is a demo of exporting HTML content as PDFs using various html-to-pdf libraries. It features a lengthy styled table so that we can explore pieces of functionality like table column headers, table footers, page headers and footers, page numbers, and table styles.

HTML to PDF Libraries Used

Example Exports

I've included several PDFs in the example-exports directory containing the output from the various libraries I explored.

Project Structure

This project is set up in the simplest way possible: no build tools, just an index.html file and some JavaScript files. The main JavaScript file is called pdfExportMethods.js and contains the setup code for each PDF export option. The other JavaScript files are the third-party libraries that I've included in the project rather than pulling from a CDN.

Running Locally

Since there are no build tools included, simply use a static site hosting tool of your choice to run this locally. Some of my favorites are MAMP (or WAMP or LAMP) or the VS Code "Live Server" extension.

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.