Configure with .env
A typed BaseConfig object exposes NextPDF’s settings as real PHP properties, and any of them can be overridden from your .env file using the nextpdf.* prefix. Environment overrides flow through BaseConfig to the Pdf library. Defaults stay strongly typed, so your editor and static analysis still see the right shapes.