---
title: "Important: Align defaults of PdfDemand DTO"
manual: "Cart Pdf"
version: "main"
permalink: "https://docs.typo3.org/permalink/extcode/cart-pdf:important-align-defaults-of-pdfdemand-dto@main"
source: "Changelog/8.0/Important-AlignDefaultsOfPdfDemand.rst"
rendered: "2026-11-13T10:23:42+00:00"
---

# Important: Align defaults of PdfDemand DTO {#important-align-defaults-of-pdfdemand-dto}

## Description {#description}

The constructor of `\Extcode\CartPdf\Domain\Model\Dto\PdfDemand` and
`\Extcode\CartPdf\Domain\Model\Dto\PdfDemand::createFromSettings()` used
different default values. Both use the same defaults now, provided as
public constants:

| Constant | Value | Before |
| --- | --- | --- |
| `DEFAULT_DEBUG` | `0` | unchanged |
| `DEFAULT_FONT_SIZE` | `8` | constructor `8`, factory `11` |
| `DEFAULT_FOLD_MARKS_ENABLED` | `false` | constructor `true`, factory `false` |
| `DEFAULT_ADDRESS_FIELD_MARKS_ENABLED` | `false` | constructor `true`, factory `false` |

The rendered documents do not change. The extension creates the DTO only
via `createFromSettings()`, whose defaults for the marks are kept. The
font size of the DTO is not used for rendering.

## Affected Installations {#affected-installations}

Only installations which create a `PdfDemand` object in their own code are
affected:

-   `new PdfDemand()` without arguments disables the fold marks and the
    address field marks now.
-   `PdfDemand::createFromSettings()` without a `fontSize` setting returns
    `8` instead of `11` for `getFontSize()`.

Installations which configure the documents via TypoScript only are not
affected.

## Migration {#migration}

Pass the required values explicitly to the constructor or add the settings
`enableFoldMarks`, `enableAddressFieldMarks` and `fontSize` to the array
given to `createFromSettings()`.
