Export on multiple page

Hi

Is there a code we can use so from a certain point in the template everything will always be exported on a new page?

Kind regards

Hi Loic

Thank you for your question.
You can achieve this by using the {% newpage %} tag in your code.

For example:

Some text on the first page.

{% newpage %}

Some other text on the second page. 

Does this help you?

Hello,

I have more or less the same problem. I have a model where there is a checkbox. When you select a check, a text appears below. Is there a code that prevents text from straddling two pages

best regards,

@THANAS

We use {% group %} tags to specify where page breaks can be added in .pdf export file.

Example:

{% nic %}
{:/group}
{:: group}
{% endnic %}

{% stripnewlines %}
{% input custom.test.test1 as:text placeholder:“Additional text” %}
{% endstripnewlines %}

{% nic %}
{:/group}
{:: group}
{% endnic %}

Please note, {% group %} tags should be outside {% stripnewlines %} tags.

1 Like

Hey @Jelena_Sutova,

{% if custom.test1.advance == true %}title1
{% input period.custom.av.test3 as:text default:default_test1 %}{% endif %}

{% if custom.test2.advance == true %}title2
{% input period.custom.av.test2 as:text default:default_test2 %}{% endif %}

{% if custom.test3.advance == true %}title3
{% input period.custom.av.test3 as:text default:default_test3 %}{% endif %}

I have a checkbox, when you select a check, a text appears below. the text is defined by {% capture %}. Everything works fine, but when exporting the text is sometimes on two pages and I don’t know where I should put {::group}?

thank you for your help,

Yours sincerely

Hi @THANAS

{::group} tags should be outside {% stripnewlines %}
This will define the place of page breaks:

{% if custom.test1.advance == true %}
  {% stripnewlines %}
	***title1*** {% newline %}
	{% input period.custom.av.test1 as:text default:default_test1 %}{% newline %}
  {% endstripnewlines %}
  
	{% nic %}
	{:/group}
	{::group}
	{% endnic %}
	
{% endif %}

Page break is after the text in {% input period.custom.av.test1 as:text %}.

Please let me know if you need {% input period.custom.av.test1 as:text %} to have page breaks after each paragraph.

Hi @Jelena_Sutova,

Our problem with @THANAS (my teammate) is that we are talking about a document, not a reconciliation. In our document, we have to choose some “segments”, then the text is appearing. Our problem is that we want an “auto page break” if all the text from the “input” can not be on the same page. Please see here our problem :

@EBR

Thank you for explanation.
Grouping of blocks in Document differs from Reconciliation.

Example of grouping segment in Document:

{% if custom.test1.advance == true %}

	{::group}
	
  {% stripnewlines %}
	***title1*** {% newline %}
	{% input period.custom.av.test1 as:text default:default_test1 %}{% newline %}
  {% endstripnewlines %}
  
	{:/group}  
	
{% endif %}

Please let me know if this works.

Thanks.

Hi @Jelena_Sutova

It works perfectly: thanks a lot for your contribution! :slight_smile:

Have a nice day!