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_pc
Posts: 21Questions: 6Answers: 0
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
This discussion has been closed.
Answers
Hi,
Take a look at this StackOverflow thread - it shows how to change the font size,
Cheers,
Colin
It works! Thank you colin!