Export Pdf with pagination
Export Pdf with pagination
![aaiglesias85](https://secure.gravatar.com/avatar/92bd426865403c8726ca37989277940f/?default=https%3A%2F%2Fvanillicon.com%2F92bd426865403c8726ca37989277940f_200.png&rating=g&size=120)
Hello
I need export file to pdf and put each page pagination
Regards
This question has an accepted answers - jump to answer
This discussion has been closed.
Hello
I need export file to pdf and put each page pagination
Regards
This question has an accepted answers - jump to answer
Answers
Hi @aaiglesias85 ,
Take a look at this example here, this should get you going in the right direction,
Cheers,
Colin
Thanks Colin
I need pagination on footer like this
text: ['page ', { text: page.toString() }, ' of ', { text: pages.toString() }],
doc['footer']=(function(page, pages) {
return {
columns: [
{
alignment: 'left',
fontSize: 10,
text:item_name
},
{
alignment: 'right',
fontSize: 10,
text: ['page ', { text: page.toString() }, ' of ', { text: pages.toString() }],
},
],
margin: 20
}
Hi @aaiglesias85 ,
Take a look at this thread here - it answers it there. Here's a live example with that code.
Cheers,
Colin
Thanks colin
Regards