API Documentation > CorelDRAW > 2025-v26 > PDFVBASettings > IPDFVBASettings
PDFVBASettings.Subject property
Specifies the document subject
Syntax:
Property Get Subject() As String
Property Let Subject(ByVal Value As String)
Remarks:
The Subject property specifies the subject for a PDF file.
Examples:
The following VBA example publishes the active document to PDF and specifies the file's author, subject, and keywords.
Sub Test()
With ActiveDocument.PDFSettings
  .Author = "Graphix Design, Inc"
  .Keywords = "Animals, Farm, Bulls"
  .Subject = "Animal Farms"
End With
ActiveDocument.PublishToPDF "C:\MyFarm.pdf" 
End Sub