groupdocs 1.7.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. data/CHANGELOG.md +8 -0
  2. data/examples/api-samples/samples/sample09.rb +2 -2
  3. data/examples/api-samples/samples/sample10.rb +2 -2
  4. data/examples/api-samples/samples/sample11.rb +2 -2
  5. data/examples/api-samples/samples/sample14.rb +3 -1
  6. data/examples/api-samples/samples/sample16.rb +4 -2
  7. data/examples/api-samples/samples/sample18.rb +2 -2
  8. data/examples/api-samples/samples/sample19.rb +2 -1
  9. data/examples/api-samples/samples/sample32.rb +2 -2
  10. data/examples/api-samples/samples/sample33.rb +2 -2
  11. data/examples/api-samples/samples/sample35.rb +4 -4
  12. data/examples/api-samples/samples/sample37.rb +2 -2
  13. data/examples/api-samples/samples/sample39.rb +2 -2
  14. data/examples/api-samples/samples/sample40.rb +1 -1
  15. data/examples/api-samples/samples/sample45.rb +2 -2
  16. data/examples/api-samples/views/_others_samples.haml +9 -9
  17. data/examples/api-samples/views/envelope_sample.haml +1 -1
  18. data/examples/api-samples/views/index.haml +9 -9
  19. data/examples/api-samples/views/sample09.haml +1 -1
  20. data/examples/api-samples/views/sample10.haml +4 -4
  21. data/examples/api-samples/views/sample11.haml +1 -1
  22. data/examples/api-samples/views/sample16.haml +2 -2
  23. data/examples/api-samples/views/sample18.haml +1 -1
  24. data/examples/api-samples/views/sample31.haml +1 -1
  25. data/examples/api-samples/views/sample32.haml +3 -3
  26. data/examples/api-samples/views/sample33.haml +1 -1
  27. data/examples/api-samples/views/sample35.haml +3 -3
  28. data/examples/api-samples/views/sample37.haml +3 -3
  29. data/examples/api-samples/views/sample39.haml +1 -1
  30. data/lib/groupdocs/document.rb +109 -0
  31. data/lib/groupdocs/document/editor.rb +2 -0
  32. data/lib/groupdocs/signature/form.rb +22 -1
  33. data/lib/groupdocs/version.rb +1 -1
  34. metadata +2 -2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## v1.8.0
2
+ **New**
3
+
4
+ * Added `Document#add_questionnaire_template!`
5
+ * Added `Document#update_questionnaire_template!`
6
+ * Added `Document#delete_questionnaire_template!`
7
+ * Added `Signature::Form#get_participants!`
8
+
1
9
  ## v1.7.0
2
10
 
3
11
  **Changes**
@@ -1,10 +1,10 @@
1
1
  #GET request
2
- get '/sample-9-how-to-generate-an-embedded-viewer-url-for-a-document' do
2
+ get '/sample-9-how-to-generate-an-embedded-viewer-annotation-url-for-a-document' do
3
3
  haml :sample09
4
4
  end
5
5
 
6
6
  #POST request
7
- post '/sample-9-how-to-generate-an-embedded-viewer-url-for-a-document' do
7
+ post '/sample-9-how-to-generate-an-embedded-viewer-annotation-url-for-a-document' do
8
8
  # Set variables
9
9
  set :file_id, params[:fileId]
10
10
  set :width, params[:width]
@@ -15,7 +15,7 @@ post '/sample-10-how-to-share-a-document-to-other-users' do
15
15
 
16
16
  begin
17
17
  #Check required variables
18
- raise 'Please enter all required parameters' if settings.client_id.empty? or settings.private_key.empty? or settings.guid.empty? or settings.email.empty?
18
+ raise 'Please enter all required parameters' if settings.client_id.empty? or settings.private_key.empty? or settings.email.empty?
19
19
 
20
20
 
21
21
  #Prepare base path
@@ -41,7 +41,7 @@ post '/sample-10-how-to-share-a-document-to-other-users' do
41
41
  when 'guid'
42
42
  file = GroupDocs::Storage::File.new({:guid => settings.guid}).to_document.metadata!()
43
43
  file = file.last_view.document.file
44
- when 'local'
44
+ when 'localField'
45
45
  #Construct path
46
46
  filepath = "#{Dir.tmpdir}/#{params[:file][:filename]}"
47
47
  #Open file
@@ -1,10 +1,10 @@
1
1
  #GET request
2
- get '/sample-11-how-to-programmatically-create-and-post-an-annotation-into-document' do
2
+ get '/sample-11-how-programmatically-create-and-post-an-annotation-into-document' do
3
3
  haml :sample11
4
4
  end
5
5
 
6
6
  #POST request
7
- post '/sample-11-how-to-programmatically-create-and-post-an-annotation-into-document' do
7
+ post '/sample-11-how-programmatically-create-and-post-an-annotation-into-document' do
8
8
  #Set variables
9
9
  set :client_id, params[:clientId]
10
10
  set :private_key, params[:privateKey]
@@ -35,12 +35,14 @@ post '/sample-14-how-to-check-the-list-of-shares-for-a-folder' do
35
35
  #Make a request to API using client_id and private_key
36
36
  files_list = GroupDocs::Storage::Folder.list!()
37
37
 
38
- files_list.map do |e|
38
+ files_list.each do |e|
39
39
  if e.name == settings.folder
40
40
  folder = e
41
+ break
41
42
  end
42
43
  end
43
44
 
45
+
44
46
  #Get list of shares for a folder
45
47
  shares = folder.sharers!()
46
48
 
