How can I modify the header text font size in the PDF?

How can I modify the header text font size in the PDF?

otavio_laskosk_pcotavio_laskosk_pc Posts: 21Questions: 6Answers: 0
edited February 2021 in Free community support

I want to increase a header text font size but I can't find a command to do it.

header source:

                    doc['header']=(function(page, pages) {
                        return {
                            columns: [
                                
                            {
                                alignment: 'left',
                        image: 'logo.jpg'
                        width: 100
                        
                                /*text: [
                                    { text: page.toString(), italics: true },
                                    ' / ',
                                    { text: pages.toString(), italics: true }
                                ]*/
                            },
                            {
                                bold: true,
                                fontsize:'100px',
                                text:'Rlatório de Previsões',
                                alignment: 'center',
                                margin:[80,10,0,]
                                
                            },
                            {
                                
                                text: [
                                    { text: page.toString(), italics: true },
                                    ' / ',
                                    { text: pages.toString(), italics: true }
                                ],
                                
                                alignment: 'right',
                                margin:[100,10,0]
                            }

                            
                            
                            ],
                            alignment: 'center',
                            margin: [60, 18,80,100]
                           
                        };
                    });

Anyone know how to do it?

This question has an accepted answers - jump to answer

Answers

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

    Hi,

    Take a look at this StackOverflow thread - it shows how to change the font size,

    Cheers,

    Colin

  • otavio_laskosk_pcotavio_laskosk_pc Posts: 21Questions: 6Answers: 0

    It works! Thank you colin!

This discussion has been closed.