hajareshyam / pdf-creator-node

This package is used to generate HTML to PDF in Nodejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can font family be set in options during pdf creation?

angelicardz opened this issue · comments

Hii, apart from these options, is there any other option to change default font family? I want to use one font from google fonts

var options = {
        format: "A3",
        orientation: "portrait",
        border: "10mm",
        header: {
            height: "45mm",
            contents: '<div style="text-align: center;">Author: Shyam Hajare</div>'
        },
        footer: {
            height: "28mm",
            contents: {
                first: 'Cover page',
                2: 'Second page', // Any page number is working. 1-based index
                default: '<span style="color: #444;">{{page}}</span>/<span>{{pages}}</span>', // fallback value
                last: 'Last Page'
            }
        }
    };