PDF

How to configure the generation of PDF.

It is possible to exclude components, or entire pages from being a part of the pdf generation. This is done by configuring Settings.json under App/ui.

Exclude pages

Here the pages specified in pages.excludeFromPdf will be excluded from pdf. If this array is not defined, all pages will be generated.

{
  "pages": {
    "excludeFromPdf": ["side2"]
  }
}

Exclude components

Components specified in components.excludeFromPdf will be excluded from pdf. In this example, the component with id image-component-id will be excluded from pdf.

{
  "$schema": "https://altinncdn.no/schemas/json/layout/layoutSettings.schema.v1.json",
  "components": {
    "excludeFromPdf": ["image-component-id"]
  }
}