aspose_pdf_cloud 20.4.0 → 20.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +23 -13
- data/docs/ApiInfo.md +10 -0
- data/docs/CheckBoxField.md +1 -0
- data/docs/ChoiceField.md +1 -0
- data/docs/ComboBoxField.md +1 -0
- data/docs/FormField.md +1 -0
- data/docs/ImageCompressionVersion.md +12 -0
- data/docs/ImageEncoding.md +13 -0
- data/docs/ListBoxField.md +1 -0
- data/docs/OptimizeOptions.md +13 -7
- data/docs/OutputFormat.md +11 -0
- data/docs/Paragraph.md +2 -2
- data/docs/PdfAType.md +3 -2
- data/docs/PdfApi.md +172 -22
- data/docs/RadioButtonField.md +1 -0
- data/docs/RadioButtonOptionField.md +1 -0
- data/docs/RedactionAnnotation.md +1 -1
- data/docs/SignatureCustomAppearance.md +1 -1
- data/docs/SignatureField.md +1 -0
- data/docs/TextBoxField.md +1 -0
- data/docs/TextState.md +2 -1
- data/docs/TextStyle.md +1 -0
- data/lib/aspose_pdf_cloud.rb +4 -0
- data/lib/aspose_pdf_cloud/api/pdf_api.rb +484 -32
- data/lib/aspose_pdf_cloud/api_client.rb +1 -1
- data/lib/aspose_pdf_cloud/models/api_info.rb +209 -0
- data/lib/aspose_pdf_cloud/models/check_box_field.rb +11 -1
- data/lib/aspose_pdf_cloud/models/choice_field.rb +11 -1
- data/lib/aspose_pdf_cloud/models/combo_box_field.rb +11 -1
- data/lib/aspose_pdf_cloud/models/form_field.rb +11 -1
- data/lib/aspose_pdf_cloud/models/image_compression_version.rb +45 -0
- data/lib/aspose_pdf_cloud/models/image_encoding.rb +46 -0
- data/lib/aspose_pdf_cloud/models/list_box_field.rb +11 -1
- data/lib/aspose_pdf_cloud/models/optimize_options.rb +60 -35
- data/lib/aspose_pdf_cloud/models/output_format.rb +44 -0
- data/lib/aspose_pdf_cloud/models/paragraph.rb +2 -2
- data/lib/aspose_pdf_cloud/models/pdf_a_type.rb +1 -0
- data/lib/aspose_pdf_cloud/models/radio_button_field.rb +11 -1
- data/lib/aspose_pdf_cloud/models/radio_button_option_field.rb +11 -1
- data/lib/aspose_pdf_cloud/models/redaction_annotation.rb +1 -1
- data/lib/aspose_pdf_cloud/models/signature_custom_appearance.rb +1 -1
- data/lib/aspose_pdf_cloud/models/signature_field.rb +11 -1
- data/lib/aspose_pdf_cloud/models/text_box_field.rb +11 -1
- data/lib/aspose_pdf_cloud/models/text_state.rb +15 -5
- data/lib/aspose_pdf_cloud/models/text_style.rb +14 -4
- data/lib/aspose_pdf_cloud/version.rb +1 -1
- data/test/pdf_tests.rb +25 -22
- data/test_data/Righteous-Regular.ttf +0 -0
- metadata +11 -2
| @@ -23,7 +23,7 @@ require 'date' | |
| 23 23 | 
             
            require 'time'
         | 
| 24 24 |  | 
| 25 25 | 
             
            module AsposePdfCloud
         | 
| 26 | 
            -
              # An abstract class which represents signature  | 
| 26 | 
            +
              # An abstract class which represents signature custom appearance object.
         | 
| 27 27 | 
             
              class SignatureCustomAppearance
         | 
| 28 28 | 
             
                # Gets/sets font family name. It should be existed in the document. Default value: Arial.
         | 
| 29 29 | 
             
                attr_accessor :font_family_name
         | 
| @@ -31,6 +31,9 @@ module AsposePdfCloud | |
| 31 31 | 
             
                # Field name.
         | 
| 32 32 | 
             
                attr_accessor :partial_name
         | 
| 33 33 |  | 
| 34 | 
            +
                # Full Field name.
         | 
| 35 | 
            +
                attr_accessor :full_name
         | 
| 36 | 
            +
             | 
