{"repo":"Aymkdn/html-to-pdfmake","free":true,"listed":false,"github":"https://github.com/Aymkdn/html-to-pdfmake","clone":"git clone https://github.com/Aymkdn/html-to-pdfmake.git","description":"This module permits to convert HTML to the PDFMake format","language":"JavaScript","stars":642,"topics":["javascript","pdf"],"license":"MIT","category":"media-processing","readme_excerpt":"html-to-pdfmake Convert HTML to PDFMake format with ease. This library bridges the gap between HTML content and PDFMake document definitions, allowing you to generate PDFs from basic HTML while maintaining based styling and structure. Note : if you need to convert a complex HTML (e.g. something produced by a Rich Text Editor), check some online solutions, like Doppio, or you could try to convert your HTML to canvas or to an image and then to export it to PDF. Note2 : other libraries may work better than this one (like DOM-PDF). This library will have the same limitation as PDFMake. If you need to verify if a style is supported by PDFMake, you can check its documentation. Features - Convert HTML to PDFMake-compatible format - Preserve basic styling and structure - Support for tables, lists, images, and more - Customizable styling options - Works in both browser and Node.js environments - Handle nested elements - Custom tag support - Image handling with reference support Online Demo Try it live with the online demo. Quick Start Browser Usage Node based Project Usage Supported HTML Elements Block Elements - , , to - , , , , , , - , , - Inline Elements - , , , , , - (with support for external and internal links) - , - , - , CSS Properties Support The library handles these CSS properties: Property Support Details ---------- ---------------- background-color Good support border Including individual borders color Good support, including opacity font-family Basic support font-style S","default_branch":null,"files":null,"tree":[],"storefront":"/r/Aymkdn","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Aymkdn/html-to-pdfmake/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}