Page numbers in footer appended with pdf utils multiple times in a single report



  • Hello @jan_blaha @bjrmatos

    I have one scenario where I need to make multiple files and combine pages together using pdfutils. moreover I need to use the different pages for background as well. so when I'm trying to use footer and background utils together then on some pages the footer is not visible. so for that I had to use footer in multiple files using pdfutils. but If I do that then not able to fetch page numbers properly. Please see the playground below,

    https://playground.jsreport.net/w/happypatel20/aDl7YVQt

    Is there any alternative solution for the same?

    Thanks!



  • In order to have the page numbers right when using the multiple pdf utils operations, you should merge the footer with page numbers just once at as the last operation of the main template.

    Here you can find documentation for the operations order meaning
    https://jsreport.net/learn/pdf-utils#operations-order

    Additionally, the merge operation has an extra option to merge to the front of the document. This is useful when you have a background you want to top the content onto.

    0_1697008310856_upload-21801163-ab04-4825-a1c4-638fea083ba0

    I've updated the playground here with the mentioned. Although I don't fully understand your workspace so you will need to finish it up to your needs

    https://playground.jsreport.net/w/anon/iI~x7S6H



  • Thanks! @admin It's working fine


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.