Best Manufacturer Awards

Streamline your document creation process with Carbone

Download Template

Download data sample

  • Template type document docx simple
  • Carbone min. v4.0.0+
  • Features loop filter
  • Target classification management result custom

Objectives

Generate a classification with the following feature:

  • display a table with different column widths on the first page compared to subsequent pages.

Solution

Since the layout differs on the first page, the solution uses two tables: one for the first page and another for subsequent pages. The data is then filtered to display in the appropriate table.

Here’s how to construct a template to achieve this with Carbone:

  1. Insert the first table on the first page

    • When defining your layout, determine the data that will fit on the first page (e.g., 3 objects).

    • Use a filter like i < X to select the first X elements.

    Example: {d[i,i<3].manufacturer}

    • Define the iteration [i+1] in row below to generate a row for each key

    Example: {d[i+1,i<3]}

  2. Insert the second table on the second page

    • Use a filter like i > X-1 to display all remaining properties.

    Example: {d[i,i>2].manufacturer}

    • Define its iteration [i+1] in row below to generate a row for each key (e.g., {d[i+1,i>2]}

    Example: {d[i+1,i>2]}

And there you go!

You might also like

Trusted by 600+ paid customers in 40+ countries

Finance
Healthcare
Public
Retail
Industries
Energy
Software
Telecom
1dior.png
22thales.png
23younited.png
2danfoss.png
3cma-cgm.png
3illumina.svg
4KparK.png
6scalingo.png
7defense.png
8bmw.png
8telus.png
bestseller.png
flagship_bioscience.png
insly.png
ninox.png
sodexo.png