Vue Html2pdf screenshot

Vue Html2pdf

Author Avatar Theme by Kempsteven
Updated: 20 Oct 2020
450 Stars

vue-html2pdf converts any vue component or element into PDF, vue-html2pdf is basically a vue wrapper only and uses html2pdf.js behind the scenes.

Overview

VueHTML2PDF is a tool that allows users to convert any Vue component or element into a PDF. It is essentially a Vue wrapper that utilizes html2pdf.js under the hood. Users can explore a demo site and demo Github repository for a better understanding of how to use this package.

Features

  • Convert any Vue component or element into PDF
  • Utilizes html2pdf.js behind the scenes
  • Provides events for different stages of PDF generation
  • Compatible with Nuxt.js
  • Customizable options for PDF generation

Installation

To get started with VueHTML2PDF, follow these steps:

  1. Install the package and its dependencies using NPM:
    npm i vue-html2pdf
    
  2. Review any changes when migrating between different versions.

Summary

VueHTML2PDF is a useful tool for converting Vue components or elements into PDF format. It offers easy installation through NPM and comes with customizable options for a seamless PDF generation process. Users can leverage the provided events and props to have full control over the PDF creation process.