CadLoadOptions
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.conversion.contracts.ValueObject, com.groupdocs.conversion.options.load.LoadOptions
All Implemented Interfaces: java.io.Serializable
public final class CadLoadOptions extends LoadOptions implements Serializable
Options for loading CAD documents.
| Constructor | Description |
|---|---|
| CadLoadOptions() | Initializes new instance of CadLoadOptions class. |
| Method | Description |
|---|---|
| getFormat() | |
| getWidth() | Sets desired page width for converting CAD document |
| setWidth(int value) | Sets desired page width for converting CAD document |
| getHeight() | Sets desired page height for converting CAD document |
| setHeight(int value) | Sets desired page height for converting CAD document |
| getLayoutNames() | Specifies which CAD layouts to be converted |
| setLayoutNames(String[] value) | Specififies which CAD layouts to be converted |
| getDrawType() | Gets type of drawing. |
| setDrawType(CadDrawTypeMode drawType) | Sets type of drawing. |
| getBackgroundColor() | Gets a background color. |
| setBackgroundColor(System.Drawing.Color backgroundColor) | Sets a background color. |
| getFontDirectories() | |
| setFontDirectories(List |
|
| getCtbSources() | Gets the CTB sources. |
| setCtbSources(Map<String,InputStream> ctbSources) | Sets the CTB sources. |
| getDrawColor() | Gets foreground color. |
| setDrawColor(System.Drawing.Color drawColor) | Sets foreground color. |
public CadLoadOptions()
Initializes new instance of CadLoadOptions class.
public CadFileType getFormat()
Input document file type
Returns: CadFileType
public final int getWidth()
Sets desired page width for converting CAD document
Returns: int
public final void setWidth(int value)
Sets desired page width for converting CAD document
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
public final int getHeight()
Sets desired page height for converting CAD document
Returns: int
public final void setHeight(int value)
Sets desired page height for converting CAD document
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
public final String[] getLayoutNames()
Specifies which CAD layouts to be converted
Returns: java.lang.String[]
public final void setLayoutNames(String[] value)
Specififies which CAD layouts to be converted
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String[] |
public CadDrawTypeMode getDrawType()
Gets type of drawing.
Returns: CadDrawTypeMode
public void setDrawType(CadDrawTypeMode drawType)
Sets type of drawing.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| drawType | CadDrawTypeMode |
public System.Drawing.Color getBackgroundColor()
Gets a background color.
Returns: com.aspose.ms.System.Drawing.Color
public void setBackgroundColor(System.Drawing.Color backgroundColor)
Sets a background color.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| backgroundColor | com.aspose.ms.System.Drawing.Color |
public List<String> getFontDirectories()
Returns: java.util.List<java.lang.String>
public void setFontDirectories(List<String> fontDirectories)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fontDirectories | java.util.List<java.lang.String> |
public Map<String,InputStream> getCtbSources()
Gets the CTB sources.
Returns: java.util.Map<java.lang.String,java.io.InputStream>
public void setCtbSources(Map<String,InputStream> ctbSources)
Sets the CTB sources.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| ctbSources | java.util.Map<java.lang.String,java.io.InputStream> |
public System.Drawing.Color getDrawColor()
Gets foreground color.
Returns: com.aspose.ms.System.Drawing.Color
public void setDrawColor(System.Drawing.Color drawColor)
Sets foreground color.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| drawColor | com.aspose.ms.System.Drawing.Color |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.