API Documentation > CorelDRAW > 2025-v26 > Document > IVGDocument
Document.PublishToPDF method
Publishes the specified document to PDF
Syntax:
Sub PublishToPDF(ByVal FileName As String)
Parameters:
Name Type Description
FileName
String
Remarks:
The PublishToPDF method performs publishing to PDF using the parameters set earlier using the PDFSettings property.
Examples:
The following VBA example publishes the current document to PDF with some of the settings changed from their defaults.
Sub Test()
With ActiveDocument.PDFSettings
  .Author = "John Doe"
  .ColorMode = pdfCMYK
  .ComplexFillsAsBitmaps = True
  .FountainSteps = 10
End With
ActiveDocument.PublishToPDF "C:\Temp\Document.pdf" 
End Sub