API Documentation > CorelDRAW > 2025-v26 > PDFVBASettings > IPDFVBASettings
PDFVBASettings.CompressText property
Specifies whether text streams should be compressed
Syntax:
Property Get CompressText() As Boolean
Property Let CompressText(ByVal Value As Boolean)
Remarks:
The CompressText property determines whether to compress text and line art when publishing to PDF.
Examples:
The following code example compresses text and line art when publishing the active document to PDF:
Sub Test()
With ActiveDocument
  .PDFSettings.CompressText = True
  .PublishToPDF "C:\MyDocument.pdf"
  With
  
End Sub