| 34 37 | 
             
                # Field rectangle.
         | 
| 35 38 | 
             
                attr_accessor :rect
         | 
| 36 39 |  | 
| @@ -91,6 +94,7 @@ module AsposePdfCloud | |
| 91 94 | 
             
                  {
         | 
| 92 95 | 
             
                    :'links' => :'Links',
         | 
| 93 96 | 
             
                    :'partial_name' => :'PartialName',
         | 
| 97 | 
            +
                    :'full_name' => :'FullName',
         | 
| 94 98 | 
             
                    :'rect' => :'Rect',
         | 
| 95 99 | 
             
                    :'value' => :'Value',
         | 
| 96 100 | 
             
                    :'page_index' => :'PageIndex',
         | 
| @@ -117,6 +121,7 @@ module AsposePdfCloud | |
| 117 121 | 
             
                  {
         | 
| 118 122 | 
             
                    :'links' => :'Array<Link>',
         | 
| 119 123 | 
             
                    :'partial_name' => :'String',
         | 
| 124 | 
            +
                    :'full_name' => :'String',
         | 
| 120 125 | 
             
                    :'rect' => :'Rectangle',
         | 
| 121 126 | 
             
                    :'value' => :'String',
         | 
| 122 127 | 
             
                    :'page_index' => :'Integer',
         | 
| @@ -156,6 +161,10 @@ module AsposePdfCloud | |
| 156 161 | 
             
                    self.partial_name = attributes[:'PartialName']
         | 
| 157 162 | 
             
                  end
         | 
| 158 163 |  | 
| 164 | 
            +
                  if attributes.has_key?(:'FullName')
         | 
| 165 | 
            +
                    self.full_name = attributes[:'FullName']
         | 
| 166 | 
            +
                  end
         | 
| 167 | 
            +
             | 
| 159 168 | 
             
                  if attributes.has_key?(:'Rect')
         | 
| 160 169 | 
             
                    self.rect = attributes[:'Rect']
         | 
| 161 170 | 
             
                  end
         | 
| @@ -257,6 +266,7 @@ module AsposePdfCloud | |
| 257 266 | 
             
                  self.class == o.class &&
         | 
| 258 267 | 
             
                      links == o.links &&
         | 
| 259 268 | 
             
                      partial_name == o.partial_name &&
         | 
| 269 | 
            +
                      full_name == o.full_name &&
         | 
| 260 270 | 
             
                      rect == o.rect &&
         | 
| 261 271 | 
             
                      value == o.value &&
         | 
| 262 272 | 
             
                      page_index == o.page_index &&
         | 
| @@ -286,7 +296,7 @@ module AsposePdfCloud | |
| 286 296 | 
             
                # Calculates hash code according to all attributes.
         | 
| 287 297 | 
             
                # @return [Fixnum] Hash code
         | 
| 288 298 | 
             
                def hash
         | 
| 289 | 
            -
                  [links, partial_name, rect, value, page_index, height, width, z_index, is_group, parent, is_shared_field, flags, color, contents, margin, highlighting, horizontal_alignment, vertical_alignment, border, signature].hash
         | 
| 299 | 
            +
                  [links, partial_name, full_name, rect, value, page_index, height, width, z_index, is_group, parent, is_shared_field, flags, color, contents, margin, highlighting, horizontal_alignment, vertical_alignment, border, signature].hash
         | 
| 290 300 | 
             
                end
         | 
| 291 301 |  | 
| 292 302 | 
             
                # Builds the object from hash
         | 
| @@ -31,6 +31,9 @@ module AsposePdfCloud | |
| 31 31 | 
             
                # Field name.
         | 
| 32 32 | 
             
                attr_accessor :partial_name
         | 
| 33 33 |  | 
| 34 | 
            +
                # Full Field name.
         | 
| 35 | 
            +
                attr_accessor :full_name
         | 
| 36 | 
            +
             | 
| 34 37 | 
             
                # Field rectangle.
         | 
| 35 38 | 
             
                attr_accessor :rect
         | 
| 36 39 |  | 
| @@ -106,6 +109,7 @@ module AsposePdfCloud | |
| 106 109 | 
             
                  {
         | 
| 107 110 | 
             
                    :'links' => :'Links',
         | 
| 108 111 | 
             
                    :'partial_name' => :'PartialName',
         | 
| 112 | 
            +
                    :'full_name' => :'FullName',
         | 
| 109 113 | 
             
                    :'rect' => :'Rect',
         | 
| 110 114 | 
             
                    :'value' => :'Value',
         | 
| 111 115 | 
             
                    :'page_index' => :'PageIndex',
         | 
| @@ -137,6 +141,7 @@ module AsposePdfCloud | |
| 137 141 | 
             
                  {
         | 
| 138 142 | 
             
                    :'links' => :'Array<Link>',
         | 
| 139 143 | 
             
                    :'partial_name' => :'String',
         | 
| 144 | 
            +
                    :'full_name' => :'String',
         | 
| 140 145 | 
             
                    :'rect' => :'Rectangle',
         | 
| 141 146 | 
             
                    :'value' => :'String',
         | 
| 142 147 | 
             
                    :'page_index' => :'Integer',
         | 
| @@ -181,6 +186,10 @@ module AsposePdfCloud | |
| 181 186 | 
             
                    self.partial_name = attributes[:'PartialName']
         | 
| 182 187 | 
             
                  end
         | 
| 183 188 |  | 
| 189 | 
            +
                  if attributes.has_key?(:'FullName')
         | 
| 190 | 
            +
                    self.full_name = attributes[:'FullName']
         | 
| 191 | 
            +
                  end
         | 
| 192 | 
            +
             | 
| 184 193 | 
             
                  if attributes.has_key?(:'Rect')
         | 
| 185 194 | 
             
                    self.rect = attributes[:'Rect']
         | 
| 186 195 | 
             
                  end
         | 
| @@ -302,6 +311,7 @@ module AsposePdfCloud | |
| 302 311 | 
             
                  self.class == o.class &&
         | 
| 303 312 | 
             
                      links == o.links &&
         | 
| 304 313 | 
             
                      partial_name == o.partial_name &&
         | 
| 314 | 
            +
                      full_name == o.full_name &&
         | 
| 305 315 | 
             
                      rect == o.rect &&
         | 
| 306 316 | 
             
                      value == o.value &&
         | 
| 307 317 | 
             
                      page_index == o.page_index &&
         | 
| @@ -336,7 +346,7 @@ module AsposePdfCloud | |
| 336 346 | 
             
                # Calculates hash code according to all attributes.
         | 
| 337 347 | 
             
                # @return [Fixnum] Hash code
         | 
| 338 348 | 
             
                def hash
         | 
| 339 | 
            -
                  [links, partial_name, rect, value, page_index, height, width, z_index, is_group, parent, is_shared_field, flags, color, contents, margin, highlighting, horizontal_alignment, vertical_alignment, border, multiline, spell_check, scrollable, force_combs, max_len, barcode].hash
         | 
| 349 | 
            +
                  [links, partial_name, full_name, rect, value, page_index, height, width, z_index, is_group, parent, is_shared_field, flags, color, contents, margin, highlighting, horizontal_alignment, vertical_alignment, border, multiline, spell_check, scrollable, force_combs, max_len, barcode].hash
         | 
| 340 350 | 
             
                end
         | 
| 341 351 |  | 
| 342 352 | 
             
                # Builds the object from hash
         | 
| @@ -28,7 +28,7 @@ module AsposePdfCloud | |
| 28 28 | 
             
                # Gets or sets font size of the text.
         | 
| 29 29 | 
             
                attr_accessor :font_size
         | 
| 30 30 |  | 
| 31 | 
            -
                # Gets or sets font of the text.
         | 
| 31 | 
            +
                # Gets or sets font name of the text.
         | 
| 32 32 | 
             
                attr_accessor :font
         | 
| 33 33 |  | 
| 34 34 | 
             
                # Gets or sets foreground color of the text.
         | 
| @@ -40,6 +40,9 @@ module AsposePdfCloud | |
| 40 40 | 
             
                # Sets font style of the text.
         | 
| 41 41 | 
             
                attr_accessor :font_style
         | 
| 42 42 |  | 
| 43 | 
            +
                # Sets path of font file in storage.
         | 
| 44 | 
            +
                attr_accessor :font_file
         | 
| 45 | 
            +
             | 
| 43 46 |  | 
| 44 47 | 
             
                # Attribute mapping from ruby-style variable name to JSON key.
         | 
| 45 48 | 
             
                def self.attribute_map
         | 
| @@ -48,7 +51,8 @@ module AsposePdfCloud | |
| 48 51 | 
             
                    :'font' => :'Font',
         | 
| 49 52 | 
             
                    :'foreground_color' => :'ForegroundColor',
         | 
| 50 53 | 
             
                    :'background_color' => :'BackgroundColor',
         | 
| 51 | 
            -
                    :'font_style' => :'FontStyle'
         | 
| 54 | 
            +
                    :'font_style' => :'FontStyle',
         | 
| 55 | 
            +
                    :'font_file' => :'FontFile'
         | 
| 52 56 | 
             
                  }
         | 
| 53 57 | 
             
                end
         | 
| 54 58 |  | 
| @@ -59,7 +63,8 @@ module AsposePdfCloud | |
| 59 63 | 
             
                    :'font' => :'String',
         | 
| 60 64 | 
             
                    :'foreground_color' => :'Color',
         | 
| 61 65 | 
             
                    :'background_color' => :'Color',
         | 
| 62 | 
            -
                    :'font_style' => :'FontStyles'
         | 
| 66 | 
            +
                    :'font_style' => :'FontStyles',
         | 
| 67 | 
            +
                    :'font_file' => :'String'
         | 
| 63 68 | 
             
                  }
         | 
| 64 69 | 
             
                end
         | 
| 65 70 |  | 
| @@ -91,6 +96,10 @@ module AsposePdfCloud | |
| 91 96 | 
             
                    self.font_style = attributes[:'FontStyle']
         | 
| 92 97 | 
             
                  end
         | 
| 93 98 |  | 
| 99 | 
            +
                  if attributes.has_key?(:'FontFile')
         | 
| 100 | 
            +
                    self.font_file = attributes[:'FontFile']
         | 
| 101 | 
            +
                  end
         | 
| 102 | 
            +
             | 
| 94 103 | 
             
                end
         | 
| 95 104 |  | 
| 96 105 | 
             
                # Show invalid properties with the reasons. Usually used together with valid?
         | 
| @@ -125,7 +134,8 @@ module AsposePdfCloud | |
| 125 134 | 
             
                      font == o.font &&
         | 
| 126 135 | 
             
                      foreground_color == o.foreground_color &&
         | 
| 127 136 | 
             
                      background_color == o.background_color &&
         | 
| 128 | 
            -
                      font_style == o.font_style
         | 
| 137 | 
            +
                      font_style == o.font_style &&
         | 
| 138 | 
            +
                      font_file == o.font_file
         | 
| 129 139 | 
             
                end
         | 
| 130 140 |  | 
| 131 141 | 
             
                # @see the `==` method
         | 
| @@ -137,7 +147,7 @@ module AsposePdfCloud | |
| 137 147 | 
             
                # Calculates hash code according to all attributes.
         | 
| 138 148 | 
             
                # @return [Fixnum] Hash code
         | 
| 139 149 | 
             
                def hash
         | 
| 140 | 
            -
                  [font_size, font, foreground_color, background_color, font_style].hash
         | 
| 150 | 
            +
                  [font_size, font, foreground_color, background_color, font_style, font_file].hash
         | 
| 141 151 | 
             
                end
         | 
| 142 152 |  | 
| 143 153 | 
             
                # Builds the object from hash
         | 
| @@ -37,6 +37,9 @@ module AsposePdfCloud | |
| 37 37 | 
             
                # Sets background color of the text.
         | 
| 38 38 | 
             
                attr_accessor :background_color
         | 
| 39 39 |  | 
| 40 | 
            +
                # Sets path of font file in storage.
         | 
| 41 | 
            +
                attr_accessor :font_file
         | 
| 42 | 
            +
             | 
| 40 43 |  | 
| 41 44 | 
             
                # Attribute mapping from ruby-style variable name to JSON key.
         | 
| 42 45 | 
             
                def self.attribute_map
         | 
| @@ -44,7 +47,8 @@ module AsposePdfCloud | |
| 44 47 | 
             
                    :'font_size' => :'FontSize',
         | 
| 45 48 | 
             
                    :'font' => :'Font',
         | 
| 46 49 | 
             
                    :'foreground_color' => :'ForegroundColor',
         | 
| 47 | 
            -
                    :'background_color' => :'BackgroundColor'
         | 
| 50 | 
            +
                    :'background_color' => :'BackgroundColor',
         | 
| 51 | 
            +
                    :'font_file' => :'FontFile'
         | 
| 48 52 | 
             
                  }
         | 
| 49 53 | 
             
                end
         | 
| 50 54 |  | 
| @@ -54,7 +58,8 @@ module AsposePdfCloud | |
| 54 58 | 
             
                    :'font_size' => :'Float',
         | 
| 55 59 | 
             
                    :'font' => :'String',
         | 
| 56 60 | 
             
                    :'foreground_color' => :'Color',
         | 
| 57 | 
            -
                    :'background_color' => :'Color'
         | 
| 61 | 
            +
                    :'background_color' => :'Color',
         | 
| 62 | 
            +
                    :'font_file' => :'String'
         | 
| 58 63 | 
             
                  }
         | 
