ExportToPdf Method (IDocumentExporter)

ExportToPdf Method (IDocumentExporter) | Send Feedback
See Also

PathName
  Path and file name to which to save the current view of the drawing

SheetsForExportStrArray
  Array of the names of the sheets in the drawing to export

PageLength
  Length of the page

PageWidth
  Width of the page

Success[out]
  True if the current view of the drawing is saved, false if not

Saves the current view of the drawing as a .pdf (Portable Document Format) file.

# Syntax

Visual Basic |
--- | ---
    Sub ExportToPdf( _
       ByVal PathName As System.String, _
       ByVal SheetsForExportStrArray As System.Object, _
       ByVal PageLength As System.Double, _
       ByVal PageWidth As System.Double, _
       ByRef Success As System.Boolean _
    )

C# |
--- | ---
    void ExportToPdf(
       System.string PathName,
       System.object SheetsForExportStrArray,
       System.double PageLength,
       System.double PageWidth,
       out System.bool Success
    )

JavaScript |
--- | ---
    ExportToPdf(
       PathName : String,
       SheetsForExportStrArray : Array,
       PageLength : Number,
       PageWidth : Number
    ) : Boolean

COM native C++ |
--- | ---
    HRESULT ExportToPdf(
       BSTR PathName,
       VARIANT SheetsForExportStrArray,
       DOUBLE PageLength,
       DOUBLE PageWidth,
       VARIANT_BOOL* Success
    )

C++ |
--- | ---
    DSRESULT ExportToPdf(
       const dsString& PathName,
       const dsStringArray& SheetsForExportStrArray,
       double PageLength,
       double PageWidth,
       bool* Success
    )

#### Parameters

PathName
  Path and file name to which to save the current view of the drawing
SheetsForExportStrArray
  Array of the names of the sheets in the drawing to export
PageLength
  Length of the page
PageWidth
  Width of the page
Success[out] or Return Value
  True if the current view of the drawing is saved, false if not

# See Also

####

IDocumentExporter Interface
IDocumentExporter Members

# Availability

DraftSight V1R1