@@ -1,11 +1,13 @@
1
1
  #GET request
2
- get '/sample-16-how-to-insert-assembly-questionnaire-into-webpage' do
2
+ get '/sample-16-how-to-insert-assembly-questionary-into-webpage' do
3
3
  haml :sample16
4
4
  end
5
5
 
6
6
  #POST request
7
- post '/sample-16-how-to-insert-assembly-questionnaire-into-webpage' do
7
+ post '/sample-16-how-to-insert-assembly-questionary-into-webpage' do
8
8
  #Set variables
9
+ set :client_id, params[:clientId]
10
+ set :private_key, params[:privateKey]
9
11
  set :fileId, params[:fileId]
10
12
  set :base_path, params[:basePath]
11
13
 
@@ -1,5 +1,5 @@
1
1
  #GET request
2
- get '/sample-18-how-to-convert-doc-to-docx-docx-to-doc-docx-to-pdf-ppt-to-pdf' do
2
+ get '/sample-18-how-to-convert-doc-to-docx-docx-to-doc-docx-to-pdf-and-ppt-to-pdf' do
3
3
  haml :sample18
4
4
  end
5
5
 
@@ -71,7 +71,7 @@ end
71
71
 
72
72
 
73
73
  #POST request
74
- post '/sample-18-how-to-convert-doc-to-docx-docx-to-doc-docx-to-pdf-ppt-to-pdf' do
74
+ post '/sample-18-how-to-convert-doc-to-docx-docx-to-doc-docx-to-pdf-and-ppt-to-pdf' do
75
75
  #Set variables
76
76
  set :client_id, params[:clientId]
77
77
  set :private_key, params[:privateKey]
@@ -156,9 +156,10 @@ post '/sample-19-how-to-compare-documents' do
156
156
  documents = job.documents!()
157
157
  #Get compared file giud
158
158
  guid = documents[:outputs].first.file.guid
159
+ embedkey = GroupDocs::User.get_embed_key!('comparison')
159
160
 
160
161
  #Prepare to sign url
161
- iframe = "/document-viewer/embed/#{guid}"
162
+ iframe = "/document-comparison2/embed/#{embedkey}/#{guid}"
162
163
  # Construct result string
163
164
  url = GroupDocs::Api::Request.new(:path => iframe).prepare_and_sign_url
164
165
  #Generate iframe URL
@@ -1,5 +1,5 @@
1
1
  #GET request
2
- get '/sample-32-how-to-create-signature-form-publish-it-and-configure-notification-via-callback' do
2
+ get '/sample-32-how-to-create-signature-form-publish-it-and-configure-notification-when-it-was-signed' do
3
3
  haml :sample32
4
4
  end
5
5
 
@@ -67,7 +67,7 @@ post '/sample32/callback' do
67
67
  end
68
68
 
69
69
  #POST request
70
- post '/sample-32-how-to-create-signature-form-publish-it-and-configure-notification-via-callback' do
70
+ post '/sample-32-how-to-create-signature-form-publish-it-and-configure-notification-when-it-was-signed' do
71
71
  #Set variables
72
72
  set :client_id, params[:clientId]
73
73
  set :private_key, params[:privateKey]
@@ -1,10 +1,10 @@
1
1
  #GET request
2
- get '/sample-33-how-to-convert-several-html-documents-into-one-pdf-document' do
2
+ get '/sample-33-how-to-convert-several-html-documents-to-pdf-and-merge-them-to-one-document' do
3
3
  haml :sample33
4
4
  end
5
5
 
6
6
  #POST request
7
- post '/sample-33-how-to-convert-several-html-documents-into-one-pdf-document' do
7
+ post '/sample-33-how-to-convert-several-html-documents-to-pdf-and-merge-them-to-one-document' do
8
8
  #Set variables
9
9
  set :client_id, params[:clientId]
10
10
  set :private_key, params[:privateKey]
@@ -1,11 +1,11 @@
1
1
  #GET request
2
- get '/sample-35-how-to-get-fields-and-their-data-from-pdf-file' do
2
+ get '/sample-35-how-to-create-assembly-from-document-and-merge-fields' do
3
3
  haml :sample35
4
4
  end
5
5
 
6
6
 
7
7
  #POST request
8
- post '/sample-35-how-to-get-fields-and-their-data-from-pdf-file' do
8
+ post '/sample-35-how-to-create-assembly-from-document-and-merge-fields' do
9
9
  #Set variables
10
10
  set :client_id, params[:clientId]
11
11
  set :private_key, params[:privateKey]
@@ -104,12 +104,12 @@ post '/sample-35-how-to-get-fields-and-their-data-from-pdf-file' do
104
104
  end
105
105
 
106
106
  #GET request
107
- get '//sample-35-how-to-get-fields-and-their-data-from-pdf-file/check' do
107
+ get '/sample-35-how-to-create-assembly-from-document-and-merge-fields/check' do
108
108
  haml :sample35
109
109
  end
110
110
 
111
111
  #POST request
112
- post '//sample-35-how-to-get-fields-and-their-data-from-pdf-file/check' do
112
+ post '/sample-35-how-to-create-assembly-from-document-and-merge-fields/check' do
113
113
  set :client_id, params[:clientId]
114
114
  set :private_key, params[:privateKey]
115
115
  set :base_path, params[:basePath]
@@ -1,5 +1,5 @@
1
1
  #Route the handler url "/sample37"
2
- get '/sample-37-how-to-create-envelop-and-download-signed-document-when-envelop-was-signed-using-callback' do
2
+ get '/sample-37-how-to-use-storage-api-to-create-and-upload-envelop-to-groupdocs-account-and-get-signed-document' do
3
3
  haml :sample37
