headerTemplate in PDF export

Is there an example of how to use the headerTemplate and footerTemplate options when exportig a PDF? Whatever HTML I use seems to be ignored.

Thanks

Hello.

Please, try to use:

    diagram.export.pdf({
        header: "<p>some header</p>",
        footer: "<p>some footer</p>",
    })
    diagram.export.png({
        header: "<p>some header</p>",
        footer: "<p>some footer</p>",
    })

Here is the example:
https://snippet.dhtmlx.com/hsk88wz0

Thanks. That works.

You may want to update your API documentation ( pdf Method | DHTMLX JavaScript Diagram Docs) which refers to ‘headerTemplate’ and ‘footerTemplate’ properties.