API Documentation > CorelDRAW > 2025-v26 > PDFVBASettings > IPDFVBASettings
PDFVBASettings.pdfVersion property
Specifies the reader compatibility level of generated document
Syntax:
Property Get pdfVersion() As pdfVersion
Property Let pdfVersion(ByVal Value As pdfVersion)
Remarks:
The pdfVersion property optimizes a PDF file for the specified version.
Examples:
The following VBA example publishes the active document to the PDF/X-1 format.
Sub Test()
ActiveDocument.PDFSettings.pdfVersion = pdfVersionPDFX1
ActiveDocument.PublishToPDF "C:\MyDocument.pdf" 
End Sub