| 59 64 | 
             
                end
         | 
| 60 65 |  | 
| @@ -82,6 +87,10 @@ module AsposePdfCloud | |
| 82 87 | 
             
                    self.background_color = attributes[:'BackgroundColor']
         | 
| 83 88 | 
             
                  end
         | 
| 84 89 |  | 
| 90 | 
            +
                  if attributes.has_key?(:'FontFile')
         | 
| 91 | 
            +
                    self.font_file = attributes[:'FontFile']
         | 
| 92 | 
            +
                  end
         | 
| 93 | 
            +
             | 
| 85 94 | 
             
                end
         | 
| 86 95 |  | 
| 87 96 | 
             
                # Show invalid properties with the reasons. Usually used together with valid?
         | 
| @@ -110,7 +119,8 @@ module AsposePdfCloud | |
| 110 119 | 
             
                      font_size == o.font_size &&
         | 
| 111 120 | 
             
                      font == o.font &&
         | 
| 112 121 | 
             
                      foreground_color == o.foreground_color &&
         | 
| 113 | 
            -
                      background_color == o.background_color
         | 
| 122 | 
            +
                      background_color == o.background_color &&
         | 
| 123 | 
            +
                      font_file == o.font_file
         | 
| 114 124 | 
             
                end
         | 
| 115 125 |  | 
| 116 126 | 
             
                # @see the `==` method
         | 
