PDFExportOptions.openPDF Property

Parent Object: PDFExportOptions
Defined in namespace "adsk::drawing" and the header file is <Drawing/Drawing/PDFExportOptions.h>

Description

Specifies that the PDF file will be opened after export.

Syntax

"pDFExportOptions_var" is a variable referencing a PDFExportOptions object.
# Get the value of the property.
propertyValue = pDFExportOptions_var.openPDF

# Set the value of the property.
pDFExportOptions_var.openPDF = propertyValue
"pDFExportOptions_var" Is a variable referencing a PDFExportOptions Object.
#include <Drawing/Drawing/PDFExportOptions.h>

// Get the value of the property.
boolean propertyValue = pDFExportOptions_var->openPDF();

// Set the value of the property, where value_var is a boolean.
bool returnValue = pDFExportOptions_var->openPDF(value_var);
"pDFExportOptions_var" Is a variable referencing a PDFExportOptions Object.
// Get the value of the property.
propertyValue = pDFExportOptions_var.openPDF;

// Set the value of the property.
pDFExportOptions_var.openPDF = propertyValue;

Property Value

This is a read/write property whose value is a boolean.

Samples

Name Description
Export PDF Sample

Demonstrates exporting a Fusion drawing to PDF using Drawing.exportManager, DrawingExportManager.createPDFExportOptions, and execute. Configures PDFExportOptions for sheet selection (all, range, or current), line weights, and output filename.

Before running: A drawing document must be the active document (not a design). Open or create a drawing with at least one sheet, then run the script from Scripts and Add-Ins. If no drawing is active, the sample reports that a drawing document is required.

Version

Introduced in version December 2020