API Documentation > CorelDRAW > 2025-v26 > PDFVBASettings > IPDFVBASettings
PDFVBASettings.Linearize property
Specifies whether the PDF document should be optimized for web
Syntax:
Property Get Linearize() As Boolean
Property Let Linearize(ByVal Value As Boolean)
Remarks:
The Linearize property determines whether to optimize a PDF file for the Web.
Examples:
The following VBA example optimizes the active document for the Web and publishes it to PDF.
Sub Test()
ActiveDocument.PDFSettings.Linearize = True
ActiveDocument.PublishToPDF "C:\MyDocument.pdf" 
End Sub