4
4
  end
5
5
 
@@ -36,7 +36,7 @@ get '/sample37/downloads/:filename' do |filename|
36
36
  end
37
37
 
38
38
  #Route the handler url "/sample37". The function block creates new envelope
39
- post '/sample-37-how-to-create-envelop-and-download-signed-document-when-envelop-was-signed-using-callback' do
39
+ post '/sample-37-how-to-use-storage-api-to-create-and-upload-envelop-to-groupdocs-account-and-get-signed-document' do
40
40
  #Set variables from form
41
41
  set :client_id, params[:clientId]
42
42
  set :private_key, params[:privateKey]
@@ -1,5 +1,5 @@
1
1
  #GET request
2
- get '/sample-39-how-to-add-a-signature-to-a-document-and-re-direct-after-signing-with-groupdocs-widget' do
2
+ get '/sample-39-how-to-add-a-signature-to-a-document-and-redirect-after-signing-with-groupdocs-widget' do
3
3
  haml :sample39
4
4
  end
5
5
 
@@ -136,7 +136,7 @@ end
136
136
 
137
137
 
138
138
  #POST request
139
- post '/sample-39-how-to-add-a-signature-to-a-document-and-re-direct-after-signing-with-groupdocs-widget' do
139
+ post '/sample-39-how-to-add-a-signature-to-a-document-and-redirect-after-signing-with-groupdocs-widget' do
140
140
  #Set variables
141
141
  set :client_id, params[:clientId]
142
142
  set :private_key, params[:privateKey]
@@ -146,7 +146,7 @@ post '/sample-40-how-to-set-callback-for-signature-form-and-re-direct-when-it-wa
146
146
  form.publish!({:callbackUrl => settings.callback})
147
147
 
148
148
  #Prepare to sign url
149
- iframe = "//signature2/forms/signembed/#{guid}"
149
+ iframe = "/signature2/forms/signembed/#{id}"
150
150
  # Construct result string
151
151
  url = GroupDocs::Api::Request.new(:path => iframe).prepare_and_sign_url
152
152
  #Generate iframe URL
@@ -1,10 +1,10 @@
1
1
  #GET request
2
- get '/sample45' do
2
+ get '/sample-45-how-to-check-statistic-info-for-the-document' do
3
3
  haml :sample45
4
4
  end
5
5
 
6
6
  #POST request
7
- post '/sample45' do
7
+ post '/sample-45-how-to-check-statistic-info-for-the-document' do
8
8
  #Set variables
9
9
  set :client_id, params[:clientId]
10
10
  set :private_key, params[:privateKey]
@@ -18,11 +18,11 @@
18
18
  %li
19
19
  %a{:href => '/sample-8-how-to-return-a-url-representing-a-single-page-of-a-document'} Sample 8 - How to return a URL representing a single page of a Document
20
20
  %li
21
- %a{:href => '/sample-9-how-to-generate-an-embedded-viewer-url-for-a-document'} Sample 9 - How to generate an embedded Viewer URL for a Document
21
+ %a{:href => '/sample-9-how-to-generate-an-embedded-viewer-annotation-url-for-a-document'} Sample 9 - How to generate an embedded Viewer URL for a Document
22
22
  %li
23
23
  %a{:href => '/sample-10-how-to-share-a-document-to-other-users'} Sample 10 - How to share a document to other users
24
24
  %li
25
- %a{:href => '/sample-11-how-to-programmatically-create-and-post-an-annotation-into-document'} Sample 11 - How to programmatically create and post an annotation into document. How to delete the annotation
25
+ %a{:href => '/sample-11-how-programmatically-create-and-post-an-annotation-into-document'} Sample 11 - How to programmatically create and post an annotation into document. How to delete the annotation
26
26
  %li
27
27
  %a{:href => '/sample-12-how-to-list-all-annotations-from-document'} Sample 12 - How to list all annotations from document
28
28
  %li
@@ -32,11 +32,11 @@
32
32
  %li
33
33
  %a{:href => '/sample-15-how-to-check-the-number-of-document\'s-views'} Sample 15 - How to check the number of document's views
34
34
  %li
35
- %a{:href => '/sample-16-how-to-insert-assembly-questionnaire-into-webpage'} Sample 16 - How to insert Assembly questionary into webpage
35
+ %a{:href => '/sample-16-how-to-insert-assembly-questionary-into-webpage'} Sample 16 - How to insert Assembly questionary into webpage
36
36
  %li
37
37
  %a{:href => '/sample-17-how-to-upload-a-file-into-the-storage-and-compress-it-into-zip-archive'} Sample 17 - How to upload a file into the storage and compress it into zip archive
38
38
  %li
39
- %a{:href => '/sample-18-how-to-convert-doc-to-docx-docx-to-doc-docx-to-pdf-ppt-to-pdf'} Sample 18 - How to convert Doc to Docx, Docx to Doc, Docx to PDF, PPT to PDF
39
+ %a{:href => '/sample-18-how-to-convert-doc-to-docx-docx-to-doc-docx-to-pdf-and-ppt-to-pdf'} Sample 18 - How to convert Doc to Docx, Docx to Doc, Docx to PDF, PPT to PDF
40
40
  %li
41
41
  %a{:href => '/sample-19-how-to-compare-documents'} Sample 19 - How to Compare documents using Ruby SDK
42
42
  %li
@@ -64,21 +64,21 @@
64
64
  %li
