concept PDF version in category itext
appears as: PDF version, PDF Version, PDF version

This is an excerpt from Manning's book iText in Action, Second Edition.
In some cases, iText changes the PDF version automatically. In listing 1.3, you changed the user unit, and this capability was introduced in version 1.6 of the PDF specification. Because you changed the user unit before step
, iText was able to update the PDF version in the header to %PDF-1.6.
It’s a better practice to set the version number with PdfWriter.setPdfVersion() if you use PDF features that are newer than what was available in PDF 1.4. Here’s how to change the PDF version to 1.7.