groupdocs 1.8.1 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,15 @@
1
+ ## v.1.9.0
2
+
3
+ **Changes**
4
+ * Deleted `Document#page_fixed_html!`
5
+ * Deleted `Document#page_html!`
6
+ * Deleted `Document#page_html_urls!`
7
+ * Deleted `Document#representations!`
8
+
9
+ **New**
10
+ * Added new attributes `User`
11
+ * Added new attribute `Signature::Envelope` - "lockDuringSign"
12
+
1
13
  ## v1.8.1
2
14
 
3
15
  **New**
@@ -73,9 +73,7 @@ module GroupDocs
73
73
  end
74
74
  end
75
75
 
76
- # Changed in version 1.8.1
77
- #
78
- #
76
+ #
79
77
  # Signs given documents with signatures.
80
78
  #
81
79
  # @example
@@ -88,9 +86,9 @@ module GroupDocs
88
86
  # signature_one = GroupDocs::Signature.new(name: 'John Smith', image_path: '~/Documents/signature_one.png')
89
87
  # signature_two = GroupDocs::Signature.new(name: 'Sara Smith', image_path: '~/Documents/signature_two.png')
90
88
  # signature_one.position = { top: 0.1, left: 0.07, width: 50, height: 50 }
91
- # signature_one.email = "test1@mail.com"
89
+ # signature_one.email = "test1@mail.com"
92
90
  # signature_two.position = { top: 0.2, left: 0.2, width: 100, height: 100 }
93
- # signature_one.email = "test1@mail.com"
91
+ # signature_one.email = "test1@mail.com"
94
92
  # # sign documents and download results
95
93
  # signed_documents = GroupDocs::Document.sign_documents!([document_one, document_two], [signature_one, signature_two])
96
94
  # signed_documents.each do |document|
@@ -351,65 +349,9 @@ module GroupDocs
351
349
  end
352
350
 
353
351
 
354
- #
355
- # Returns an HTML Fixed representation of a particular document page
356
- #
357
- #
358
- # @param [Integer] page_number Document page number to get html for
359
- # @param [Hash] options
360
- # @option options [Boolean] :expires The date and time in milliseconds since epoch the URL expires.
361
- # @param [Hash] access Access credentials
362
- # @option access [String] :client_id
363
- # @option access [String] :private_key
364
- # @return []
365
- #
366
- def page_fixed_html!(path, name, page_number, options = {}, access = {})
367
- api = Api::Request.new do |request|
368
- request[:access] = access
369
- request[:method] = :DOWNLOAD
370
- request[:path] = "/doc/{{client_id}}/files/#{file.guid}/pages/#{page_number}/htmlFixed"
371
- end
372
- api.add_params(options)
373
- response = api.execute!
374
-
375
- filepath = "#{path}/#{name}"
376
- Object::File.open(filepath, 'wb') do |file|
377
- file.write(response)
378
- end
379
-
380
- filepath
381
352
 
382
- end
383
-
384
- #
385
- # Returns an HTML representation of a particular document page
386
- #
387
- #
388
- # @param [Integer] page_number Document page number to get html for
389
- # @param [Hash] options
390
- # @option options [Boolean] :expires The date and time in milliseconds since epoch the URL expires.
391
- # @param [Hash] access Access credentials
392
- # @option access [String] :client_id
393
- # @option access [String] :private_key
394
- # @return []
395
- #
396
- def page_html!(path, name, page_number, options = {}, access = {})
397
- api = Api::Request.new do |request|
398
- request[:access] = access
399
- request[:method] = :DOWNLOAD
400
- request[:path] = "/doc/{{client_id}}/files/#{file.guid}/pages/#{page_number}/htmlRepresentations"
401
- end
402
- api.add_params(options)
403
- response = api.execute!
404
-
405
- filepath = "#{path}/#{name}"
406
- Object::File.open(filepath, 'wb') do |file|
407
- file.write(response)
408
- end
409
353
 
410
- filepath
411
354
 
412
- end
413
355
 
414
356
  #
415
357
  # Returns array of URLs to images representing document pages.
@@ -444,33 +386,6 @@ module GroupDocs
444
386
  json[:url]
445
387
  end
446
388
 