65
65
  %a{:href => '/sample-31-how-to-dynamically-create-signature-form-using-data-from-html-form'} Sample 31 - How to dynamically create Signature Form using data from HTML form
66
66
  %li
67
- %a{:href => '/sample-32-how-to-create-signature-form-publish-it-and-configure-notification-via-callback'} Sample 32 - How to create signature form, publish it and configure notification via callback
67
+ %a{:href => '/sample-32-how-to-create-signature-form-publish-it-and-configure-notification-when-it-was-signed'} Sample 32 - How to create signature form, publish it and configure notification via callback
68
68
  %li
69
- %a{:href => '/sample-33-how-to-convert-several-html-documents-into-one-pdf-document'} Sample 33 - How to convert and merge/combine several HTML documents into one PDF Document
69
+ %a{:href => '/sample-33-how-to-convert-several-html-documents-to-pdf-and-merge-them-to-one-document'} Sample 33 - How to convert and merge/combine several HTML documents into one PDF Document
70
70
  %li
71
71
  %a{:href => '/sample-34-how-to-create-folder-in-the-groupdocs-account'} Sample 34 - How to create folder in the GroupDocs account
72
72
  %li
73
- %a{:href => '/sample-35-how-to-get-fields-and-their-data-from-pdf-file'} Sample 35 - How to get fields and their data from PDF file
73
+ %a{:href => '/sample-35-how-to-create-assembly-from-document-and-merge-fields'} Sample 35 - How to get fields and their data from PDF file
74
74
  %li
75
75
  %a{:href => '/sample-36-how-to-download-signed-documents-when-envelope-was-signed'} Sample 36 - How to download signed documents when envelope was signed using Ruby SDK
76
76
  %li
77
- %a{:href => '/sample-37-how-to-create-envelop-and-download-signed-document-when-envelop-was-signed-using-callback'} Sample 37 - How to create envelop and download signed document when envelop was signed using callback
77
+ %a{:href => '/sample-37-how-to-use-storage-api-to-create-and-upload-envelop-to-groupdocs-account-and-get-signed-document'} Sample 37 - How to create envelop and download signed document when envelop was signed using callback
78
78
  %li
79
79
  %a{:href => '/sample-38-how-to-create-new-user-and-add-him-as-collaborator-to-doc-with-annotations'} Sample 38 - How to create new user and add him as collaborator to doc with annotations
80
80
  %li
81
- %a{:href => '/sample-39-how-to-add-a-signature-to-a-document-and-re-direct-after-signing-with-groupdocs-widget'} Sample 39 - How to add a Signature to a document and redirect after signing with GroupDocs widget
81
+ %a{:href => '/sample-39-how-to-add-a-signature-to-a-document-and-redirect-after-signing-with-groupdocs-widget'} Sample 39 - How to add a Signature to a document and redirect after signing with GroupDocs widget
82
82
  %li
83
83
  %a{:href => '/sample-40-how-to-set-callback-for-signature-form-and-re-direct-when-it-was-signed'} Sample 40 - How to set callback for signature form and re-direct when it was signed
84
84
  %li
@@ -27,7 +27,7 @@
27
27
  %br/
28
28
  #requestForm{:style => 'padding:20px; border:1px solid black;'}
29
29
  %p Enter data for request and press "Make request" button
30
- %form{:action => '/envelope-sample', :enctype => 'multipart/form-data', :method => 'post'}
30
+ %form{:action => '/envelope-sample/sign-and-download', :enctype => 'multipart/form-data', :method => 'post'}
31
31
  %label{:for => 'client_id'} GroupDocs ClientID
32
32
  %br/
33
33
  %input{:type=>'text', :name=>'client_id'}
@@ -23,11 +23,11 @@
23
23
  %li
24
24
  %a{:href => '/sample-8-how-to-return-a-url-representing-a-single-page-of-a-document'} Sample 8 - How to return a URL representing a single page of a Document
25
25
  %li
26
- %a{:href => '/sample-9-how-to-generate-an-embedded-viewer-url-for-a-document'} Sample 9 - How to generate an embedded Viewer URL for a Document
26
+ %a{:href => '/sample-9-how-to-generate-an-embedded-viewer-annotation-url-for-a-document'} Sample 9 - How to generate an embedded Viewer URL for a Document
27
27
  %li
28
28
  %a{:href => '/sample-10-how-to-share-a-document-to-other-users'} Sample 10 - How to share a document to other users
29
29
  %li
30
- %a{:href => '/sample-11-how-to-programmatically-create-and-post-an-annotation-into-document'} Sample 11 - How to programmatically create and post an annotation into document. How to delete the annotation
30
+ %a{:href => '/sample-11-how-programmatically-create-and-post-an-annotation-into-document'} Sample 11 - How to programmatically create and post an annotation into document. How to delete the annotation
31
31
  %li
32
32
  %a{:href => '/sample-12-how-to-list-all-annotations-from-document'} Sample 12 - How to list all annotations from document
33
33
  %li
@@ -37,11 +37,11 @@
37
37
  %li
38
38
  %a{:href => '/sample-15-how-to-check-the-number-of-document\'s-views'} Sample 15 - How to check the number of document's views
39
39
  %li
40
- %a{:href => '/sample-16-how-to-insert-assembly-questionnaire-into-webpage'} Sample 16 - How to insert Assembly questionnaire into webpage
40
+ %a{:href => '/sample-16-how-to-insert-assembly-questionary-into-webpage'} Sample 16 - How to insert Assembly questionnaire into webpage
41
41
  %li
