aspose_pdf_cloud 18.2.0 → 18.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +46 -42
- data/.swagger-codegen-ignore +58 -58
- data/aspose_pdf_cloud.gemspec +1 -0
- data/lib/aspose_pdf_cloud.rb +6 -2
- data/lib/aspose_pdf_cloud/api/pdf_api.rb +2200 -748
- data/lib/aspose_pdf_cloud/api_client.rb +475 -523
- data/lib/aspose_pdf_cloud/models/color_depth.rb +45 -0
- data/lib/aspose_pdf_cloud/models/compression_type.rb +46 -0
- data/lib/aspose_pdf_cloud/models/doc_format.rb +43 -0
- data/lib/aspose_pdf_cloud/models/field_type.rb +44 -44
- data/lib/aspose_pdf_cloud/models/font_styles.rb +43 -43
- data/lib/aspose_pdf_cloud/models/horizontal_alignment.rb +44 -44
- data/lib/aspose_pdf_cloud/models/link_action_type.rb +46 -46
- data/lib/aspose_pdf_cloud/models/link_highlighting_mode.rb +45 -45
- data/lib/aspose_pdf_cloud/models/pdf_a_type.rb +43 -0
- data/lib/aspose_pdf_cloud/models/recognition_mode.rb +43 -0
- data/lib/aspose_pdf_cloud/models/rotation.rb +44 -44
- data/lib/aspose_pdf_cloud/models/shape_type.rb +44 -0
- data/lib/aspose_pdf_cloud/models/signature_type.rb +42 -42
- data/lib/aspose_pdf_cloud/models/stamp_type.rb +44 -44
- data/lib/aspose_pdf_cloud/models/tiff_export_options.rb +3 -3
- data/lib/aspose_pdf_cloud/version.rb +1 -1
- data/test/pdf_tests.rb +273 -8
- metadata +22 -5
- data/.swagger-codegen/VERSION +0 -1
- data/lib/aspose_pdf_cloud/models/bookmarks.rb +0 -211
- data/lib/aspose_pdf_cloud/models/bookmarks_response.rb +0 -222
@@ -0,0 +1,45 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
Copyright (c) 2018 Aspose.Pdf for Cloud
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
+
SOFTWARE.
|
19
|
+
--------------------------------------------------------------------------------------------------------------------
|
20
|
+
=end
|
21
|
+
|
22
|
+
require 'date'
|
23
|
+
|
24
|
+
module AsposePdfCloud
|
25
|
+
class ColorDepth
|
26
|
+
|
27
|
+
DEFAULT = "Default".freeze
|
28
|
+
FORMAT8BPP = "Format8bpp".freeze
|
29
|
+
FORMAT4BPP = "Format4bpp".freeze
|
30
|
+
FORMAT1BPP = "Format1bpp".freeze
|
31
|
+
|
32
|
+
# Builds the enum from string
|
33
|
+
# @param [String] The enum value in the form of the string
|
34
|
+
# @return [String] The enum value
|
35
|
+
def build_from_hash(value)
|
36
|
+
# resolve issue with Concstant Name modification (ex: "FooName" to :FOO_NAME)
|
37
|
+
# consantValues = ColorDepth.constants.select{|c| c.to_s == value}
|
38
|
+
constantValues = ColorDepth.constants.select{ |const_name| ColorDepth.const_get(const_name) == value}
|
39
|
+
|
40
|
+
raise "Invalid ENUM value #{value} for class #ColorDepth" if constantValues.empty?
|
41
|
+
value
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
Copyright (c) 2018 Aspose.Pdf for Cloud
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
+
SOFTWARE.
|
19
|
+
--------------------------------------------------------------------------------------------------------------------
|
20
|
+
=end
|
21
|
+
|
22
|
+
require 'date'
|
23
|
+
|
24
|
+
module AsposePdfCloud
|
25
|
+
class CompressionType
|
26
|
+
|
27
|
+
LZW = "LZW".freeze
|
28
|
+
CCITT4 = "CCITT4".freeze
|
29
|
+
CCITT3 = "CCITT3".freeze
|
30
|
+
RLE = "RLE".freeze
|
31
|
+
NONE = "None".freeze
|
32
|
+
|
33
|
+
# Builds the enum from string
|
34
|
+
# @param [String] The enum value in the form of the string
|
35
|
+
# @return [String] The enum value
|
36
|
+
def build_from_hash(value)
|
37
|
+
# resolve issue with Concstant Name modification (ex: "FooName" to :FOO_NAME)
|
38
|
+
# consantValues = CompressionType.constants.select{|c| c.to_s == value}
|
39
|
+
constantValues = CompressionType.constants.select{ |const_name| CompressionType.const_get(const_name) == value}
|
40
|
+
|
41
|
+
raise "Invalid ENUM value #{value} for class #CompressionType" if constantValues.empty?
|
42
|
+
value
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
Copyright (c) 2018 Aspose.Pdf for Cloud
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
+
SOFTWARE.
|
19
|
+
--------------------------------------------------------------------------------------------------------------------
|
20
|
+
=end
|
21
|
+
|
22
|
+
require 'date'
|
23
|
+
|
24
|
+
module AsposePdfCloud
|
25
|
+
class DocFormat
|
26
|
+
|
27
|
+
DOC = "Doc".freeze
|
28
|
+
DOC_X = "DocX".freeze
|
29
|
+
|
30
|
+
# Builds the enum from string
|
31
|
+
# @param [String] The enum value in the form of the string
|
32
|
+
# @return [String] The enum value
|
33
|
+
def build_from_hash(value)
|
34
|
+
# resolve issue with Concstant Name modification (ex: "FooName" to :FOO_NAME)
|
35
|
+
# consantValues = DocFormat.constants.select{|c| c.to_s == value}
|
36
|
+
constantValues = DocFormat.constants.select{ |const_name| DocFormat.const_get(const_name) == value}
|
37
|
+
|
38
|
+
raise "Invalid ENUM value #{value} for class #DocFormat" if constantValues.empty?
|
39
|
+
value
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
@@ -1,44 +1,44 @@
|
|
1
|
-
=begin
|
2
|
-
--------------------------------------------------------------------------------------------------------------------
|
3
|
-
Copyright (c) 2018 Aspose.Pdf for Cloud
|
4
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
-
of this software and associated documentation files (the "Software"), to deal
|
6
|
-
in the Software without restriction, including without limitation the rights
|
7
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
-
copies of the Software, and to permit persons to whom the Software is
|
9
|
-
furnished to do so, subject to the following conditions:
|
10
|
-
The above copyright notice and this permission notice shall be included in all
|
11
|
-
copies or substantial portions of the Software.
|
12
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
-
SOFTWARE.
|
19
|
-
--------------------------------------------------------------------------------------------------------------------
|
20
|
-
=end
|
21
|
-
|
22
|
-
require 'date'
|
23
|
-
|
24
|
-
module AsposePdfCloud
|
25
|
-
class FieldType
|
26
|
-
|
27
|
-
TEXT = 0.freeze
|
28
|
-
INTEGER = 1.freeze
|
29
|
-
BOOLEAN = 2.freeze
|
30
|
-
LIST = 3.freeze
|
31
|
-
|
32
|
-
# Builds the enum from string
|
33
|
-
# @param [Fixnum] The enum value in the form of the string
|
34
|
-
# @return [Fixnum] The enum value
|
35
|
-
def build_from_hash(value)
|
36
|
-
constantValues = FieldType.constants.select{ |const_name| FieldType.const_get(const_name) == value}
|
37
|
-
raise "Invalid ENUM value #{value} for class #FieldType" if constantValues.empty?
|
38
|
-
value
|
39
|
-
#constantValues[0]
|
40
|
-
end
|
41
|
-
|
42
|
-
end
|
43
|
-
|
44
|
-
end
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
Copyright (c) 2018 Aspose.Pdf for Cloud
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
+
SOFTWARE.
|
19
|
+
--------------------------------------------------------------------------------------------------------------------
|
20
|
+
=end
|
21
|
+
|
22
|
+
require 'date'
|
23
|
+
|
24
|
+
module AsposePdfCloud
|
25
|
+
class FieldType
|
26
|
+
|
27
|
+
TEXT = 0.freeze
|
28
|
+
INTEGER = 1.freeze
|
29
|
+
BOOLEAN = 2.freeze
|
30
|
+
LIST = 3.freeze
|
31
|
+
|
32
|
+
# Builds the enum from string
|
33
|
+
# @param [Fixnum] The enum value in the form of the string
|
34
|
+
# @return [Fixnum] The enum value
|
35
|
+
def build_from_hash(value)
|
36
|
+
constantValues = FieldType.constants.select{ |const_name| FieldType.const_get(const_name) == value}
|
37
|
+
raise "Invalid ENUM value #{value} for class #FieldType" if constantValues.empty?
|
38
|
+
value
|
39
|
+
#constantValues[0]
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
@@ -1,43 +1,43 @@
|
|
1
|
-
=begin
|
2
|
-
--------------------------------------------------------------------------------------------------------------------
|
3
|
-
Copyright (c) 2018 Aspose.Pdf for Cloud
|
4
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
-
of this software and associated documentation files (the "Software"), to deal
|
6
|
-
in the Software without restriction, including without limitation the rights
|
7
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
-
copies of the Software, and to permit persons to whom the Software is
|
9
|
-
furnished to do so, subject to the following conditions:
|
10
|
-
The above copyright notice and this permission notice shall be included in all
|
11
|
-
copies or substantial portions of the Software.
|
12
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
-
SOFTWARE.
|
19
|
-
--------------------------------------------------------------------------------------------------------------------
|
20
|
-
=end
|
21
|
-
|
22
|
-
require 'date'
|
23
|
-
|
24
|
-
module AsposePdfCloud
|
25
|
-
class FontStyles
|
26
|
-
|
27
|
-
REGULAR = 0.freeze
|
28
|
-
BOLD = 1.freeze
|
29
|
-
ITALIC = 2.freeze
|
30
|
-
|
31
|
-
# Builds the enum from string
|
32
|
-
# @param [Fixnum] The enum value in the form of the string
|
33
|
-
# @return [Fixnum] The enum value
|
34
|
-
def build_from_hash(value)
|
35
|
-
constantValues = FontStyles.constants.select{ |const_name| FontStyles.const_get(const_name) == value}
|
36
|
-
raise "Invalid ENUM value #{value} for class #FontStyles" if constantValues.empty?
|
37
|
-
value
|
38
|
-
#constantValues[0]
|
39
|
-
end
|
40
|
-
|
41
|
-
end
|
42
|
-
|
43
|
-
end
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
Copyright (c) 2018 Aspose.Pdf for Cloud
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
+
SOFTWARE.
|
19
|
+
--------------------------------------------------------------------------------------------------------------------
|
20
|
+
=end
|
21
|
+
|
22
|
+
require 'date'
|
23
|
+
|
24
|
+
module AsposePdfCloud
|
25
|
+
class FontStyles
|
26
|
+
|
27
|
+
REGULAR = 0.freeze
|
28
|
+
BOLD = 1.freeze
|
29
|
+
ITALIC = 2.freeze
|
30
|
+
|
31
|
+
# Builds the enum from string
|
32
|
+
# @param [Fixnum] The enum value in the form of the string
|
33
|
+
# @return [Fixnum] The enum value
|
34
|
+
def build_from_hash(value)
|
35
|
+
constantValues = FontStyles.constants.select{ |const_name| FontStyles.const_get(const_name) == value}
|
36
|
+
raise "Invalid ENUM value #{value} for class #FontStyles" if constantValues.empty?
|
37
|
+
value
|
38
|
+
#constantValues[0]
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
@@ -1,44 +1,44 @@
|
|
1
|
-
=begin
|
2
|
-
--------------------------------------------------------------------------------------------------------------------
|
3
|
-
Copyright (c) 2018 Aspose.Pdf for Cloud
|
4
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
-
of this software and associated documentation files (the "Software"), to deal
|
6
|
-
in the Software without restriction, including without limitation the rights
|
7
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
-
copies of the Software, and to permit persons to whom the Software is
|
9
|
-
furnished to do so, subject to the following conditions:
|
10
|
-
The above copyright notice and this permission notice shall be included in all
|
11
|
-
copies or substantial portions of the Software.
|
12
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
-
SOFTWARE.
|
19
|
-
--------------------------------------------------------------------------------------------------------------------
|
20
|
-
=end
|
21
|
-
|
22
|
-
require 'date'
|
23
|
-
|
24
|
-
module AsposePdfCloud
|
25
|
-
class HorizontalAlignment
|
26
|
-
|
27
|
-
NONE = 0.freeze
|
28
|
-
LEFT = 1.freeze
|
29
|
-
CENTER = 2.freeze
|
30
|
-
RIGHT = 3.freeze
|
31
|
-
|
32
|
-
# Builds the enum from string
|
33
|
-
# @param [Fixnum] The enum value in the form of the string
|
34
|
-
# @return [Fixnum] The enum value
|
35
|
-
def build_from_hash(value)
|
36
|
-
constantValues = HorizontalAlignment.constants.select{ |const_name| HorizontalAlignment.const_get(const_name) == value}
|
37
|
-
raise "Invalid ENUM value #{value} for class #HorizontalAlignment" if constantValues.empty?
|
38
|
-
value
|
39
|
-
#constantValues[0]
|
40
|
-
end
|
41
|
-
|
42
|
-
end
|
43
|
-
|
44
|
-
end
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
Copyright (c) 2018 Aspose.Pdf for Cloud
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
+
SOFTWARE.
|
19
|
+
--------------------------------------------------------------------------------------------------------------------
|
20
|
+
=end
|
21
|
+
|
22
|
+
require 'date'
|
23
|
+
|
24
|
+
module AsposePdfCloud
|
25
|
+
class HorizontalAlignment
|
26
|
+
|
27
|
+
NONE = 0.freeze
|
28
|
+
LEFT = 1.freeze
|
29
|
+
CENTER = 2.freeze
|
30
|
+
RIGHT = 3.freeze
|
31
|
+
|
32
|
+
# Builds the enum from string
|
33
|
+
# @param [Fixnum] The enum value in the form of the string
|
34
|
+
# @return [Fixnum] The enum value
|
35
|
+
def build_from_hash(value)
|
36
|
+
constantValues = HorizontalAlignment.constants.select{ |const_name| HorizontalAlignment.const_get(const_name) == value}
|
37
|
+
raise "Invalid ENUM value #{value} for class #HorizontalAlignment" if constantValues.empty?
|
38
|
+
value
|
39
|
+
#constantValues[0]
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
@@ -1,46 +1,46 @@
|
|
1
|
-
=begin
|
2
|
-
--------------------------------------------------------------------------------------------------------------------
|
3
|
-
Copyright (c) 2018 Aspose.Pdf for Cloud
|
4
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
-
of this software and associated documentation files (the "Software"), to deal
|
6
|
-
in the Software without restriction, including without limitation the rights
|
7
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
-
copies of the Software, and to permit persons to whom the Software is
|
9
|
-
furnished to do so, subject to the following conditions:
|
10
|
-
The above copyright notice and this permission notice shall be included in all
|
11
|
-
copies or substantial portions of the Software.
|
12
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
-
SOFTWARE.
|
19
|
-
--------------------------------------------------------------------------------------------------------------------
|
20
|
-
=end
|
21
|
-
|
22
|
-
require 'date'
|
23
|
-
|
24
|
-
module AsposePdfCloud
|
25
|
-
class LinkActionType
|
26
|
-
|
27
|
-
GO_TO_ACTION = 0.freeze
|
28
|
-
GO_TO_URI_ACTION = 1.freeze
|
29
|
-
JAVASCRIPT_ACTION = 2.freeze
|
30
|
-
LAUNCH_ACTION = 3.freeze
|
31
|
-
NAMED_ACTION = 4.freeze
|
32
|
-
SUBMIT_FORM_ACTION = 5.freeze
|
33
|
-
|
34
|
-
# Builds the enum from string
|
35
|
-
# @param [Fixnum] The enum value in the form of the string
|
36
|
-
# @return [Fixnum] The enum value
|
37
|
-
def build_from_hash(value)
|
38
|
-
constantValues = LinkActionType.constants.select{ |const_name| LinkActionType.const_get(const_name) == value}
|
39
|
-
raise "Invalid ENUM value #{value} for class #LinkActionType" if constantValues.empty?
|
40
|
-
value
|
41
|
-
#constantValues[0]
|
42
|
-
end
|
43
|
-
|
44
|
-
end
|
45
|
-
|
46
|
-
end
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
Copyright (c) 2018 Aspose.Pdf for Cloud
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
+
SOFTWARE.
|
19
|
+
--------------------------------------------------------------------------------------------------------------------
|
20
|
+
=end
|
21
|
+
|
22
|
+
require 'date'
|
23
|
+
|
24
|
+
module AsposePdfCloud
|
25
|
+
class LinkActionType
|
26
|
+
|
27
|
+
GO_TO_ACTION = 0.freeze
|
28
|
+
GO_TO_URI_ACTION = 1.freeze
|
29
|
+
JAVASCRIPT_ACTION = 2.freeze
|
30
|
+
LAUNCH_ACTION = 3.freeze
|
31
|
+
NAMED_ACTION = 4.freeze
|
32
|
+
SUBMIT_FORM_ACTION = 5.freeze
|
33
|
+
|
34
|
+
# Builds the enum from string
|
35
|
+
# @param [Fixnum] The enum value in the form of the string
|
36
|
+
# @return [Fixnum] The enum value
|
37
|
+
def build_from_hash(value)
|
38
|
+
constantValues = LinkActionType.constants.select{ |const_name| LinkActionType.const_get(const_name) == value}
|
39
|
+
raise "Invalid ENUM value #{value} for class #LinkActionType" if constantValues.empty?
|
40
|
+
value
|
41
|
+
#constantValues[0]
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|