https://github.com/jdiehl/mx-html2pdf
https://github.com/jdiehl/mx-html2pdf
mendix
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jdiehl/mx-html2pdf
- Owner: jdiehl
- Created: 2021-06-09T13:55:08.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-10T10:11:22.000Z (over 4 years ago)
- Last Synced: 2025-01-29T11:18:28.978Z (about 1 year ago)
- Topics: mendix
- Language: JavaScript
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mendix Module - HTML2PDF
This module provides a JS Action that converts an HTML Container into a downloadable PDF.
## Usage
1. Create a Nanoflow
2. Add the MakePDF Action
3. Configure the Action:
Target: The class of the container that should be converted into a PDF (must be unique!)
Filename: The filename used for the downlaoded PDF
Orientation: Landscape or Portrait
Format: PDF (to create a pure pdf) or PNG/JPEG (to create an image)
## Notes
* The module uses [jsPDF](https://github.com/MrRio/jsPDF) and [HTML2Canvas](https://html2canvas.hertzen.com)
* CSS Transforms are not supported in pure PDFs, use PNG or JPEG instead