Skip to content
tzayadetPublic

Latest commit

 

History

32 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML to PDF JavaScript

HTML, Markdown & Files to PDF

LIVE DEMO ↗ · SOURCE CODE

A browser-based batch converter for preparing PDF documents from HTML, Markdown, text, local files and accessible URLs.

Live demo Source

Pages deployment

Quality checks

Features

  • HTML, text and Markdown input.
  • Batch conversion queue.
  • Local file and accessible URL input.
  • Preview and per-job status.
  • Retry for failed items.
  • Page settings and continuous-page layouts.
  • Watermarks, PDF merging and download.

Use it

Open the live demo in a modern browser. The application is static and does not require a project backend.

Technology

HTML5, CSS3 and JavaScript, with html2canvas, jsPDF, pdfmake, html-to-pdfmake, Marked.js, PDF.js and JSZip. Libraries are loaded from CDNs, so some functions require an internet connection.

Privacy and limitations

The application has no project backend. Access to external URLs depends on CORS and the source server's policies. Imported HTML is rendered in isolated iframes with scripts disabled.

Do not process confidential documents through external pages unless you have checked where the content is handled and whether any data is transmitted. Performance depends on document size and browser resources.

Validation

The quality workflow checks JavaScript syntax, local asset references, duplicate HTML IDs and restrictive sandbox settings for the document preview iframes:

python scripts/validate_html.py

Requires Python 3.11+ and Node.js 22+.

Deployment

Static browser application published through GitHub Pages. Conversion runs in the user's browser.

License

See LICENSE for the repository's licensing terms.

Releases

Packages

Contributors

Languages