| @@ -122,7 +132,7 @@ module AsposePdfCloud | |
| 122 132 | 
             
                # Calculates hash code according to all attributes.
         | 
| 123 133 | 
             
                # @return [Fixnum] Hash code
         | 
| 124 134 | 
             
                def hash
         | 
| 125 | 
            -
                  [font_size, font, foreground_color, background_color].hash
         | 
| 135 | 
            +
                  [font_size, font, foreground_color, background_color, font_file].hash
         | 
| 126 136 | 
             
                end
         | 
| 127 137 |  | 
| 128 138 | 
             
                # Builds the object from hash
         | 
    
        data/test/pdf_tests.rb
    CHANGED
    
    | @@ -33,7 +33,6 @@ class PdfTests < Minitest::Test | |
| 33 33 | 
             
              def setup
         | 
| 34 34 | 
             
                # Get App key and App SID from https://aspose.cloud
         | 
| 35 35 | 
             
                @pdf_api = PdfApi.new('app_key', 'app_sid')
         | 
| 36 | 
            -
             | 
| 37 36 | 
             
                @temp_folder = 'TempPdfCloud'
         | 
| 38 37 | 
             
                @test_data_folder = '../test_data/'
         | 
| 39 38 |  | 
| @@ -3051,10 +3050,11 @@ class PdfTests < Minitest::Test | |
| 3051 3050 | 
             
              def test_put_pdf_in_storage_to_html
         | 
