27
Views
4
Comments
Solved
[Ultimate PDF] HideHeaderOnFirstPage not working when only one page
ultimate-pdf
Reactive icon
Forge component by Leonardo Fernandes
Application Type
Reactive

We have a list of different pdfs that are being generated at the same time. We want a custom header for the first page of the PDF, however, when the PDF is only 1 page long it still shows the header, even when HideHeaderOnFirstPage is true. 

It looks like the header in the header overwrites the custom header


When there are multiple pages this function works well:I have attached the pdfs, anyone know how to fix this?

Thank you in advance!

7c816b55-64f8-4b26-9bba-1ee10c41c34a (1).pdf
eeb76ddf-51eb-40d5-931b-d53e9907c854 (1).pdf
Solution


Hi Jani. Indeed, that is a bug, thanks for reporting it. It will be fixed in the next version.

Hello,

If I am right about your problem, there is two way of doing this.

Way One:- 

                     I have attached a sample file for reference,

Way Two:- 

                     if you have a list of data that is to be printed on the PDF you can use the print layout widget inside the list and check 

if (currentrow count is = 0 and GetDummie.List.Length=1 ,True( visible ) , False ( not visible))



PDFSample.oml

In short my issue is this:
When a pdf consists of only one page, the header is still shown, even though it is the first page. "HideHeaderOnFirstPage", won't work when the PDF only consists of one page. Is there a way to go around this specifically? 
I still need to hide the header even if the PDF only fills up one page

Solution


Hi Jani. Indeed, that is a bug, thanks for reporting it. It will be fixed in the next version.

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