42
42
  %a{:href => '/sample-17-how-to-upload-a-file-into-the-storage-and-compress-it-into-zip-archive'} Sample 17 - How to upload a file into the storage and compress it into zip archive
43
43
  %li
44
- %a{:href => '/sample-18-how-to-convert-doc-to-docx-docx-to-doc-docx-to-pdf-ppt-to-pdf'} Sample 18 - How to convert Doc to Docx, Docx to Doc, Docx to PDF, PPT to PDF
44
+ %a{:href => '/sample-18-how-to-convert-doc-to-docx-docx-to-doc-docx-to-pdf-and-ppt-to-pdf'} Sample 18 - How to convert Doc to Docx, Docx to Doc, Docx to PDF, PPT to PDF
45
45
  %li
46
46
  %a{:href => '/sample-19-how-to-compare-documents'} Sample 19 - How to Compare documents using Ruby SDK
47
47
  %li
@@ -69,21 +69,21 @@
69
69
  %li
70
70
  %a{:href => '/sample-31-how-to-dynamically-create-signature-form-using-data-from-html-form'} Sample 31 - How to dynamically create Signature Form using data from HTML form
71
71
  %li
72
- %a{:href => '/sample-32-how-to-create-signature-form-publish-it-and-configure-notification-via-callback'} Sample 32 - How to create signature form, publish it and configure notification via callback
72
+ %a{:href => '/sample-32-how-to-create-signature-form-publish-it-and-configure-notification-when-it-was-signed'} Sample 32 - How to create signature form, publish it and configure notification via callback
73
73
  %li
74
- %a{:href => '/sample-33-how-to-convert-several-html-documents-into-one-pdf-document'} Sample 33 - How to convert and merge/combine several HTML documents into one PDF Document
74
+ %a{:href => '/sample-33-how-to-convert-several-html-documents-to-pdf-and-merge-them-to-one-document'} Sample 33 - How to convert and merge/combine several HTML documents into one PDF Document
75
75
  %li
76
76
  %a{:href => '/sample-34-how-to-create-folder-in-the-groupdocs-account'} Sample 34 - How to create folder in the GroupDocs account
77
77
  %li
78
- %a{:href => '/sample-35-how-to-get-fields-and-their-data-from-pdf-file'} Sample 35 - How to get fields and their data from PDF file
78
+ %a{:href => '/sample-35-how-to-create-assembly-from-document-and-merge-fields'} Sample 35 - How to get fields and their data from PDF file
79
79
  %li
80
80
  %a{:href => '/sample-36-how-to-download-signed-documents-when-envelope-was-signed'} Sample 36 - How to download signed documents when envelope was signed using Ruby SDK
81
81
  %li
82
- %a{:href => '/sample-37-how-to-create-envelop-and-download-signed-document-when-envelop-was-signed-using-callback'} Sample 37 - How to create envelop and download signed document when envelop was signed using callback
82
+ %a{:href => '/sample-37-how-to-use-storage-api-to-create-and-upload-envelop-to-groupdocs-account-and-get-signed-document'} Sample 37 - How to create envelop and download signed document when envelop was signed using callback
83
83
  %li
84
84
  %a{:href => '/sample-38-how-to-create-new-user-and-add-him-as-collaborator-to-doc-with-annotations'} Sample 38 - How to create new user and add him as collaborator to doc with annotations
85
85
  %li
86
- %a{:href => '/sample-39-how-to-add-a-signature-to-a-document-and-re-direct-after-signing-with-groupdocs-widget'} Sample 39 - How to add a Signature to a document and re-direct after signing with GroupDocs widget
86
+ %a{:href => '/sample-39-how-to-add-a-signature-to-a-document-and-redirect-after-signing-with-groupdocs-widget'} Sample 39 - How to add a Signature to a document and re-direct after signing with GroupDocs widget
87
87
  %li
88
88
  %a{:href => '/sample-40-how-to-set-callback-for-signature-form-and-re-direct-when-it-was-signed'} Sample 40 - How to set callback for signature form and re-direct when it was signed
89
89
  %li
@@ -29,7 +29,7 @@
29
29
  %font{:color => 'red'} #{(defined? err) ? err : ''}
30
30
  #requestForm{:style => 'padding:20px; border:1px solid black;'}
31
31
  %p Enter data for request and press "Make request" button
32
- %form{:action => '/sample-9-how-to-generate-an-embedded-viewer-url-for-a-document', :enctype => 'multipart/form-data', :method => 'post'}
32
+ %form{:action => '/sample-9-how-to-generate-an-embedded-viewer-annotation-url-for-a-document', :enctype => 'multipart/form-data', :method => 'post'}
33
33
  %label{:for => 'clientId'} GroupDocs ClientID
34
34
  %br/
35
35
  %input{:type=>'text', :id => 'clientId' , :name=>'clientId'}
@@ -39,19 +39,19 @@
39
39
  %input{:type => 'text', :name => 'privateKey', :value => "#{(defined? private_key) ? private_key : ''}" }
40
40
  %br/
41
41
  %div.guid_radio
42
- %input{:type=>'radio', :name=>'source', :value=>'guid', :checked=>'checked'} File ID (GUID)
42
+ %input{:type=>'radio', :name=>'source', :value=>'guid'} File ID (GUID)
43
43
  %br/
44
- %input{:type=>'radio', :name=>'source', :value=>'local'}Upload local file
44
+ %input{:type=>'radio', :name=>'source', :value=>'localField', :checked=>'checked'}Upload local file
45
45
  %br/
46
46
  %input{:type=>'radio', :name=>'source', :value=>'url'} Upload file from URL