| 3052 3051 | 
             
                file_name = '4pages.pdf'
         | 
| 3053 3052 | 
             
                upload_file(file_name)
         | 
| 3054 | 
            -
                res_file = ' | 
| 3053 | 
            +
                res_file = 'result_4pages.html'
         | 
| 3055 3054 |  | 
| 3056 3055 | 
             
                opts = {
         | 
| 3057 | 
            -
                    :folder => @temp_folder
         | 
| 3056 | 
            +
                    :folder => @temp_folder,
         | 
| 3057 | 
            +
                    :output_format => OutputFormat::FOLDER
         | 
| 3058 3058 | 
             
                }
         | 
| 3059 3059 | 
             
                response = @pdf_api.put_pdf_in_storage_to_html(file_name, @temp_folder + '/' + res_file, opts)
         | 
| 3060 3060 | 
             
                assert(response, 'Filed to convert PDF to HTML.')
         | 
| @@ -3145,7 +3145,7 @@ class PdfTests < Minitest::Test | |
| 3145 3145 | 
             
                assert(response, 'Filed to convert PDF to PPTX.')
         | 
| 3146 3146 | 
             
              end
         | 
| 3147 3147 |  | 
| 3148 | 
            -
              def  | 
| 3148 | 
            +
              def test_get_pdf_in_storage_to_te_x
         | 
