How to preserve leading zeros in a CSV-to-PDF workflow

CSV stores characters without a reliable per-column data type. Import software may interpret an identifier such as 00127 as a number and display 127.

Open the CSV through an import dialog, mark the identifier column as text, and save an XLSX copy. Check a short and a long identifier in the exported PDF against the original CSV in a text editor.

If leading zeros are already absent from the CSV in a plain-text editor, converting to XLSX cannot restore them. Recover the identifier from the issuing system before preparing the PDF.

Related tools

PDF knowledge library