47
47
  %br/
48
48
 
49
- %div.guid_field
49
+ %div.guid_field{:style=>'display:none;'}
50
50
  %label{:for=>'fileId', :id=>'guid'} File ID (GUID)
51
51
  %br/
52
52
  %input{:type=>'text', :name=>'fileId'}
53
53
 
54
- %div.guid_field{:style=>'display:none;'}
54
+ %div.guid_field
55
55
  %label{:for=>'file'} Upload local file
56
56
  %br/
57
57
  %input{:type=>'file', :name=>'file'}
@@ -36,7 +36,7 @@
36
36
 
37
37
 
38
38
  #requestForm{:style => 'padding:20px; border:1px solid black;'}
39
- %form{:action => '/sample-11-how-to-programmatically-create-and-post-an-annotation-into-document', :method => 'post'}
39
+ %form{:action => '/sample-11-how-programmatically-create-and-post-an-annotation-into-document', :method => 'post'}
40
40
  %input{:type => 'hidden', :name => 'annotationId', :value => (defined? annotationId) ? annotationId : ''}
41
41
  %p Enter data for request and press "Make request" button
42
42
 
@@ -24,7 +24,7 @@
24
24
  %br/
25
25
  #requestForm{:style => 'padding:20px; border:1px solid black;'}
26
26
  %p Enter data for request and press "Make request" button
27
- %form{:action => '/sample-16-how-to-insert-assembly-questionnaire-into-webpage', :method => 'post'}
27
+ %form{:action => '/sample-16-how-to-insert-assembly-questionary-into-webpage', :method => 'post'}
28
28
  %label{:for => 'clientId'} GroupDocs ClientID
29
29
  %br/
30
30
  %input{:type=>'text', :name=>'clientId', :id => 'clientId' }
@@ -33,7 +33,7 @@
33
33
  %br/
34
34
  %input{:type=>'text', :name=>'privateKey', :id => 'privateKey'}
35
35
  %br/
36
- %label{:for => 'fileId'} GroupDocs FileID
36
+ %label{:for => 'fileId'} GroupDocs Assembly FileID
37
37
  %br/
38
38
  %input{:type=>'text', :name=>'fileId',}
39
39
  %br/
@@ -34,7 +34,7 @@
34
34
  %br/
35
35
  #requestForm{:style => 'padding:20px; border:1px solid black;'}
36
36
  %p Enter data for request and press "Make request" button
37
- %form{:action => '/sample-18-how-to-convert-doc-to-docx-docx-to-doc-docx-to-pdf-ppt-to-pdf', :enctype => 'multipart/form-data', :method => 'post'}
37
+ %form{:action => '/sample-18-how-to-convert-doc-to-docx-docx-to-doc-docx-to-pdf-and-ppt-to-pdf', :enctype => 'multipart/form-data', :method => 'post'}
38
38
  %label{:for => 'clientId'} GroupDocs ClientID
39
39
  %br/
40
40
  %input{:type=>'text', :name=>'clientId'}
@@ -93,7 +93,7 @@
93
93
  %input{:type => 'submit', :value => 'Make request'}
94
94
  %span{:id=>'results_status', :style=>'color:red;display:none;'} (Please wait for ajax response)
95
95
  %br/
96
- %a{:href=>'/templates/merge_feid2_doc.docx'} Download sample Docx file
96
+ %a{:href=>'/templates/merge_field2_doc.docx'} Download sample Docx file
97
97
  %br/
98
98
  %br/
99
99
  %div{:style => 'padding:20px; border:1px solid black;'}
@@ -1,12 +1,12 @@
1
1
  %head
2
- %title Sample 32 - How to create signature form, publish it and configure notification via callback
2
+ %title Sample 32 - How to create signature form, publish it and configure notification when it was signed
3
3
  %link(rel="stylesheet" type="text/css" href="/css/style.css")
4
4
  %script{:src=>'//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'}
5
5
  %body
6
6
  %h3{:style => 'text-align:center;'}
7
7
  %a{:href => '/'} GroupDocs Ruby SDK Samples
8
8
  %br/
9
- Sample 32 - How to create signature form, publish it and configure notification via callback
9
+ Sample 32 - How to create signature form, publish it and configure notification when it was signed
10
10
  .samplecontent{:style => 'padding:10px;'}
11
11
  %span.description
12
12
  %i
@@ -34,7 +34,7 @@
34
34
  %br/
35
35
  #requestForm{:style => 'padding:20px; border:1px solid black;'}
36
36
  %p Enter data for request and press "Make request" button
37
- %form{:action => '/sample-32-how-to-create-signature-form-publish-it-and-configure-notification-via-callback', :enctype => 'multipart/form-data', :method => 'post'}
37
+ %form{:action => '/sample-32-how-to-create-signature-form-publish-it-and-configure-notification-when-it-was-signed', :enctype => 'multipart/form-data', :method => 'post'}
38
38
  %label{:for => 'clientId'} GroupDocs ClientID
39
39
  %br/
40
40
  %input{:type=>'text', :name=>'clientId'}
@@ -28,7 +28,7 @@
28
28
  %font{:color => 'red'} #{(defined? err) ? err : ''}
29
29
  #requestForm{:style => 'padding:20px; border:1px solid black;'}
30
30
  %p Enter credentials and file URLs to any documents or HTML pages and press "Make request" button
