new CADConvertOptions()
An object containing options for CADConvertOptions
Members
-
<static> LayoutSortOrder
-
Layout sorting options
Properties:
Name Type Description e_default_order
number Default sort order. In this case there is no explicit sort performed, and pages are placed in the order they are encountered in the source document e_alphabetic_order
number Alphabetic sort order e_alphanumeric_order
number Alphanumeric sort order (also called natural sort order)
Methods
-
getAllowThinLines()
-
Gets the value AllowThinLines from the options object Sets drawing line weights to zero
Returns:
the current value for AllowThinLines.- Type
- boolean
-
getAutoRotate()
-
Gets the value AutoRotate from the options object Maps the orientation to the sheet dimensions
Returns:
the current value for AutoRotate.- Type
- boolean
-
getBackgroundColor()
-
Gets the value BackgroundColor from the options object Sets background color for cad conversion (display palette may be adjusted to contrast the chosen background color)
Returns:
the current value for BackgroundColor, in form {R: number, G: number, B: number}- Type
- object
-
getColorMode()
-
Gets the value ColorMode from the options object Sets the color palette used by the drawing export. Possible values are Mono (i.e., monochrome) and Gray (i.e., grayscale), otherwise drawing's original palette is used
Returns:
the current value for ColorMode.- Type
- string
-
getIncludeModel()
-
Gets the value IncludeModel from the options object Instructs the conversion process to include the model layout (default: true). Note that if the model layout is empty, it will never be included in the output
Returns:
the current value for IncludeModel.- Type
- boolean
-
getLayoutSortOrder()
-
Gets the value LayoutSortOrder from the options object Specifies how the layout is sorted during cad to pdf conversion. This affects how each layout is inserted into the output pdf (each layout becomes a pdf page).
Returns:
the current value for LayoutSortOrder.- Type
- number
Example
Return value: <pre> PDFNet.Convert.CADConvertOptions.LayoutSortOrder = { e_default_order : 0 e_alphabetic_order : 1 e_alphanumeric_order : 2 } </pre>
-
getMaxXrefDepth()
-
Gets the value MaxXrefDepth from the options object Maximum resolution depth for nested xrefs. Root drawing starts at level 0, subsequent nested levels increment by 1. Nested xrefs at levels greater than specified will not be loaded.
Returns:
the current value for MaxXrefDepth.- Type
- number
-
getPageHeight()
-
Gets the value PageHeight from the options object The height of the output pdf, in millimeters
Returns:
the current value for PageHeight.- Type
- number
-
getPageWidth()
-
Gets the value PageWidth from the options object The width of the output pdf, in millimeters
Returns:
the current value for PageWidth.- Type
- number
-
getRasterDPI()
-
Gets the value RasterDPI from the options object Rasterization dpi used when rendering 3D content. Currently only applies to .rvt conversions
Returns:
the current value for RasterDPI.- Type
- number
-
getUseScaleFromDocument()
-
Gets the value UseScaleFromDocument from the options object If enabled, sets export paper size equal to layout geometry's coordinate range in mm when ranges are less than 5080 mm. Paper size dimensions are clamped at 5080 mm, and are rescaled if coordinate ranges exceed 5080 mm. Disabled by default.
Returns:
the current value for UseScaleFromDocument.- Type
- boolean
-
getZoomToExtents()
-
Gets the value ZoomToExtents from the options object If enabled, the layout geometry is zoomed to the paper size, otherwise layout settings are applied. Enabled by default.
Returns:
the current value for ZoomToExtents.- Type
- boolean
-
setAllowThinLines(value)
-
Sets the value for AllowThinLines in the options object Sets drawing line weights to zero
Parameters:
Name Type Description value
boolean the new value for AllowThinLines Returns:
this object, for call chaining -
setAutoRotate(value)
-
Sets the value for AutoRotate in the options object Maps the orientation to the sheet dimensions
Parameters:
Name Type Description value
boolean the new value for AutoRotate Returns:
this object, for call chaining -
setBackgroundColor(value)
-
Sets the value for BackgroundColor in the options object Sets background color for cad conversion (display palette may be adjusted to contrast the chosen background color)
Parameters:
Name Type Description value
object the new value for BackgroundColor, in form {R: number, G: number, B: number} Returns:
this object, for call chaining -
setColorMode(value)
-
Sets the value for ColorMode in the options object Sets the color palette used by the drawing export. Possible values are Mono (i.e., monochrome) and Gray (i.e., grayscale), otherwise drawing's original palette is used
Parameters:
Name Type Description value
string the new value for ColorMode Returns:
this object, for call chaining -
setIncludeModel(value)
-
Sets the value for IncludeModel in the options object Instructs the conversion process to include the model layout (default: true). Note that if the model layout is empty, it will never be included in the output
Parameters:
Name Type Description value
boolean the new value for IncludeModel Returns:
this object, for call chaining -
setLayoutSortOrder(value)
-
Sets the value for LayoutSortOrder in the options object Specifies how the layout is sorted during cad to pdf conversion. This affects how each layout is inserted into the output pdf (each layout becomes a pdf page).
Parameters:
Name Type Description value
number the new value for LayoutSortOrder PDFNet.Convert.CADConvertOptions.LayoutSortOrder = { e_default_order : 0 e_alphabetic_order : 1 e_alphanumeric_order : 2 }
Returns:
this object, for call chaining -
setMaxXrefDepth(value)
-
Sets the value for MaxXrefDepth in the options object Maximum resolution depth for nested xrefs. Root drawing starts at level 0, subsequent nested levels increment by 1. Nested xrefs at levels greater than specified will not be loaded.
Parameters:
Name Type Description value
number the new value for MaxXrefDepth Returns:
this object, for call chaining -
setPageHeight(value)
-
Sets the value for PageHeight in the options object The height of the output pdf, in millimeters
Parameters:
Name Type Description value
number the new value for PageHeight Returns:
this object, for call chaining -
setPageWidth(value)
-
Sets the value for PageWidth in the options object The width of the output pdf, in millimeters
Parameters:
Name Type Description value
number the new value for PageWidth Returns:
this object, for call chaining -
setRasterDPI(value)
-
Sets the value for RasterDPI in the options object Rasterization dpi used when rendering 3D content. Currently only applies to .rvt conversions
Parameters:
Name Type Description value
number the new value for RasterDPI Returns:
this object, for call chaining -
setUseScaleFromDocument(value)
-
Sets the value for UseScaleFromDocument in the options object If enabled, sets export paper size equal to layout geometry's coordinate range in mm when ranges are less than 5080 mm. Paper size dimensions are clamped at 5080 mm, and are rescaled if coordinate ranges exceed 5080 mm. Disabled by default.
Parameters:
Name Type Description value
boolean the new value for UseScaleFromDocument Returns:
this object, for call chaining -
setZoomToExtents(value)
-
Sets the value for ZoomToExtents in the options object If enabled, the layout geometry is zoomed to the paper size, otherwise layout settings are applied. Enabled by default.
Parameters:
Name Type Description value
boolean the new value for ZoomToExtents Returns:
this object, for call chaining