| 3149 3149 | 
             
                file_name = '4pages.pdf'
         | 
| 3150 3150 | 
             
                upload_file(file_name)
         | 
| 3151 3151 |  | 
| @@ -3153,33 +3153,33 @@ class PdfTests < Minitest::Test | |
| 3153 3153 | 
             
                    :folder => @temp_folder
         | 
| 3154 3154 | 
             
                }
         | 
| 3155 3155 |  | 
| 3156 | 
            -
                response = @pdf_api. | 
| 3157 | 
            -
                assert(response, 'Filed to convert PDF to  | 
| 3156 | 
            +
                response = @pdf_api.get_pdf_in_storage_to_te_x(file_name, opts)
         | 
| 3157 | 
            +
                assert(response, 'Filed to convert PDF to Tex.')
         | 
| 3158 3158 | 
             
              end
         | 
| 3159 3159 |  | 
| 3160 | 
            -
              def  | 
| 3160 | 
            +
              def test_put_pdf_in_storage_to_te_x
         | 
| 3161 3161 | 
             
                file_name = '4pages.pdf'
         | 
| 3162 3162 | 
             
                upload_file(file_name)
         | 
| 3163 | 
            -
                res_file = 'result. | 
| 3163 | 
            +
                res_file = 'result.tex'
         | 
| 3164 3164 |  | 
| 3165 3165 | 
             
                opts = {
         | 
| 3166 3166 | 
             
                    :folder => @temp_folder
         | 
| 3167 3167 | 
             
                }
         | 
| 3168 | 
            -
                response = @pdf_api. | 
| 3169 | 
            -
                assert(response, 'Filed to convert PDF to  | 
| 3168 | 
            +
                response = @pdf_api.put_pdf_in_storage_to_te_x(file_name, @temp_folder + '/' + res_file, opts)
         | 
| 3169 | 
            +
                assert(response, 'Filed to convert PDF to TeX.')
         | 
| 3170 3170 | 
             
              end
         | 
| 3171 3171 |  | 
| 3172 3172 |  | 
| 3173 | 
            -
              def  | 
| 3173 | 
            +
              def test_put_pdf_in_request_to_te_x
         | 
| 3174 3174 | 
             
                file_name = '4pages.pdf'
         | 
| 3175 3175 |  | 
| 3176 | 
            -
                res_file = 'result. | 
| 3176 | 
            +
                res_file = 'result.tex'
         | 
| 3177 3177 |  | 
| 3178 3178 | 
             
                opts = {
         | 
| 3179 3179 | 
             
                    :file => ::File.open(@test_data_folder + file_name, 'r') { |io| io.read(io.size) }
         | 
| 3180 3180 | 
             
                }
         | 
| 3181 | 
            -
                response = @pdf_api. | 
| 3182 | 
            -
                assert(response, 'Filed to convert PDF to  | 
| 3181 | 
            +
                response = @pdf_api.put_pdf_in_request_to_te_x(@temp_folder + '/' + res_file, opts)
         | 
| 3182 | 
            +
                assert(response, 'Filed to convert PDF to TeX.')
         | 
| 3183 3183 | 
             
              end
         | 
| 3184 3184 |  | 
| 3185 3185 | 
             
              def test_get_pdf_in_storage_to_mobi_xml
         | 
| @@ -3373,16 +3373,16 @@ class PdfTests < Minitest::Test | |
| 3373 3373 | 
             
              end
         | 
| 3374 3374 |  | 
| 3375 3375 |  | 
| 3376 | 
            -
              def  | 
| 3376 | 
            +
              def test_get_te_x_in_storage_to_pdf
         | 
| 3377 3377 | 
             
                file_name = 'sample.tex'
         | 
| 3378 3378 | 
             
                upload_file(file_name)
         | 
| 3379 3379 |  | 
| 3380 3380 | 
             
                src_path = @temp_folder + '/' + file_name
         | 
| 3381 | 
            -
                response = @pdf_api. | 
| 3382 | 
            -
                assert(response, 'Failed to convert  | 
| 3381 | 
            +
                response = @pdf_api.get_te_x_in_storage_to_pdf(src_path)
         | 
| 3382 | 
            +
                assert(response, 'Failed to convert TeX to pdf.')
         | 
| 3383 3383 | 
             
              end
         | 
| 3384 3384 |  | 
| 3385 | 
            -
              def  | 
| 3385 | 
            +
              def test_put_te_x_in_storage_to_pdf
         | 
| 3386 3386 | 
             
                file_name = 'sample.tex'
         | 
| 3387 3387 | 
             
                upload_file(file_name)
         | 
| 3388 3388 | 
             
                result_name = 'fromTex.pdf'
         | 
| @@ -3391,8 +3391,8 @@ class PdfTests < Minitest::Test | |
| 3391 3391 | 
             
                opts = {
         | 
| 3392 3392 | 
             
                    :dst_folder => @temp_folder
         | 
| 3393 3393 | 
             
                }
         | 
| 3394 | 
            -
                response = @pdf_api. | 
| 3395 | 
            -
                assert(response, 'Failed to convert  | 
| 3394 | 
            +
                response = @pdf_api.put_te_x_in_storage_to_pdf(result_name, src_path, opts)
         | 
| 3395 | 
            +
                assert(response, 'Failed to convert TeX to pdf.')
         | 
| 3396 3396 | 
             
              end
         | 
| 3397 3397 |  | 
| 3398 3398 | 
             
              def test_get_mht_in_storage_to_pdf
         | 
| @@ -5875,6 +5875,8 @@ class PdfTests < Minitest::Test | |
| 5875 5875 | 
             
              def test_put_add_text
         | 
| 5876 5876 | 
             
                file_name = '4pages.pdf'
         | 
| 5877 5877 | 
             
                upload_file(file_name)
         | 
| 5878 | 
            +
                font_name = 'Righteous-Regular.ttf'
         | 
| 5879 | 
            +
                upload_file(font_name)
         | 
| 5878 5880 |  | 
| 5879 5881 | 
             
                page_number = 1
         | 
| 5880 5882 |  | 
| @@ -5897,11 +5899,12 @@ class PdfTests < Minitest::Test | |
| 5897 5899 | 
             
                background_color.b = 0x00
         | 
| 5898 5900 |  | 
| 5899 5901 | 
             
                text_state = TextState.new
         | 
| 5900 | 
            -
                text_state.font = ' | 
| 5902 | 
            +
                text_state.font = 'Righteous'
         | 
| 5901 5903 | 
             
                text_state.font_size = 10
         | 
| 5902 5904 | 
             
                text_state.foreground_color = foreground_color
         | 
| 5903 5905 | 
             
                text_state.background_color = background_color
         | 
| 5904 | 
            -
                text_state.font_style = FontStyles:: | 
| 5906 | 
            +
                text_state.font_style = FontStyles::REGULAR
         | 
| 5907 | 
            +
                text_state.font_file = @temp_folder + '/' + font_name
         | 
| 5905 5908 |  | 
| 5906 5909 | 
             
                segment = Segment.new
         | 
| 5907 5910 | 
             
                segment.value = 'segment 1'
         | 
| Binary file | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: aspose_pdf_cloud
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 20. | 
| 4 | 
            +
              version: 20.9.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Aspose PDF Cloud
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2020- | 
| 11 | 
            +
            date: 2020-09-17 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: json
         | 
| @@ -78,6 +78,7 @@ files: | |
| 78 78 | 
             
            - docs/AnnotationsInfo.md
         | 
| 79 79 | 
             
            - docs/AnnotationsInfoResponse.md
         | 
| 80 80 | 
             
            - docs/AntialiasingProcessingType.md
         | 
| 81 | 
            +
            - docs/ApiInfo.md
         | 
| 81 82 | 
             
            - docs/AsposeResponse.md
         | 
| 82 83 | 
             
            - docs/Attachment.md
         | 
| 83 84 | 
             
            - docs/AttachmentResponse.md
         | 
| @@ -175,6 +176,8 @@ files: | |
| 175 176 | 
             
            - docs/HtmlDocumentType.md
         | 
| 176 177 | 
             
            - docs/HtmlMarkupGenerationModes.md
         | 
| 177 178 | 
             
            - docs/Image.md
         | 
| 179 | 
            +
            - docs/ImageCompressionVersion.md
         | 
| 180 | 
            +
            - docs/ImageEncoding.md
         | 
| 178 181 | 
             
            - docs/ImageFooter.md
         | 
| 179 182 | 
             
            - docs/ImageFragment.md
         | 
| 180 183 | 
             
            - docs/ImageHeader.md
         | 
| @@ -220,6 +223,7 @@ files: | |
| 220 223 | 
             
            - docs/ObjectExist.md
         | 
| 221 224 | 
             
            - docs/OptimizeOptions.md
         | 
| 222 225 | 
             
            - docs/Option.md
         | 
| 226 | 
            +
            - docs/OutputFormat.md
         | 
| 223 227 | 
             
            - docs/Page.md
         | 
| 224 228 | 
             
            - docs/PageLayout.md
         | 
| 225 229 | 
             
            - docs/PageMode.md
         | 
| @@ -361,6 +365,7 @@ files: | |
| 361 365 | 
             
            - lib/aspose_pdf_cloud/models/annotations_info.rb
         | 
| 362 366 | 
             
            - lib/aspose_pdf_cloud/models/annotations_info_response.rb
         | 
| 363 367 | 
             
            - lib/aspose_pdf_cloud/models/antialiasing_processing_type.rb
         | 
| 368 | 
            +
            - lib/aspose_pdf_cloud/models/api_info.rb
         | 
| 364 369 | 
             
            - lib/aspose_pdf_cloud/models/aspose_response.rb
         | 
| 365 370 | 
             
            - lib/aspose_pdf_cloud/models/attachment.rb
         | 
| 366 371 | 
             
            - lib/aspose_pdf_cloud/models/attachment_response.rb
         | 
| @@ -458,6 +463,8 @@ files: | |
| 458 463 | 
             
            - lib/aspose_pdf_cloud/models/html_document_type.rb
         | 
| 459 464 | 
             
            - lib/aspose_pdf_cloud/models/html_markup_generation_modes.rb
         | 
| 460 465 | 
             
            - lib/aspose_pdf_cloud/models/image.rb
         | 
| 466 | 
            +
            - lib/aspose_pdf_cloud/models/image_compression_version.rb
         | 
| 467 | 
            +
            - lib/aspose_pdf_cloud/models/image_encoding.rb
         | 
| 461 468 | 
             
            - lib/aspose_pdf_cloud/models/image_footer.rb
         | 
| 462 469 | 
             
            - lib/aspose_pdf_cloud/models/image_fragment.rb
         | 
| 463 470 | 
             
            - lib/aspose_pdf_cloud/models/image_header.rb
         | 
| @@ -503,6 +510,7 @@ files: | |
| 503 510 | 
             
            - lib/aspose_pdf_cloud/models/object_exist.rb
         | 
| 504 511 | 
             
            - lib/aspose_pdf_cloud/models/optimize_options.rb
         | 
| 505 512 | 
             
            - lib/aspose_pdf_cloud/models/option.rb
         | 
| 513 | 
            +
            - lib/aspose_pdf_cloud/models/output_format.rb
         | 
| 506 514 | 
             
            - lib/aspose_pdf_cloud/models/page.rb
         | 
| 507 515 | 
             
            - lib/aspose_pdf_cloud/models/page_layout.rb
         | 
| 508 516 | 
             
            - lib/aspose_pdf_cloud/models/page_mode.rb
         | 
| @@ -666,6 +674,7 @@ files: | |
| 666 674 | 
             
            - test_data/PdfWithXfaForm.pdf
         | 
| 667 675 | 
             
            - test_data/Penguins.emf
         | 
| 668 676 | 
             
            - test_data/Penguins.jpg
         | 
| 677 | 
            +
            - test_data/Righteous-Regular.ttf
         | 
| 669 678 | 
             
            - test_data/ScreenMovie.swf
         | 
| 670 679 | 
             
            - test_data/Simple.svg
         | 
| 671 680 | 
             
            - test_data/Simple.xps
         |