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/web_load_options.rb
+81-4Lines changed: 81 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -37,19 +37,55 @@ class WebLoadOptions
37
37
# Enable or disable generation of page numbering in converted document. Default: false
38
38
attr_accessor:page_numbering
39
39
40
+
# Get or sets the encoding to be used when loading the web document. If the property is null the encoding will be determined from document character set attribute
41
+
attr_accessor:encoding
42
+
43
+
# Use pdf for the conversion. Default: false
44
+
attr_accessor:use_pdf
45
+
46
+
# Controls how HTML content is rendered. Default: AbsolutePositioning
47
+
attr_accessor:rendering_mode
48
+
classEnumAttributeValidator
49
+
attr_reader:datatype
50
+
attr_reader:allowable_values
51
+
52
+
definitialize(datatype,allowable_values)
53
+
@allowable_values=allowable_values.mapdo |value|
54
+
casedatatype.to_s
55
+
when/Integer/i
56
+
value.to_i
57
+
when/Float/i
58
+
value.to_f
59
+
else
60
+
value
61
+
end
62
+
end
63
+
end
64
+
65
+
defvalid?(value)
66
+
!value || allowable_values.include?(value)
67
+
end
68
+
end
69
+
40
70
# Attribute mapping from ruby-style variable name to JSON key.
0 commit comments