---
title: "Resize a PDF to DIN A4 on CLI"
date: "2023-01-04T17:18:11Z"
lastmod: "2023-01-04T17:18:11Z"
authors:
  - "utzer"
categories:
  - "Allgemein"
canonical_url: "https://newblog.utzer.de/2023/01/04/resize-a-pdf-to-din-a4-on-cli/"
---

Converts a PDF to DIN A4 paper size and centers the content of the input file on the new page without resizing it.

```
pdfjam --outfile file_a4.pdf --frame true --scale 1.0 --noautoscale true --paper a4paper file.pdf
```

Needs package "texlive-extra-utils" on Debian.