447
- #
448
- # Returns array of URLs to html representing document pages.
449
- #
450
- # @example
451
- # file = GroupDocs::Storage::Folder.list!.last
452
- # document = file.to_document
453
- # document.page_html_urls! first_page: 0, page_count: 1
454
- #
455
- # @param [Hash] options
456
- # @option options [Integer] :first_page Start page to return image for (starting with 0)
457
- # @option options [Integer] :page_count Number of pages to return image for
458
- # @param [Hash] access Access credentials
459
- # @option access [String] :client_id
460
- # @option access [String] :private_key
461
- # @return [Array<String>]
462
- #
463
- def page_html_urls!(options = {}, access = {})
464
- api = Api::Request.new do |request|
465
- request[:access] = access
466
- request[:method] = :GET
467
- request[:path] = "/doc/{{client_id}}/files/#{file.guid}/pages/htmlRepresentationUrls"
468
- end
469
- api.add_params(options)
470
- json = api.execute!
471
-
472
- json[:url]
473
- end
474
389
 
475
390
  #
476
391
  # Returns editing metadata.
@@ -604,34 +519,6 @@ module GroupDocs
604
519
  json[:image_urls]
605
520
  end
606
521
 
607
- #
608
- # Returns array of URLs to images representing document pages htmlRepresentations.
609
- #
610
- # @example
611
- # file = GroupDocs::Storage::Folder.list!.last
612
- # document = file.to_document
613
- # document.representations! first_page: 0, page_count: 1, passwordSalt: ***
614
- #
615
- # @param [Hash] options
616
- # @option options [Integer] :page_number Start page to return image for (starting with 0)
617
- # @option options [Integer] :page_count Number of pages to return image for
618
- # @option options [Integer] :passwordSalt
619
- # @param [Hash] access Access credentials
620
- # @option access [String] :client_id
621
- # @option access [String] :private_key
622
- # @return [Array<String>]
623
- #
624
- def representations!(options = {}, access = {})
625
- api = Api::Request.new do |request|
626
- request[:access] = access
627
- request[:method] = :POST
628
- request[:path] = "/doc/{{client_id}}/files/#{file.guid}/htmlRepresentations"
629
- end
630
- api.add_params(options)
631
- json = api.execute!
632
-
633
- json[:pageHtml]
634
- end
635
522
 
636
523
 
637
524
  #
@@ -123,6 +123,9 @@ module GroupDocs
123
123
  # @attr [String] tags
124
124
  attr_accessor :tags
125
125
 
126
+ # added in release 1.9.0
127
+ # @attr [Boolean] lockDuringSign
128
+ attr_accessor :lockDuringSign
126
129
 
127
130
  # Human-readable accessors
128
131
  alias_accessor :creation_date_time, :creationDateTime
@@ -529,6 +529,19 @@ module GroupDocs
529
529
  # @attr [Boolean] signature_enable_form_comment
530
530
  attr_accessor :signature_enable_form_comment
531
531
 
532
+ # added in release 1.9.0
533
+ # @attr [Boolean] is_text_replacement_annotation_button_enabled
534
+ attr_accessor :is_text_replacement_annotation_button_enabled
535
+ # @attr [Boolean] is_arrow_annotation_button_enabled
536
+ attr_accessor :is_arrow_annotation_button_enabled
537
+ # @attr [Boolean] is_text_redaction_annotation_button_enabled
538
+ attr_accessor :is_text_redaction_annotation_button_enabled
539
+ # @attr [Boolean] is_resource_redaction_annotation_button_enabled
540
+ attr_accessor :is_resource_redaction_annotation_button_enabled
541
+ # @attr [Boolean] is_text_underline_annotation_button_enabled
542
+ attr_accessor :is_text_underline_annotation_button_enabled
543
+ # @attr [Boolean] is_distance_annotation_button_enabled
544
+ attr_accessor :is_distance_annotation_button_enabled
532
545
 
533
546
 
534
547
  # Human-readable accessors
@@ -1,3 +1,3 @@
1
1
  module GroupDocs
2
- VERSION = '1.8.1'
2
+ VERSION = '1.9.0'
3
3
  end # GroupDocs
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groupdocs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.1
4
+ version: 1.9.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-10-31 00:00:00.000000000 Z
12
+ date: 2014-11-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client