|
Foxit PDF SDK
|
Public Member Functions | |
| def | GetBackground_color_index () |
| Get background color index in the CAD color palette (range: [0-255]). More... | |
| def | GetColor_image_output_dpi () |
| Get color image output DPI setting. More... | |
| def | GetColor_policy () |
| Get the color policy used for the converted PDF document. More... | |
| def | GetDrawing_size_block_reference_name () |
| Get the Name of the block reference used to compute drawing scale. More... | |
| def | GetEnable_diagnostic_log_output () |
| Get whether to output DWG2PDF diagnostic logs. More... | |
| def | GetExport_flags () |
| Get the export flags used for the converted PDF document. More... | |
| def | GetExport_hatches_type () |
| Get the type of solid hatches export. More... | |
| def | GetFrame_block_configuration_path () |
| Get frame block configuration XML path for frame-block export mode. More... | |
| def | GetGeometry_output_dpi () |
| Get geometry output DPI setting. More... | |
| def | GetGradient_export_hatches_type () |
| Get the type of gradient hatches export. More... | |
| def | GetIs_active_layout () |
| Get true means to export the active layout only, while false means not. More... | |
| def | GetIs_output_progress () |
| Get a boolean value which indicates whether to output progress logs. More... | |
| def | GetLayout_index () |
| Get layout index used when fsdk.DWG2PDFSettingData.GetLayout_scope is fsdk.DWG2PDFSettingDataE_DWG2PDFLayoutScopeLayoutByIndex . More... | |
| def | GetLayout_scope () |
| Get layout export scope. More... | |
| def | GetLineweight_scale_factor () |
| Get lineweight scale factor. More... | |
| def | GetLineweight_style_mode () |
| Get plot lineweight style mode. More... | |
| def | GetMaximum_drawing_area () |
| Get maximum allowed drawing frame area (unit is millimeters). More... | |
| def | GetMinimum_export_rect_side_length () |
| Get minimum drawing frame side length used by auto-rectangle export (unit is millimeters). More... | |
| def | GetMonochrome_image_output_dpi () |
| Get monochrome image output DPI setting. More... | |
| def | GetOther_export_hatches_type () |
| Get the type of other (non-solid) hatches export. More... | |
| def | GetOutput_author () |
| Get the author for the output PDF document, an empty string will be used as default. More... | |
| def | GetOutput_creator () |
| Get the creator for the output PDF document, an empty string will be used as default. More... | |
| def | GetOutput_keywords () |
| Get the keywords for the output PDF document, an empty string will be used as default. More... | |
| def | GetOutput_producer () |
| Get the producer for the output PDF document, an empty string will be used as default. More... | |
| def | GetOutput_subject () |
| Get the subject for the output PDF document, an empty string will be used as default. More... | |
| def | GetOutput_title () |
| Get the title for the output PDF document, an empty string will be used as default. More... | |
| def | GetPage_margin () |
| Get page margin (unit is millimeters). More... | |
| def | GetPaper_height () |
| Get the paper height used for the converted PDF document. More... | |
| def | GetPaper_width () |
| Get the paper width used for the converted PDF document. More... | |
| def | GetPlot_scale_factor () |
| Get plot scale factor. More... | |
| def | GetProgress_callback () |
| Get a pointer to a DWG2PDFProgressCallback object which is used to receive the progress of converting DWG to PDF. More... | |
| def | GetSearchable_text_type () |
| Get the type of search text type. More... | |
| def | GetTreat_inches_as_millimeters () |
| Get whether to treat inch-based dimensions as millimeters. More... | |
| def | SetBackground_color_index (value) |
| Set background color index in the CAD color palette (range: [0-255]). More... | |
| def | SetColor_image_output_dpi (value) |
| Set color image output DPI setting. More... | |
| def | SetColor_policy (value) |
| Set the color policy used for the converted PDF document. More... | |
| def | SetDrawing_size_block_reference_name (value) |
| Set the Name of the block reference used to compute drawing scale. More... | |
| def | SetEnable_diagnostic_log_output (value) |
| Set whether to output DWG2PDF diagnostic logs. More... | |
| def | SetExport_flags (value) |
| Set the export flags used for the converted PDF document. More... | |
| def | SetExport_hatches_type (value) |
| Set the type of solid hatches export. More... | |
| def | SetFrame_block_configuration_path (value) |
| Set frame block configuration XML path for frame-block export mode. More... | |
| def | SetGeometry_output_dpi (value) |
| Set geometry output DPI setting. More... | |
| def | SetGradient_export_hatches_type (value) |
| Set the type of gradient hatches export. More... | |
| def | SetIs_active_layout (value) |
| Set true means to export the active layout only, while false means not. More... | |
| def | SetIs_output_progress (value) |
| Set a boolean value which indicates whether to output progress logs. More... | |
| def | SetLayout_index (value) |
| Set layout index used when fsdk.DWG2PDFSettingData.GetLayout_scope is fsdk.DWG2PDFSettingDataE_DWG2PDFLayoutScopeLayoutByIndex . More... | |
| def | SetLayout_scope (value) |
| Set layout export scope. More... | |
| def | SetLineweight_scale_factor (value) |
| Set lineweight scale factor. More... | |
| def | SetLineweight_style_mode (value) |
| Set plot lineweight style mode. More... | |
| def | SetMaximum_drawing_area (value) |
| Set maximum allowed drawing frame area (unit is millimeters). More... | |
| def | SetMinimum_export_rect_side_length (value) |
| Set minimum drawing frame side length used by auto-rectangle export (unit is millimeters). More... | |
| def | SetMonochrome_image_output_dpi (value) |
| Set monochrome image output DPI setting. More... | |
| def | SetOther_export_hatches_type (value) |
| Set the type of other (non-solid) hatches export. More... | |
| def | SetOutput_author (value) |
| Set the author for the output PDF document, an empty string will be used as default. More... | |
| def | SetOutput_creator (value) |
| Set the creator for the output PDF document, an empty string will be used as default. More... | |
| def | SetOutput_keywords (value) |
| Set the keywords for the output PDF document, an empty string will be used as default. More... | |
| def | SetOutput_producer (value) |
| Set the producer for the output PDF document, an empty string will be used as default. More... | |
| def | SetOutput_subject (value) |
| Set the subject for the output PDF document, an empty string will be used as default. More... | |
| def | SetOutput_title (value) |
| Set the title for the output PDF document, an empty string will be used as default. More... | |
| def | SetPage_margin (value) |
| Set page margin (unit is millimeters). More... | |
| def | SetPaper_height (value) |
| Set the paper height used for the converted PDF document. More... | |
| def | SetPaper_width (value) |
| Set the paper width used for the converted PDF document. More... | |
| def | SetPlot_scale_factor (value) |
| Set plot scale factor. More... | |
| def | SetProgress_callback (value) |
| Set a pointer to a DWG2PDFProgressCallback object which is used to receive the progress of converting DWG to PDF. More... | |
| def | SetSearchable_text_type (value) |
| Set the type of search text type. More... | |
| def | SetTreat_inches_as_millimeters (value) |
| Set whether to treat inch-based dimensions as millimeters. More... | |
This class represents settings used for converting DWG to PDF. This would be used in class Convert .
| fsdk.DWG2PDFSettingData.GetBackground_color_index | ( | ) |
Get background color index in the CAD color palette (range: [0-255]).
Default value: 7. Common indices: 0-black, 1-red, 2-yellow, 3-green, 4-aqua, 5-blue, 6-magenta, 7-white, 8-dark gray. Other values follow the standard CAD color palette definitions. Values outside the range [0-255] are normalized to 7.
| fsdk.DWG2PDFSettingData.GetColor_image_output_dpi | ( | ) |
Get color image output DPI setting.
Default value: 400. Valid values are 72, 150, 200, 300, 400, 600 and 1200. Values outside this set are normalized to 400.
| fsdk.DWG2PDFSettingData.GetColor_policy | ( | ) |
Get the color policy used for the converted PDF document.
It use fsdk.DWG2PDFSettingDataE_DWG2PDFColorPolicyNoPolicy as the default value of this option. Please refer to values starting from fsdk.DWG2PDFSettingDataE_DWG2PDFColorPolicyNoPolicy and this should be one of these values.
| fsdk.DWG2PDFSettingData.GetDrawing_size_block_reference_name | ( | ) |
Get the Name of the block reference used to compute drawing scale.
This option is effective only when fsdk.DWG2PDFSettingData.GetLayout_scope is fsdk.DWG2PDFSettingDataE_DWG2PDFLayoutScopeAutoRects . The block is treated as the drawing frame, and its original size is used to determine a scale factor applied during PDF export. If the specified block does not exist, this option will not take effect.
| fsdk.DWG2PDFSettingData.GetEnable_diagnostic_log_output | ( | ) |
Get whether to output DWG2PDF diagnostic logs.
Default value is false. false means disabled, and true means enabled.
| fsdk.DWG2PDFSettingData.GetExport_flags | ( | ) |
Get the export flags used for the converted PDF document.
It use fsdk.DWG2PDFSettingDataE_FlagEmbededTTF as the default value of this option.
| fsdk.DWG2PDFSettingData.GetExport_hatches_type | ( | ) |
Get the type of solid hatches export.
It use fsdk.DWG2PDFSettingDataE_DWG2PDFExportHatchesTypePolygons as the default value of this option. Please refer to values starting from fsdk.DWG2PDFSettingDataE_DWG2PDFExportHatchesTypeBitmap and this should be one of these values.
| fsdk.DWG2PDFSettingData.GetFrame_block_configuration_path | ( | ) |
Get frame block configuration XML path for frame-block export mode.
This file should contain configured title block names in format:
<?xml version="1.0" encoding="utf-8" ?>
<root> <TitleBlock name="Frame1">
<TitleBlock name="Frame2">
</root>
This option is mainly used when fsdk.DWG2PDFSettingData.GetLayout_scope is fsdk.DWG2PDFSettingDataE_DWG2PDFLayoutScopeFrameBlocks . The XML file name is not restricted. Empty string means no external frame-block configuration file is used.
| fsdk.DWG2PDFSettingData.GetGeometry_output_dpi | ( | ) |
Get geometry output DPI setting.
Default value: 400. Valid values are 72, 150, 200, 300, 400, 600 and 1200. Values outside this set are normalized to 400.
| fsdk.DWG2PDFSettingData.GetGradient_export_hatches_type | ( | ) |
Get the type of gradient hatches export.
For this option, only fsdk.DWG2PDFSettingDataE_DWG2PDFExportHatchesTypeBitmap and fsdk.DWG2PDFSettingDataE_DWG2PDFExportHatchesTypeDrawing are supported. It use fsdk.DWG2PDFSettingDataE_DWG2PDFExportHatchesTypeBitmap as the default value of this option. Please refer to values starting from fsdk.DWG2PDFSettingDataE_DWG2PDFExportHatchesTypeBitmap and this should be one of these values
| fsdk.DWG2PDFSettingData.GetIs_active_layout | ( | ) |
Get true means to export the active layout only, while false means not.
| fsdk.DWG2PDFSettingData.GetIs_output_progress | ( | ) |
Get a boolean value which indicates whether to output progress logs.
| fsdk.DWG2PDFSettingData.GetLayout_index | ( | ) |
Get layout index used when fsdk.DWG2PDFSettingData.GetLayout_scope is fsdk.DWG2PDFSettingDataE_DWG2PDFLayoutScopeLayoutByIndex .
The Default value is 1 (the first layout). Values less than 1 are normalized to 1 when using layout by index mode. This option is ignored for other layout scope modes.
| fsdk.DWG2PDFSettingData.GetLayout_scope | ( | ) |
Get layout export scope.
It use fsdk.DWG2PDFSettingDataE_DWG2PDFLayoutScopeCurrentLayout as the default value of this option. Please refer to values starting from fsdk.DWG2PDFSettingDataE_DWG2PDFLayoutScopeModelSpaceOnly . When set to fsdk.DWG2PDFSettingDataE_DWG2PDFLayoutScopeLayoutByIndex , use fsdk.DWG2PDFSettingData.GetLayout_index to specify the target layout index. If an unsupported value is provided, it is normalized to fsdk.DWG2PDFSettingDataE_DWG2PDFLayoutScopeCurrentLayout mode.
| fsdk.DWG2PDFSettingData.GetLineweight_scale_factor | ( | ) |
Get lineweight scale factor.
Default value: 1.0. This option is effective only when fsdk.DWG2PDFSettingData.GetLineweight_style_mode is fsdk.DWG2PDFSettingDataE_DWG2PDFLineweightStyleModeStyleAndLineweight . Values less than or equal to 0 are treated as 1.0.
| fsdk.DWG2PDFSettingData.GetLineweight_style_mode | ( | ) |
Get plot lineweight style mode.
It use fsdk.DWG2PDFSettingDataE_DWG2PDFLineweightStyleModeNoStyleNoLineweight as the default value of this option. Please refer to values starting from fsdk.DWG2PDFSettingDataE_DWG2PDFLineweightStyleModeNoStyleNoLineweight . If an unsupported value is provided, an fsdk.E_ErrParam error will be thrown.
| fsdk.DWG2PDFSettingData.GetMaximum_drawing_area | ( | ) |
Get maximum allowed drawing frame area (unit is millimeters).
Default value is 0. This option is effective only when fsdk.DWG2PDFSettingData.GetLayout_scope is fsdk.DWG2PDFSettingDataE_DWG2PDFLayoutScopeAutoRects or fsdk.DWG2PDFSettingDataE_DWG2PDFLayoutScopeAutoRectsAndAllLayouts . If a drawing frame's area exceeds this value, it will be scaled down to fit within the limit. A value of 0 means no limit. Negative values will be treated as 0.
| fsdk.DWG2PDFSettingData.GetMinimum_export_rect_side_length | ( | ) |
Get minimum drawing frame side length used by auto-rectangle export (unit is millimeters).
Default value is 0. This option is effective only when fsdk.DWG2PDFSettingData.GetLayout_scope is fsdk.DWG2PDFSettingDataE_DWG2PDFLayoutScopeAutoRects . In this mode, any drawing frame whose width or height is smaller than this value will be skipped. If this value exceeds the maximum side length of all detected drawing frames, all frames will be skipped. A value of 0 means no limit. Negative values will be treated as 0.
| fsdk.DWG2PDFSettingData.GetMonochrome_image_output_dpi | ( | ) |
Get monochrome image output DPI setting.
Default value: 400. Valid values are 72, 150, 200, 300, 400, 600 and 1200. Values outside this set are normalized to 400.
| fsdk.DWG2PDFSettingData.GetOther_export_hatches_type | ( | ) |
Get the type of other (non-solid) hatches export.
For this option, only fsdk.DWG2PDFSettingDataE_DWG2PDFExportHatchesTypeBitmap and fsdk.DWG2PDFSettingDataE_DWG2PDFExportHatchesTypeDrawing are supported. It use fsdk.DWG2PDFSettingDataE_DWG2PDFExportHatchesTypeBitmap as the default value of this option. Please refer to values starting from fsdk.DWG2PDFSettingDataE_DWG2PDFExportHatchesTypeBitmap and this should be one of these values
| fsdk.DWG2PDFSettingData.GetOutput_author | ( | ) |
Get the author for the output PDF document, an empty string will be used as default.
| fsdk.DWG2PDFSettingData.GetOutput_creator | ( | ) |
Get the creator for the output PDF document, an empty string will be used as default.
| fsdk.DWG2PDFSettingData.GetOutput_keywords | ( | ) |
Get the keywords for the output PDF document, an empty string will be used as default.
| fsdk.DWG2PDFSettingData.GetOutput_producer | ( | ) |
Get the producer for the output PDF document, an empty string will be used as default.
| fsdk.DWG2PDFSettingData.GetOutput_subject | ( | ) |
Get the subject for the output PDF document, an empty string will be used as default.
| fsdk.DWG2PDFSettingData.GetOutput_title | ( | ) |
Get the title for the output PDF document, an empty string will be used as default.
| fsdk.DWG2PDFSettingData.GetPage_margin | ( | ) |
Get page margin (unit is millimeters).
Default value: 0. Negative values are treated as 0. Values exceeding half of the page size will be set to less than half of the page size.
| fsdk.DWG2PDFSettingData.GetPaper_height | ( | ) |
Get the paper height used for the converted PDF document.
This option can be used if layout geometry will be zoomed to paper size(fsdk.DWG2PDFSettingDataE_FlagZoomToExtentsMode are enabled by export_flags). Effective default value is 297.0f. Unit: millimeters. If this value is less than or equal to 0, it is normalized to 297.0f.
| fsdk.DWG2PDFSettingData.GetPaper_width | ( | ) |
Get the paper width used for the converted PDF document.
This option can be used if layout geometry will be zoomed to paper size(fsdk.DWG2PDFSettingDataE_FlagZoomToExtentsMode are enabled by export_flags). Effective default value is 420.0f. Unit: millimeters. If this value is less than or equal to 0, it is normalized to 420.0f.
| fsdk.DWG2PDFSettingData.GetPlot_scale_factor | ( | ) |
Get plot scale factor.
Default value is 0.99. No strict upper bound is enforced for this value. However, invalid inputs are normalized to maintain stable output. Values less than 0 are normalized to 0.1, and 0 is normalized to 0.99.
| fsdk.DWG2PDFSettingData.GetProgress_callback | ( | ) |
Get a pointer to a DWG2PDFProgressCallback object which is used to receive the progress of converting DWG to PDF.
| fsdk.DWG2PDFSettingData.GetSearchable_text_type | ( | ) |
Get the type of search text type.
This option can be used if SHX or TTF text exported as geometry(fsdk.DWG2PDFSettingDataE_FlagTTFTextAsGeometry and fsdk.DWG2PDFSettingDataE_FlagSHXTextAsGeometry are enabled by export_flags). It use fsdk.DWG2PDFSettingDataE_DWG2PDFSearchableTextTypeNoSearch as the default value of this option. Please refer to values starting from fsdk.DWG2PDFSettingDataE_DWG2PDFSearchableTextTypeNoSearch and this should be one of these values.
| fsdk.DWG2PDFSettingData.GetTreat_inches_as_millimeters | ( | ) |
Get whether to treat inch-based dimensions as millimeters.
Default value is false. This option is effective only when the drawing uses inches as its unit and fsdk.DWG2PDFSettingData.GetLayout_scope is fsdk.DWG2PDFSettingDataE_DWG2PDFLayoutScopeAutoRects . false means disabled, and true means enabled.
| fsdk.DWG2PDFSettingData.SetBackground_color_index | ( | value | ) |
Set background color index in the CAD color palette (range: [0-255]).
Default value: 7. Common indices: 0-black, 1-red, 2-yellow, 3-green, 4-aqua, 5-blue, 6-magenta, 7-white, 8-dark gray. Other values follow the standard CAD color palette definitions. Values outside the range [0-255] are normalized to 7.
| [in] | value | Background color index in the CAD color palette (range: [0-255]). |
| fsdk.DWG2PDFSettingData.SetColor_image_output_dpi | ( | value | ) |
Set color image output DPI setting.
Default value: 400. Valid values are 72, 150, 200, 300, 400, 600 and 1200. Values outside this set are normalized to 400.
| [in] | value | Color image output DPI setting. |
| fsdk.DWG2PDFSettingData.SetColor_policy | ( | value | ) |
Set the color policy used for the converted PDF document.
It use fsdk.DWG2PDFSettingDataE_DWG2PDFColorPolicyNoPolicy as the default value of this option. Please refer to values starting from fsdk.DWG2PDFSettingDataE_DWG2PDFColorPolicyNoPolicy and this should be one of these values.
| [in] | value | The color policy used for the converted PDF document. |
| fsdk.DWG2PDFSettingData.SetDrawing_size_block_reference_name | ( | value | ) |
Set the Name of the block reference used to compute drawing scale.
This option is effective only when fsdk.DWG2PDFSettingData.GetLayout_scope is fsdk.DWG2PDFSettingDataE_DWG2PDFLayoutScopeAutoRects . The block is treated as the drawing frame, and its original size is used to determine a scale factor applied during PDF export. If the specified block does not exist, this option will not take effect.
| [in] | value | The Name of the block reference used to compute drawing scale. |
| fsdk.DWG2PDFSettingData.SetEnable_diagnostic_log_output | ( | value | ) |
Set whether to output DWG2PDF diagnostic logs.
Default value is false. false means disabled, and true means enabled.
| [in] | value | Whether to output DWG2PDF diagnostic logs. |
| fsdk.DWG2PDFSettingData.SetExport_flags | ( | value | ) |
Set the export flags used for the converted PDF document.
It use fsdk.DWG2PDFSettingDataE_FlagEmbededTTF as the default value of this option.
| [in] | value | The export flags used for the converted PDF document. Please refer to values starting from fsdk.DWG2PDFSettingDataE_FlagEmbededTTF and this can be one or a combination of these values It could also be 0, which means all bits in the flag are 0. |
| fsdk.DWG2PDFSettingData.SetExport_hatches_type | ( | value | ) |
Set the type of solid hatches export.
It use fsdk.DWG2PDFSettingDataE_DWG2PDFExportHatchesTypePolygons as the default value of this option. Please refer to values starting from fsdk.DWG2PDFSettingDataE_DWG2PDFExportHatchesTypeBitmap and this should be one of these values.
| [in] | value | The type of solid hatches export. |
| fsdk.DWG2PDFSettingData.SetFrame_block_configuration_path | ( | value | ) |
Set frame block configuration XML path for frame-block export mode.
This file should contain configured title block names in format:
<?xml version="1.0" encoding="utf-8" ?>
<root> <TitleBlock name="Frame1">
<TitleBlock name="Frame2">
</root>
This option is mainly used when fsdk.DWG2PDFSettingData.GetLayout_scope is fsdk.DWG2PDFSettingDataE_DWG2PDFLayoutScopeFrameBlocks . The XML file name is not restricted. Empty string means no external frame-block configuration file is used.
| [in] | value | Frame block configuration XML path for frame-block export mode. |
| fsdk.DWG2PDFSettingData.SetGeometry_output_dpi | ( | value | ) |
Set geometry output DPI setting.
Default value: 400. Valid values are 72, 150, 200, 300, 400, 600 and 1200. Values outside this set are normalized to 400.
| [in] | value | Geometry output DPI setting. |
| fsdk.DWG2PDFSettingData.SetGradient_export_hatches_type | ( | value | ) |
Set the type of gradient hatches export.
For this option, only fsdk.DWG2PDFSettingDataE_DWG2PDFExportHatchesTypeBitmap and fsdk.DWG2PDFSettingDataE_DWG2PDFExportHatchesTypeDrawing are supported. It use fsdk.DWG2PDFSettingDataE_DWG2PDFExportHatchesTypeBitmap as the default value of this option. Please refer to values starting from fsdk.DWG2PDFSettingDataE_DWG2PDFExportHatchesTypeBitmap and this should be one of these values
| [in] | value | The type of gradient hatches export. |
| fsdk.DWG2PDFSettingData.SetIs_active_layout | ( | value | ) |
Set true means to export the active layout only, while false means not.
| [in] | value | true means to export the active layout only, while false means not. Default value: false. |
| fsdk.DWG2PDFSettingData.SetIs_output_progress | ( | value | ) |
Set a boolean value which indicates whether to output progress logs.
| [in] | value | A boolean value which indicates whether to output progress logs. true means to output progress logs, and false means not. Default value: true. |
| fsdk.DWG2PDFSettingData.SetLayout_index | ( | value | ) |
Set layout index used when fsdk.DWG2PDFSettingData.GetLayout_scope is fsdk.DWG2PDFSettingDataE_DWG2PDFLayoutScopeLayoutByIndex .
The Default value is 1 (the first layout). Values less than 1 are normalized to 1 when using layout by index mode. This option is ignored for other layout scope modes.
| [in] | value | Layout index used when fsdk.DWG2PDFSettingData.GetLayout_scope is fsdk.DWG2PDFSettingDataE_DWG2PDFLayoutScopeLayoutByIndex . |
| fsdk.DWG2PDFSettingData.SetLayout_scope | ( | value | ) |
Set layout export scope.
It use fsdk.DWG2PDFSettingDataE_DWG2PDFLayoutScopeCurrentLayout as the default value of this option. Please refer to values starting from fsdk.DWG2PDFSettingDataE_DWG2PDFLayoutScopeModelSpaceOnly . When set to fsdk.DWG2PDFSettingDataE_DWG2PDFLayoutScopeLayoutByIndex , use fsdk.DWG2PDFSettingData.GetLayout_index to specify the target layout index. If an unsupported value is provided, it is normalized to fsdk.DWG2PDFSettingDataE_DWG2PDFLayoutScopeCurrentLayout mode.
| [in] | value | Layout export scope. |
| fsdk.DWG2PDFSettingData.SetLineweight_scale_factor | ( | value | ) |
Set lineweight scale factor.
Default value: 1.0. This option is effective only when fsdk.DWG2PDFSettingData.GetLineweight_style_mode is fsdk.DWG2PDFSettingDataE_DWG2PDFLineweightStyleModeStyleAndLineweight . Values less than or equal to 0 are treated as 1.0.
| [in] | value | Lineweight scale factor. |
| fsdk.DWG2PDFSettingData.SetLineweight_style_mode | ( | value | ) |
Set plot lineweight style mode.
It use fsdk.DWG2PDFSettingDataE_DWG2PDFLineweightStyleModeNoStyleNoLineweight as the default value of this option. Please refer to values starting from fsdk.DWG2PDFSettingDataE_DWG2PDFLineweightStyleModeNoStyleNoLineweight . If an unsupported value is provided, an fsdk.E_ErrParam error will be thrown.
| [in] | value | Plot lineweight style mode. |
| fsdk.DWG2PDFSettingData.SetMaximum_drawing_area | ( | value | ) |
Set maximum allowed drawing frame area (unit is millimeters).
Default value is 0. This option is effective only when fsdk.DWG2PDFSettingData.GetLayout_scope is fsdk.DWG2PDFSettingDataE_DWG2PDFLayoutScopeAutoRects or fsdk.DWG2PDFSettingDataE_DWG2PDFLayoutScopeAutoRectsAndAllLayouts . If a drawing frame's area exceeds this value, it will be scaled down to fit within the limit. A value of 0 means no limit. Negative values will be treated as 0.
| [in] | value | Maximum allowed drawing frame area (unit is millimeters). |
| fsdk.DWG2PDFSettingData.SetMinimum_export_rect_side_length | ( | value | ) |
Set minimum drawing frame side length used by auto-rectangle export (unit is millimeters).
Default value is 0. This option is effective only when fsdk.DWG2PDFSettingData.GetLayout_scope is fsdk.DWG2PDFSettingDataE_DWG2PDFLayoutScopeAutoRects . In this mode, any drawing frame whose width or height is smaller than this value will be skipped. If this value exceeds the maximum side length of all detected drawing frames, all frames will be skipped. A value of 0 means no limit. Negative values will be treated as 0.
| [in] | value | Minimum drawing frame side length used by auto-rectangle export (unit is millimeters). |
| fsdk.DWG2PDFSettingData.SetMonochrome_image_output_dpi | ( | value | ) |
Set monochrome image output DPI setting.
Default value: 400. Valid values are 72, 150, 200, 300, 400, 600 and 1200. Values outside this set are normalized to 400.
| [in] | value | Monochrome image output DPI setting. |
| fsdk.DWG2PDFSettingData.SetOther_export_hatches_type | ( | value | ) |
Set the type of other (non-solid) hatches export.
For this option, only fsdk.DWG2PDFSettingDataE_DWG2PDFExportHatchesTypeBitmap and fsdk.DWG2PDFSettingDataE_DWG2PDFExportHatchesTypeDrawing are supported. It use fsdk.DWG2PDFSettingDataE_DWG2PDFExportHatchesTypeBitmap as the default value of this option. Please refer to values starting from fsdk.DWG2PDFSettingDataE_DWG2PDFExportHatchesTypeBitmap and this should be one of these values
| [in] | value | The type of other (non-solid) hatches export. |
| fsdk.DWG2PDFSettingData.SetOutput_author | ( | value | ) |
Set the author for the output PDF document, an empty string will be used as default.
| [in] | value | The author for the output PDF document, an empty string will be used as default. |
| fsdk.DWG2PDFSettingData.SetOutput_creator | ( | value | ) |
Set the creator for the output PDF document, an empty string will be used as default.
| [in] | value | The creator for the output PDF document, an empty string will be used as default. |
| fsdk.DWG2PDFSettingData.SetOutput_keywords | ( | value | ) |
Set the keywords for the output PDF document, an empty string will be used as default.
| [in] | value | The keywords for the output PDF document, an empty string will be used as default. |
| fsdk.DWG2PDFSettingData.SetOutput_producer | ( | value | ) |
Set the producer for the output PDF document, an empty string will be used as default.
| [in] | value | The producer for the output PDF document, an empty string will be used as default. |
| fsdk.DWG2PDFSettingData.SetOutput_subject | ( | value | ) |
Set the subject for the output PDF document, an empty string will be used as default.
| [in] | value | The subject for the output PDF document, an empty string will be used as default. |
| fsdk.DWG2PDFSettingData.SetOutput_title | ( | value | ) |
Set the title for the output PDF document, an empty string will be used as default.
| [in] | value | The title for the output PDF document, an empty string will be used as default. |
| fsdk.DWG2PDFSettingData.SetPage_margin | ( | value | ) |
Set page margin (unit is millimeters).
Default value: 0. Negative values are treated as 0. Values exceeding half of the page size will be set to less than half of the page size.
| [in] | value | Page margin (unit is millimeters). |
| fsdk.DWG2PDFSettingData.SetPaper_height | ( | value | ) |
Set the paper height used for the converted PDF document.
This option can be used if layout geometry will be zoomed to paper size(fsdk.DWG2PDFSettingDataE_FlagZoomToExtentsMode are enabled by export_flags). Effective default value is 297.0f. Unit: millimeters. If this value is less than or equal to 0, it is normalized to 297.0f.
| [in] | value | The paper height used for the converted PDF document. |
| fsdk.DWG2PDFSettingData.SetPaper_width | ( | value | ) |
Set the paper width used for the converted PDF document.
This option can be used if layout geometry will be zoomed to paper size(fsdk.DWG2PDFSettingDataE_FlagZoomToExtentsMode are enabled by export_flags). Effective default value is 420.0f. Unit: millimeters. If this value is less than or equal to 0, it is normalized to 420.0f.
| [in] | value | The paper width used for the converted PDF document. |
| fsdk.DWG2PDFSettingData.SetPlot_scale_factor | ( | value | ) |
Set plot scale factor.
Default value is 0.99. No strict upper bound is enforced for this value. However, invalid inputs are normalized to maintain stable output. Values less than 0 are normalized to 0.1, and 0 is normalized to 0.99.
| [in] | value | Plot scale factor. |
| fsdk.DWG2PDFSettingData.SetProgress_callback | ( | value | ) |
Set a pointer to a DWG2PDFProgressCallback object which is used to receive the progress of converting DWG to PDF.
| [in] | value | A pointer to a DWG2PDFProgressCallback object which is used to receive the progress of converting DWG to PDF. This parameter can be null. |
| fsdk.DWG2PDFSettingData.SetSearchable_text_type | ( | value | ) |
Set the type of search text type.
This option can be used if SHX or TTF text exported as geometry(fsdk.DWG2PDFSettingDataE_FlagTTFTextAsGeometry and fsdk.DWG2PDFSettingDataE_FlagSHXTextAsGeometry are enabled by export_flags). It use fsdk.DWG2PDFSettingDataE_DWG2PDFSearchableTextTypeNoSearch as the default value of this option. Please refer to values starting from fsdk.DWG2PDFSettingDataE_DWG2PDFSearchableTextTypeNoSearch and this should be one of these values.
| [in] | value | The type of search text type. |
| fsdk.DWG2PDFSettingData.SetTreat_inches_as_millimeters | ( | value | ) |
Set whether to treat inch-based dimensions as millimeters.
Default value is false. This option is effective only when the drawing uses inches as its unit and fsdk.DWG2PDFSettingData.GetLayout_scope is fsdk.DWG2PDFSettingDataE_DWG2PDFLayoutScopeAutoRects . false means disabled, and true means enabled.
| [in] | value | Whether to treat inch-based dimensions as millimeters. |