You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/groupdocs_conversion_cloud/models/cad_load_options.rb
+64-32Lines changed: 64 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -34,32 +34,53 @@ class CadLoadOptions
34
34
# The format of input file, (\"docx\", for example). This field must be filled with correct input file format when using ConvertDirect method, which accept input file as binary stream, and, because of that, API can correctly handle LoadOptions. In regular conversion, the input file format taken from the input file name and this field ignored.
35
35
attr_accessor:format
36
36
37
-
# Set desired page width for converting CAD document
38
-
attr_accessor:width
39
-
40
-
# Set desired page height for converting CAD document
41
-
attr_accessor:height
42
-
43
37
# Render specific CAD layouts
44
38
attr_accessor:layout_names
45
39
40
+
# Gets or sets a background color.
41
+
attr_accessor:background_color
42
+
43
+
# Gets or sets type of drawing.
44
+
attr_accessor:draw_type
45
+
classEnumAttributeValidator
46
+
attr_reader:datatype
47
+
attr_reader:allowable_values
48
+
49
+
definitialize(datatype,allowable_values)
50
+
@allowable_values=allowable_values.mapdo |value|
51
+
casedatatype.to_s
52
+
when/Integer/i
53
+
value.to_i
54
+
when/Float/i
55
+
value.to_f
56
+
else
57
+
value
58
+
end
59
+
end
60
+
end
61
+
62
+
defvalid?(value)
63
+
!value || allowable_values.include?(value)
64
+
end
65
+
end
66
+
46
67
# Attribute mapping from ruby-style variable name to JSON key.
0 commit comments