31
- %form{:action => '/sample-33-how-to-convert-several-html-documents-into-one-pdf-document', :enctype => 'multipart/form-data', :method => 'post'}
31
+ %form{:action => '/sample-33-how-to-convert-several-html-documents-to-pdf-and-merge-them-to-one-document', :enctype => 'multipart/form-data', :method => 'post'}
32
32
  %label{:for => 'clientId'} GroupDocs ClientID
33
33
  %br/
34
34
  %input{:type=>'text', :name=>'clientId'}
@@ -6,10 +6,10 @@
6
6
  %h3{:style => 'text-align:center;'}
7
7
  %a{:href => '/'} GroupDocs Ruby SDK Samples
8
8
  %br/
9
- Sample 35 - How to get fields and their data from PDF file
9
+ Sample 35 - How to create assembly from document and merge fields
10
10
  .samplecontent{:style => 'padding:10px;'}
11
11
  %span.description
12
- This sample will show how to get fields and their data from PDF file programmatically and dynamically create HTML form using the data about fields.
12
+ This sample will show how to create assembly from document and merge fields.
13
13
  %br/
14
14
  %br/
15
15
  /
@@ -30,7 +30,7 @@
30
30
  #requestForm{:style => 'padding:20px; border:1px solid black;'}
31
31
  %p Enter data for request and press "Make request" button
32
32
 
33
- %form{:action => "#{(defined? userId) ? '//sample-35-how-to-get-fields-and-their-data-from-pdf-file/check' : '//sample-35-how-to-get-fields-and-their-data-from-pdf-file'}", :enctype => 'multipart/form-data', :method => 'post', :id=>'form'}
33
+ %form{:action => "#{(defined? userId) ? '/sample-35-how-to-create-assembly-from-document-and-merge-fields/check' : '/sample-35-how-to-create-assembly-from-document-and-merge-fields'}", :enctype => 'multipart/form-data', :method => 'post', :id=>'form'}
34
34
  %label{:for => 'clientId'} GroupDocs ClientID
35
35
  %br/
36
36
  %input{:type=>'text', :name=>'clientId', :id=>'client_id', :value=>"#{(defined? userId) ? userId : ''}"}
@@ -6,9 +6,9 @@
6
6
  %h3{:style => 'text-align:center;'}
7
7
  %a{:href => '/'} GroupDocs Ruby SDK Samples
8
8
  %br/
9
- Sample 37 - How to create envelop and download signed document when envelop was signed using callback
9
+ Sample 37 - How to use StorageApi to Create and Upload Envelop to GroupDocs account and get signed document
10
10
  .samplecontent{:style => 'padding:10px;'}
11
- %i This sample will show how to create envelop and download signed document when envelop was signed using callback
11
+ %i This sample will show how to use StorageApi to Create and Upload Envelop to GroupDocs account and get signed document using Ruby SDK
12
12
  %br/
13
13
  %br/
14
14
  %span.documentation
@@ -32,7 +32,7 @@
32
32
  %br/
33
33
  #requestForm{:style => 'padding:20px; border:1px solid black;'}
34
34
  %p Enter data for request and press "Make request" button
35
- %form{:action => '/sample-37-how-to-create-envelop-and-download-signed-document-when-envelop-was-signed-using-callback', :enctype => 'multipart/form-data', :method => 'post'}
35
+ %form{:action => '/sample-37-how-to-use-storage-api-to-create-and-upload-envelop-to-groupdocs-account-and-get-signed-document', :enctype => 'multipart/form-data', :method => 'post'}
36
36
  %label{:for => 'clientId'} GroupDocs ClientID
37
37
  %br/
38
38
  %input{:type=>'text', :name=>'clientId'}
@@ -189,7 +189,7 @@
189
189
  %br/
190
190
  #requestForm{:style => 'padding:20px; border:1px solid black;'}
191
191
  %p Enter data for request and press "Make request" button
192
- %form{:action => '/sample-39-how-to-add-a-signature-to-a-document-and-re-direct-after-signing-with-groupdocs-widget', :enctype => 'multipart/form-data', :method => 'post'}
192
+ %form{:action => '/sample-39-how-to-add-a-signature-to-a-document-and-redirect-after-signing-with-groupdocs-widget', :enctype => 'multipart/form-data', :method => 'post'}
193
193
  %label{:for => 'clientId'} GroupDocs ClientID
194
194
  %br/
195
195
  %input{:type=>'text', :name=>'clientId', :id=>'clientId'}
@@ -1524,5 +1524,114 @@ module GroupDocs
1524
1524
  end
1525
1525
  end
1526
1526
 
