34
Views
8
Comments
Solved
[Ultimate PDF] PDF page break in middle of content
ultimate-pdf
Reactive icon
Forge component by Leonardo Fernandes
Application Type
Reactive

Hi,

We are exporting Survey using Ultimate PDF component. We are facing the issue of page break in between the section.

Our page content is dynamic. We want Question and answer to be displayed on same page.

In below example we can see the question is braked to next page. 


We have used AvoidPageBreak block but it hasn't solve the problem.

Best Regards,

Nitin

Solution


Hi Nitin.

Try using the AvoidPageBreak block from Ultimate PDF, and place both the question and answer inside of it.


Before:



After:

Hi Nitin. Please install Ultimate PDF Management, and download an execution log of that report, and attach it here.

Thanks @Leonardo Fernandes

We are taking approval to install Ultimate PDF Management. I will upload execution log.

 
MVP

Can you share your oml for this ?

Hi Toto,

We can't share the actual oml because of restrictions.

Attaching sample oml for your understanding.

Thanks!


PDFExport.oml
Solution


Hi Nitin.

Try using the AvoidPageBreak block from Ultimate PDF, and place both the question and answer inside of it.


Before:



After:

Hi @Leonardo Fernandes ,

Do you mean for all the question and answers should be inside AvoidPageBreak block.

So if we have 15 questions, we need to insert 15 AvoidPageBreak blocks in screen?

Regards,

Nitin


Yes.

An alternative would be to use CSS (break-inside: avoid) on a container that wraps each question and answer. See: https://developer.mozilla.org/en-US/docs/Web/CSS/break-inside

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