| 
       | 
        
       | Object Model Reference : Classes : D : Document : Methods : Document.PublishToPDF  | 
      
Sub PublishToPDF(FileName As String)
Member of Document
The PublishToPDF method performs publishing to PDF using the parameters set earlier using the PDFSettings property.
|   
Parameter
 
 | 
      
Description
 
 | 
|   
FileName
 
 | 
      
Specifies the full path name of the document that is published to PDF
 
 | 
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  | 
| 
       | 
        
       | 
		      
		          
		             | 
      
Copyright 2013 Corel Corporation. All rights reserved.