1527
+ # added in release 1.8.0
1528
+ #
1529
+ # Add template editor fields to the specific document
1530
+ #
1531
+ # @example
1532
+ #
1533
+ # file = GroupDocs::Storage::File.new({:guid => '3be4e06494caed131d912c75e17d5f22592e3044032e0f81b35f13a8c9fefb49'}).to_document
1534
+ # field = GroupDocs::Document::TemplateEditorFields.new
1535
+ # field.name = 'test'
1536
+ # field.fieldtype = 'TextBox'
1537
+ # field.page = 1
1538
+ # file.add_questionnaire_template!([field] )
1539
+ #
1540
+ #
1541
+ # @param List[GroupDocs::Document::TemplateEditorFields] fields
1542
+ # @param [Hash] access Access credentials
1543
+ # @option access [String] :client_id
1544
+ # @option access [String] :private_key
1545
+ #
1546
+ def add_questionnaire_template!(fields, access = {})
1547
+
1548
+ fields.each do |field|
1549
+ field.is_a?(GroupDocs::Document::TemplateEditorFields) or raise ArgumentError,
1550
+ "Fields should be List GroupDocs::Document::TemplateEditorFields objects, received: #{fields.inspect}"
1551
+ end
1552
+
1553
+ json = Api::Request.new do |request|
1554
+ request[:access] = access
1555
+ request[:method] = :POST
1556
+ request[:path] = "/merge/{{client_id}}/files/#{file.guid}/templates/add"
1557
+ request[:request_body] = fields
1558
+ end.execute!
1559
+ json[:templateFields].map do |field|
1560
+ Document::Field.new(field)
1561
+ end
1562
+ end
1563
+
1564
+
1565
+ # added in release 1.8.0
1566
+ #
1567
+ # Update template's fields
1568
+ #
1569
+ # @example
1570
+ #
1571
+ # file = GroupDocs::Storage::File.new({:guid => '3be4e06494caed131d912c75e17d5f22592e3044032e0f81b35f13a8c9fefb49'}).to_document
1572
+ # field = GroupDocs::Document::TemplateEditorFields.new
1573
+ # field.name = 'test'
1574
+ # field.fieldtype = 'TextBox'
1575
+ # field.page = 1
1576
+ # file.update_questionnaire_template!([field] )
1577
+ #
1578
+ #
1579
+ # @param List[GroupDocs::Document::TemplateEditorFields] fields
1580
+ # @param [Hash] access Access credentials
1581
+ # @option access [String] :client_id
1582
+ # @option access [String] :private_key
1583
+ #
1584
+ def update_questionnaire_template!(fields, access = {})
1585
+
1586
+ fields.each do |field|
1587
+ field.is_a?(GroupDocs::Document::TemplateEditorFields) or raise ArgumentError,
1588
+ "Fields should be List GroupDocs::Document::TemplateEditorFields objects, received: #{fields.inspect}"
1589
+ end
1590
+
1591
+ json = Api::Request.new do |request|
1592
+ request[:access] = access
1593
+ request[:method] = :PUT
1594
+ request[:path] = "/merge/{{client_id}}/files/#{file.guid}/templates/update"
1595
+ request[:request_body] = fields
1596
+ end.execute!
1597
+ json[:templateFields].map do |field|
1598
+ Document::Field.new(field)
1599
+ end
1600
+ end
1601
+
1602
+ # added in release 1.8.0
1603
+ #
1604
+ # Delete template's fields
1605
+ #
1606
+ # @example
1607
+ #
1608
+ # file = GroupDocs::Storage::File.new({:guid => '3be4e06494caed131d912c75e17d5f22592e3044032e0f81b35f13a8c9fefb49'}).to_document
1609
+ # field = file.editor_fields!
1610
+ # file.delete_questionnaire_template!([field] )
1611
+ #
1612
+ #
1613
+ # @param List[GroupDocs::Document::TemplateEditorFields] fields
1614
+ # @param [Hash] access Access credentials
1615
+ # @option access [String] :client_id
1616
+ # @option access [String] :private_key
1617
+ #
1618
+ def delete_questionnaire_template!(fields, access = {})
1619
+
1620
+ fields.each do |field|
1621
+ field.is_a?(GroupDocs::Document::TemplateEditorFields) or raise ArgumentError,
1622
+ "Fields should be List GroupDocs::Document::TemplateEditorFields objects, received: #{fields.inspect}"
1623
+ end
1624
+
1625
+ json = Api::Request.new do |request|
1626
+ request[:access] = access
1627
+ request[:method] = :DELETE
1628
+ request[:path] = "/merge/{{client_id}}/files/#{file.guid}/templates/delete"
1629
+ request[:request_body] = fields
1630
+ end.execute!
1631
+ json[:templateFields].map do |field|
1632
+ Document::Field.new(field)
1633
+ end
1634
+ end
1635
+
1527
1636
  end # Document
1528
1637
  end # GroupDocs
@@ -22,6 +22,8 @@ module GroupDocs
22
22
  attr_accessor :style
23
23
  # @attr [Boolean] isTableMarker
24
24
  attr_accessor :isTableMarker
25
+ # @attr [Array] options
26
+ attr_accessor :options
25
27
 
26
28
  #
27
29
  # Converts passed hash to GroupDocs::Document::Rectangle object.
@@ -724,7 +724,7 @@ module GroupDocs
724
724
  end
725
725
 
726
726
  #
727
- # Changed in release 1.7.0
727
+ # Added in release 1.7.0
728
728
  #
729
729
  # Get form audit logs
730
730
  #
@@ -744,5 +744,26 @@ module GroupDocs
744
744
  end.execute!
745
745
  end
746
746
 
747
+ #
748
+ # Added in release 1.8.0
749
+ #
750
+ # Get form participants
751
+ #
752
+ # @param [Hash] options
753
+ # @option options [String] :field Field GUID
754
+ # @param [Hash] access Access credentials
755
+ # @option access [String] :client_id
756
+ # @option access [String] :private_key
757
+ # @raise [ArgumentError] if document is not GroupDocs::Document
758
+ #
759
+ def get_participants!(access = {})
760
+
761
+ Api::Request.new do |request|
762
+ request[:access] = access
763
+ request[:method] = :GET
764
+ request[:path] = "/signature/{{client_id}}/forms/#{id}/participants"
765
+ end.execute!
766
+ end
767
+
747
768
  end # Signature::Form
748
769
  end # GroupDocs
@@ -1,3 +1,3 @@
1
1
  module GroupDocs
2
- VERSION = '1.7.0'
2
+ VERSION = '1.8.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.7.0
4
+ version: 1.8.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-08-08 00:00:00.000000000 Z
12
+ date: 2014-10-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client