Loading

Page Break Considerations for OmniStudio Document Generation

Data pubblicazione: Jan 11, 2025
Descrizione

Customers have experienced difficulties inserting page breaks between sections when using the following token structures:

  1. Condition Evaluation Token:
    • Example: {{#IF_token_name}} --> start
      <Content to display>
      {{/IF_token_name}} --> end
  2. Repeating Content Token:
    • Example: {{#token_name}} --> start
      <Content to repeat>
      {{/token_name}} --> end

Refer Document: Tokens in Microsoft Word or Microsoft PowerPoint Documents

These challenges arise when attempting to place page breaks around or within these tokens, often resulting in unexpected blank pages or content misalignment.

Risoluzione

Observations on Page Break Behaviour in Word Documents Under Different Scenarios:

When adding page breaks in a Word document, the behaviour varies depending on the placement and type of page break applied within sections. Below is a detailed explanation of the different scenarios observed:

1. Page Break Before Start Condition:

  • Applying a page break before the start of a section introduces a blank page before the specified condition begins.
  • This results in an extra blank page appearing between the previous and the current section if the conditional section data is not present.
  • For example, if Section A ends and Section B starts with a "Page Break Before Start Condition," a blank page will be inserted between the end of Section A and the start of Section B, potentially causing formatting issues with unnecessary blank space.

2. Page Break After End Condition:

  • Applying a page break after the end of a section causes a blank page to appear after the specified condition concludes.
  • This also results in an additional blank page being inserted between sections if the conditional section data is not present.
  • For instance, if Section B ends with a "Page Break After End Condition," a blank page will be added between the end of Section B and the start of Section C, which can lead to unwanted spacing or misalignment in the document structure.

3. Page Break Between Conditions:

  • When a page break is applied between conditions or sections, it does not introduce any blank pages before or after the sections if the conditional section data is not present.
  • This scenario works correctly when repeatable sections are required in the document, as it maintains a continuous flow without unnecessary spacing disruptions.
  • It ensures that the next section begins on a new page only when necessary and does not disrupt the sequence with unintended blank pages.

Summary of Behaviour:

  • Page Break Before Start Condition: Adds an extra blank page before the section.
  • Page Break After End Condition: Adds an extra blank page after the section.
  • Page Break Between Conditions: No additional blank pages, optimal for repeatable sections.
Numero articolo Knowledge

004052252

 
Caricamento
Salesforce Help | Article