Skip to main content

Rotate a Table (PDF)

Paligo has an orient attribute that you can use to rotate tables for PDF outputs. Depending on your requirements, you can rotate a table so that it is shown as Set a Table to Landscape Orientation or Set a Table to Portrait Orientation.

A PDF page showing a table presented in portrait mode. The table header is parallel to the top of the page.
A PDF page with a table set to landscape. The table header is parallel with the left edge of the page so that the table looks as though it has been rotated left minus 90 degrees.

Portrait table (left) and landscape table (right).

Tables are shown as portrait by default (and are always shown as portrait in the editor, even if they are set to be landscape when published). HTML outputs always use portrait orientation as wide tables get a scrollbar to allow users to view all cells in the table.

To set a table to landscape orientation when published to PDF:

Note

The landscape orientation only appears in the published output. In the Paligo editor, the table remains in portrait orientation.

  1. Select the topic or component in the Content Manager to open it in the Editor.

    Content Manager in Paligo. It shows the Documents section contains an Acme 100 Topics folder. Inside the folder there is a publication and many topics, including "Connect to Network (100).

    Alternatively, you can Create a Topic and edit that.

  2. Position the cursor inside the table.

  3. Select the table element or informaltable element in the Element Structure Menu and choose Go to element.

    Element structure menu. The informaltable element is selected revealing a dropdown menu. In the dropdown menu, the Go to element option is highlighted.
  4. Add the orient attribute in the Element Attributes Panel and set its value to land.

    Element attributes panel. The informaltable element is selected. It has an orient attribute and the orient value is set to land.
  5. Select Save. Save icon.

When you publish to PDF, the table is shown in landscape orientation.

Note

If a landscape table is too large for the PDF page, it can extend beyond the boundary of the page. In this situation, we recommend that you redesign the table so that it contains less information. It may be better to create several smaller tables to contain the data.

To set a table to portrait orientation when published to PDF:

  1. Select the topic or component in the Content Manager to open it in the Editor.

    Content Manager in Paligo. It shows the Documents section contains an Acme 100 Topics folder. Inside the folder there is a publication and many topics, including "Connect to Network (100).

    Alternatively, you can Create a Topic and edit that.

  2. Position the cursor inside the table.

  3. Select the table element or informaltable element in the Element Structure Menu and choose Go to element.

    Element structure menu. The informaltable element is selected revealing a dropdown menu. In the dropdown menu, the Go to element option is highlighted.
  4. Add the orient attribute in the Element Attributes Panel and set its value to port.

    Alternatively, you could remove the orient attribute completely, as Paligo uses portrait orientation by default.

    Element attributes panel. The informaltable element is selected. It has an orient attribute and the orient value is set to port.
  5. Select Save. Save icon.