Header

Header

aaiglesias85aaiglesias85 Posts: 25Questions: 8Answers: 0
edited May 2018 in Free community support

How can put Header when export pdf . My header is a html twig

This question has accepted answers - jump to:

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    Hi @aaiglesias85 ,

    You can use a messageTop like this example here, or you can use title like this example here, or header like this example here.

    Cheers,

    Colin

  • aaiglesias85aaiglesias85 Posts: 25Questions: 8Answers: 0

    Thanks Colin

  • aaiglesias85aaiglesias85 Posts: 25Questions: 8Answers: 0

    Hello Colin

    But I need inlude a Html in my Header

    doc['header']=(function(page, pages) {
    return {
    columns: [
    {
    alignment: 'left',
    fontSize: 10,
    text:title + here inlude my html
    },

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    Hi @aaiglesias85 ,

    It might be the case that pdfmake doesn't support HTML tags - it would be worth seeing if it works in their playground.

    Cheers,

    Colin

  • aaiglesias85aaiglesias85 Posts: 25Questions: 8Answers: 0

    Hi @colin

    Let me check

    regards

This discussion has been closed.