RE: Page Break – Advanced PDF/HTML for Saved Search – labels

Hi –  I am using a PDF/HTML to print Saved Search results for labels.   Our labels can print 10 rows on a page.

Is there a way to do a page break?  I had created this #if statement but not wroking:

 

<#if result?index %10 == 9 && result?index = records?size – 1><pbr /><#elseif result?index % 1 == 2 && result?index != records?size – 1><br />
</#if>

happy2be Rookie Asked on January 19, 2022 in Saved Searches.
Add Comment
2 Answers

Hi,

I think you can simplify the if statement to this:

<#if result?index %10 == 9 && result?index != records?size - 1>
<pbr />
<#else>
<br />
</#if>

Thanks,

Chris

Intermediate Answered on January 21, 2022.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.