3

I am a complete rookie in js libraries. I want to create an offline application in chrome, which will as a result convert an html file into pdf.

I discovered that it could be done by Mozilla's pdf.js? How can I start it? I am trying to understand the tutorial, but I am missing smth.

I have html page and a javascript file. Where and what shuold I import, and how to export this html file (forms, text and images) into pdf.

Thanx

mpavlovic89
  • 719
  • 3
  • 14
  • 35

1 Answers1

8

You can't use pdf.js for this. It can only render (some) files. It does not produce PDF, nor does it handle HTML input.

Ika
  • 394
  • 1
  • 14