82
Views
2
Comments
Solved
[Ultimate PDF] Special pagination functionality for PDF
ultimate-pdf
Reactive icon
Forge asset by Leonardo Fernandes
Application Type
Reactive

Hi,


I have a question regarding UltimatePDF.


I'm currently considering a function that downloads PDFs with the following specifications:

- There must be a List with a Table widget as an item.

- A page break occurs at the end of the item in the list.



At that time, if the contents of the list Item are divided, I would like to add page numbers such as 1/3 and 2/3 to the footer of the divided pages.


Could you please tell me how to achieve this functionality?


I have attached the oml created as a sample and a reference image below.


Kind regards,

fnaka


sample.png
sample.oml
2019-07-08 11-04-35
Leonardo Fernandes
 
MVP
Solution

Hi fnaka.

You can place the PrintLayout block inside of the list. In that way, your PDF will be composed of multiple layouts, each layout will have its own header/footer context.


If you want page numbers to restart back at 1 with each item of the list, then you should use the SectionBreak block, and set the input RestartPageNumbers to True:

UserImage.jpg
Jyoti Tawde

In Outsystems ODC, I am using Utlimate PDF to generate two PDFs which are then merge using another plugin called  JoinPDF. Everything is fine so far but the page number of the second PDF that is merged starts from 1. Can anyone help?


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.