htmlpdfconversion
Version:
This Package is being used for HTML-PDF Conversion.
45 lines (29 loc) • 1.15 kB
Markdown
HTMLPDFCONVERSION is a Node library for dealing with conversion of HTML content to PDF file .
Use the package manager [npm](https://www.npmjs.com/package/htmlpdfconversion) to install htmlpdfconversion.
```bash
npm install htmlpdfconversion
```
Var request = {
"html": 'html content' ,
"author" : "xyz" //This field is optional
}
```npm
var htmlpdfconversion = require('htmlpdfconversion');
>htmlpdfconversion.convertPdfWithAuthorNameInHeader(request)
>htmlpdfconversion.convertPdf(request)
Sample Function Calling
htmlpdfconversion.convertPdfWithAuthorNameInHeader(request, function(err,res){
if (err) return console.log(err);
})
```
Verify JSON For multiple Line Html content. Please verify the Valid JSON.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
[]