groupdocs 1.5.9 → 1.6.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.
- data/CHANGELOG.md +18 -0
- data/examples/api-samples/Gemfile.lock +2 -2
- data/examples/api-samples/public/docs/sample28.html +5 -50
- data/examples/api-samples/public/docs/sample43.html +0 -182
- data/examples/api-samples/samples/sample28.rb +0 -15
- data/examples/api-samples/views/sample28.haml +0 -9
- data/lib/groupdocs/document.rb +9 -0
- data/lib/groupdocs/document/annotation.rb +49 -4
- data/lib/groupdocs/document/annotation/reply.rb +7 -0
- data/lib/groupdocs/questionnaire.rb +9 -1
- data/lib/groupdocs/signature.rb +78 -0
- data/lib/groupdocs/signature/envelope.rb +18 -0
- data/lib/groupdocs/signature/form.rb +6 -0
- data/lib/groupdocs/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## v1.6.0
|
|
2
|
+
|
|
3
|
+
**Changes**
|
|
4
|
+
|
|
5
|
+
* `Document::Annotation` updated types of annotation
|
|
6
|
+
* `Signature::FieldMethods#modify_field!` added parament "recipientGuid"
|
|
7
|
+
|
|
8
|
+
**New**
|
|
9
|
+
|
|
10
|
+
* Added `Documet::Annotation#remove_annotations!`
|
|
11
|
+
* Added `Document::Annotation` attributes
|
|
12
|
+
* Added `Document::Annotation::Reply` attributes
|
|
13
|
+
* Added `Document` attributes
|
|
14
|
+
* Added `Signature.public_get_default_email_template!`
|
|
15
|
+
* Added `Signature` template fields
|
|
16
|
+
* Added `Signature::Form` attribute
|
|
17
|
+
* Added `Signature::Envelope#resend!`
|
|
18
|
+
|
|
1
19
|
## v1.5.9
|
|
2
20
|
|
|
3
21
|
**Changes**
|
|
@@ -8,7 +8,7 @@ GEM
|
|
|
8
8
|
thread_safe (~> 0.1)
|
|
9
9
|
tzinfo (~> 0.3.37)
|
|
10
10
|
atomic (1.1.14)
|
|
11
|
-
groupdocs (1.5.
|
|
11
|
+
groupdocs (1.5.9)
|
|
12
12
|
activesupport (>= 3.0)
|
|
13
13
|
json (~> 1.7)
|
|
14
14
|
mime-types (~> 1.19)
|
|
@@ -38,6 +38,6 @@ PLATFORMS
|
|
|
38
38
|
x86-mingw32
|
|
39
39
|
|
|
40
40
|
DEPENDENCIES
|
|
41
|
-
groupdocs (= 1.5.
|
|
41
|
+
groupdocs (= 1.5.9)
|
|
42
42
|
haml
|
|
43
43
|
sinatra (= 1.3.6)
|
|
@@ -63,9 +63,10 @@
|
|
|
63
63
|
|
|
64
64
|
</div>
|
|
65
65
|
|
|
66
|
-
<div class="content"><div class='highlight'><pre> set <span class="symbol">:client_id</span>, params[<span class="symbol">:
|
|
67
|
-
set <span class="symbol">:private_key</span>, params[<span class="symbol">:
|
|
66
|
+
<div class="content"><div class='highlight'><pre> set <span class="symbol">:client_id</span>, params[<span class="symbol">:clientId</span>]
|
|
67
|
+
set <span class="symbol">:private_key</span>, params[<span class="symbol">:privateKey</span>]
|
|
68
68
|
set <span class="symbol">:file_id</span>, params[<span class="symbol">:fileId</span>]
|
|
69
|
+
set <span class="symbol">:base_path</span>, params[<span class="symbol">:basePath</span>]
|
|
69
70
|
|
|
70
71
|
<span class="keyword">begin</span></pre></div></div>
|
|
71
72
|
|
|
@@ -93,9 +94,6 @@
|
|
|
93
94
|
<div class="pilwrap ">
|
|
94
95
|
<a class="pilcrow" href="#section-5">¶</a>
|
|
95
96
|
</div>
|
|
96
|
-
<<<<<<< HEAD
|
|
97
|
-
<p>Configure your access to API server.</p>
|
|
98
|
-
=======
|
|
99
97
|
<p>Prepare base path</p>
|
|
100
98
|
|
|
101
99
|
</div>
|
|
@@ -118,14 +116,12 @@
|
|
|
118
116
|
<a class="pilcrow" href="#section-6">¶</a>
|
|
119
117
|
</div>
|
|
120
118
|
<p>Configure your access to API server</p>
|
|
121
|
-
>>>>>>> samples-dev
|
|
122
119
|
|
|
123
120
|
</div>
|
|
124
121
|
|
|
125
122
|
<div class="content"><div class='highlight'><pre> <span class="constant">GroupDocs</span>.configure <span class="keyword">do</span> |groupdocs|
|
|
126
123
|
groupdocs.client_id = settings.client_id
|
|
127
|
-
groupdocs.private_key = settings.private_key
|
|
128
|
-
<span class="keyword">end</span></pre></div></div>
|
|
124
|
+
groupdocs.private_key = settings.private_key</pre></div></div>
|
|
129
125
|
|
|
130
126
|
</li>
|
|
131
127
|
|
|
@@ -136,9 +132,6 @@
|
|
|
136
132
|
<div class="pilwrap ">
|
|
137
133
|
<a class="pilcrow" href="#section-7">¶</a>
|
|
138
134
|
</div>
|
|
139
|
-
<<<<<<< HEAD
|
|
140
|
-
<p>make a request to API using client_id and private_key</p>
|
|
141
|
-
=======
|
|
142
135
|
<p>Optionally specify API server and version</p>
|
|
143
136
|
|
|
144
137
|
</div>
|
|
@@ -156,7 +149,6 @@
|
|
|
156
149
|
<a class="pilcrow" href="#section-8">¶</a>
|
|
157
150
|
</div>
|
|
158
151
|
<p>Make a request to API using client_id and private_key</p>
|
|
159
|
-
>>>>>>> samples-dev
|
|
160
152
|
|
|
161
153
|
</div>
|
|
162
154
|
|
|
@@ -166,19 +158,11 @@
|
|
|
166
158
|
</li>
|
|
167
159
|
|
|
168
160
|
|
|
169
|
-
<<<<<<< HEAD
|
|
170
|
-
<li id="section-7">
|
|
171
|
-
<div class="annotation">
|
|
172
|
-
|
|
173
|
-
<div class="pilwrap ">
|
|
174
|
-
<a class="pilcrow" href="#section-7">¶</a>
|
|
175
|
-
=======
|
|
176
161
|
<li id="section-9">
|
|
177
162
|
<div class="annotation">
|
|
178
163
|
|
|
179
164
|
<div class="pilwrap ">
|
|
180
165
|
<a class="pilcrow" href="#section-9">¶</a>
|
|
181
|
-
>>>>>>> samples-dev
|
|
182
166
|
</div>
|
|
183
167
|
<p>Get document by file ID</p>
|
|
184
168
|
|
|
@@ -196,52 +180,32 @@
|
|
|
196
180
|
</li>
|
|
197
181
|
|
|
198
182
|
|
|
199
|
-
<<<<<<< HEAD
|
|
200
|
-
<li id="section-8">
|
|
201
|
-
<div class="annotation">
|
|
202
|
-
|
|
203
|
-
<div class="pilwrap ">
|
|
204
|
-
<a class="pilcrow" href="#section-8">¶</a>
|
|
205
|
-
=======
|
|
206
183
|
<li id="section-10">
|
|
207
184
|
<div class="annotation">
|
|
208
185
|
|
|
209
186
|
<div class="pilwrap ">
|
|
210
187
|
<a class="pilcrow" href="#section-10">¶</a>
|
|
211
|
-
>>>>>>> samples-dev
|
|
212
188
|
</div>
|
|
213
189
|
<p>Get list of annotations</p>
|
|
214
190
|
|
|
215
191
|
</div>
|
|
216
192
|
|
|
217
|
-
<div class="content"><div class='highlight'><pre> annotations = document.to_document.annotations!(
|
|
193
|
+
<div class="content"><div class='highlight'><pre> annotations = document.to_document.annotations!()</pre></div></div>
|
|
218
194
|
|
|
219
195
|
</li>
|
|
220
196
|
|
|
221
197
|
|
|
222
|
-
<<<<<<< HEAD
|
|
223
|
-
<li id="section-9">
|
|
224
|
-
<div class="annotation">
|
|
225
|
-
|
|
226
|
-
<div class="pilwrap ">
|
|
227
|
-
<a class="pilcrow" href="#section-9">¶</a>
|
|
228
|
-
=======
|
|
229
198
|
<li id="section-11">
|
|
230
199
|
<div class="annotation">
|
|
231
200
|
|
|
232
201
|
<div class="pilwrap ">
|
|
233
202
|
<a class="pilcrow" href="#section-11">¶</a>
|
|
234
|
-
>>>>>>> samples-dev
|
|
235
203
|
</div>
|
|
236
204
|
<p>Delete all annotations from document</p>
|
|
237
205
|
|
|
238
206
|
</div>
|
|
239
207
|
|
|
240
208
|
<div class="content"><div class='highlight'><pre> annotations.each <span class="keyword">do</span> |annotation|
|
|
241
|
-
<<<<<<< HEAD
|
|
242
|
-
annotation.remove!(<span class="symbol">:client_id</span> => settings.client_id, <span class="symbol">:private_key</span> => settings.private_key)
|
|
243
|
-
<span class="keyword">end</span>
|
|
244
|
-
=======
|
|
245
209
|
annotation.remove!()
|
|
246
210
|
<span class="keyword">end</span></pre></div></div>
|
|
247
211
|
|
|
@@ -311,7 +275,6 @@
|
|
|
311
275
|
</div>
|
|
312
276
|
|
|
313
277
|
<div class="content"><div class='highlight'><pre> iframe = <span class="string">"<iframe id='downloadframe' src='<span class="subst">#{iframe}</span>' width='800' height='1000'></iframe>"</span>
|
|
314
|
-
>>>>>>> samples-dev
|
|
315
278
|
|
|
316
279
|
message = <span class="string">'Annotations was deleted from document'</span>
|
|
317
280
|
<span class="keyword">end</span>
|
|
@@ -323,19 +286,11 @@
|
|
|
323
286
|
</li>
|
|
324
287
|
|
|
325
288
|
|
|
326
|
-
<<<<<<< HEAD
|
|
327
|
-
<li id="section-10">
|
|
328
|
-
<div class="annotation">
|
|
329
|
-
|
|
330
|
-
<div class="pilwrap ">
|
|
331
|
-
<a class="pilcrow" href="#section-10">¶</a>
|
|
332
|
-
=======
|
|
333
289
|
<li id="section-16">
|
|
334
290
|
<div class="annotation">
|
|
335
291
|
|
|
336
292
|
<div class="pilwrap ">
|
|
337
293
|
<a class="pilcrow" href="#section-16">¶</a>
|
|
338
|
-
>>>>>>> samples-dev
|
|
339
294
|
</div>
|
|
340
295
|
<p>Set variables for template</p>
|
|
341
296
|
|
|
@@ -59,11 +59,7 @@
|
|
|
59
59
|
<div class="pilwrap ">
|
|
60
60
|
<a class="pilcrow" href="#section-3">¶</a>
|
|
61
61
|
</div>
|
|
62
|
-
<<<<<<< HEAD
|
|
63
|
-
<p>set variables</p>
|
|
64
|
-
=======
|
|
65
62
|
<p>Set variables</p>
|
|
66
|
-
>>>>>>> samples-dev
|
|
67
63
|
|
|
68
64
|
</div>
|
|
69
65
|
|
|
@@ -123,13 +119,7 @@
|
|
|
123
119
|
|
|
124
120
|
</div>
|
|
125
121
|
|
|
126
|
-
<<<<<<< HEAD
|
|
127
|
-
<div class="content"><div class='highlight'><pre> raise <span class="string">'Please enter all required parameters'</span> <span class="keyword">if</span> settings.client_id.empty? <span class="keyword">or</span> settings.private_key.empty?
|
|
128
|
-
|
|
129
|
-
<span class="keyword">if</span> settings.base_path.empty? <span class="keyword">then</span> settings.base_path = <span class="string">'https://api.groupdocs.com'</span> <span class="keyword">end</span></pre></div></div>
|
|
130
|
-
=======
|
|
131
122
|
<div class="content"><div class='highlight'><pre> raise <span class="string">'Please enter all required parameters'</span> <span class="keyword">if</span> settings.client_id.empty? <span class="keyword">or</span> settings.private_key.empty?</pre></div></div>
|
|
132
|
-
>>>>>>> samples-dev
|
|
133
123
|
|
|
134
124
|
</li>
|
|
135
125
|
|
|
@@ -140,8 +130,6 @@
|
|
|
140
130
|
<div class="pilwrap ">
|
|
141
131
|
<a class="pilcrow" href="#section-7">¶</a>
|
|
142
132
|
</div>
|
|
143
|
-
<<<<<<< HEAD
|
|
144
|
-
=======
|
|
145
133
|
<p>Prepare base path</p>
|
|
146
134
|
|
|
147
135
|
</div>
|
|
@@ -163,7 +151,6 @@
|
|
|
163
151
|
<div class="pilwrap ">
|
|
164
152
|
<a class="pilcrow" href="#section-8">¶</a>
|
|
165
153
|
</div>
|
|
166
|
-
>>>>>>> samples-dev
|
|
167
154
|
<p>Configure your access to API server</p>
|
|
168
155
|
|
|
169
156
|
</div>
|
|
@@ -175,48 +162,28 @@
|
|
|
175
162
|
</li>
|
|
176
163
|
|
|
177
164
|
|
|
178
|
-
<<<<<<< HEAD
|
|
179
|
-
<li id="section-8">
|
|
180
|
-
<div class="annotation">
|
|
181
|
-
|
|
182
|
-
<div class="pilwrap ">
|
|
183
|
-
<a class="pilcrow" href="#section-8">¶</a>
|
|
184
|
-
=======
|
|
185
165
|
<li id="section-9">
|
|
186
166
|
<div class="annotation">
|
|
187
167
|
|
|
188
168
|
<div class="pilwrap ">
|
|
189
169
|
<a class="pilcrow" href="#section-9">¶</a>
|
|
190
|
-
>>>>>>> samples-dev
|
|
191
170
|
</div>
|
|
192
171
|
<p>Optionally specify API server and version</p>
|
|
193
172
|
|
|
194
173
|
</div>
|
|
195
174
|
|
|
196
|
-
<<<<<<< HEAD
|
|
197
|
-
<div class="content"><div class='highlight'><pre> groupdocs.api_server = settings.base_path <span class="comment"># default is 'https://api.groupdocs.com'</span>
|
|
198
|
-
=======
|
|
199
175
|
<div class="content"><div class='highlight'><pre> groupdocs.api_server = base_path <span class="comment"># default is 'https://api.groupdocs.com'</span>
|
|
200
176
|
|
|
201
|
-
>>>>>>> samples-dev
|
|
202
177
|
<span class="keyword">end</span></pre></div></div>
|
|
203
178
|
|
|
204
179
|
</li>
|
|
205
180
|
|
|
206
181
|
|
|
207
|
-
<<<<<<< HEAD
|
|
208
|
-
<li id="section-9">
|
|
209
|
-
<div class="annotation">
|
|
210
|
-
|
|
211
|
-
<div class="pilwrap ">
|
|
212
|
-
<a class="pilcrow" href="#section-9">¶</a>
|
|
213
|
-
=======
|
|
214
182
|
<li id="section-10">
|
|
215
183
|
<div class="annotation">
|
|
216
184
|
|
|
217
185
|
<div class="pilwrap ">
|
|
218
186
|
<a class="pilcrow" href="#section-10">¶</a>
|
|
219
|
-
>>>>>>> samples-dev
|
|
220
187
|
</div>
|
|
221
188
|
<p>Get document by file GUID</p>
|
|
222
189
|
|
|
@@ -228,19 +195,11 @@
|
|
|
228
195
|
</li>
|
|
229
196
|
|
|
230
197
|
|
|
231
|
-
<<<<<<< HEAD
|
|
232
|
-
<li id="section-10">
|
|
233
|
-
<div class="annotation">
|
|
234
|
-
|
|
235
|
-
<div class="pilwrap ">
|
|
236
|
-
<a class="pilcrow" href="#section-10">¶</a>
|
|
237
|
-
=======
|
|
238
198
|
<li id="section-11">
|
|
239
199
|
<div class="annotation">
|
|
240
200
|
|
|
241
201
|
<div class="pilwrap ">
|
|
242
202
|
<a class="pilcrow" href="#section-11">¶</a>
|
|
243
|
-
>>>>>>> samples-dev
|
|
244
203
|
</div>
|
|
245
204
|
<p>Create instance of File</p>
|
|
246
205
|
|
|
@@ -252,19 +211,11 @@
|
|
|
252
211
|
</li>
|
|
253
212
|
|
|
254
213
|
|
|
255
|
-
<<<<<<< HEAD
|
|
256
|
-
<li id="section-11">
|
|
257
|
-
<div class="annotation">
|
|
258
|
-
|
|
259
|
-
<div class="pilwrap ">
|
|
260
|
-
<a class="pilcrow" href="#section-11">¶</a>
|
|
261
|
-
=======
|
|
262
214
|
<li id="section-12">
|
|
263
215
|
<div class="annotation">
|
|
264
216
|
|
|
265
217
|
<div class="pilwrap ">
|
|
266
218
|
<a class="pilcrow" href="#section-12">¶</a>
|
|
267
|
-
>>>>>>> samples-dev
|
|
268
219
|
</div>
|
|
269
220
|
<p>Construct path</p>
|
|
270
221
|
|
|
@@ -275,19 +226,11 @@
|
|
|
275
226
|
</li>
|
|
276
227
|
|
|
277
228
|
|
|
278
|
-
<<<<<<< HEAD
|
|
279
|
-
<li id="section-12">
|
|
280
|
-
<div class="annotation">
|
|
281
|
-
|
|
282
|
-
<div class="pilwrap ">
|
|
283
|
-
<a class="pilcrow" href="#section-12">¶</a>
|
|
284
|
-
=======
|
|
285
229
|
<li id="section-13">
|
|
286
230
|
<div class="annotation">
|
|
287
231
|
|
|
288
232
|
<div class="pilwrap ">
|
|
289
233
|
<a class="pilcrow" href="#section-13">¶</a>
|
|
290
|
-
>>>>>>> samples-dev
|
|
291
234
|
</div>
|
|
292
235
|
<p>Open file</p>
|
|
293
236
|
|
|
@@ -298,19 +241,11 @@
|
|
|
298
241
|
</li>
|
|
299
242
|
|
|
300
243
|
|
|
301
|
-
<<<<<<< HEAD
|
|
302
|
-
<li id="section-13">
|
|
303
|
-
<div class="annotation">
|
|
304
|
-
|
|
305
|
-
<div class="pilwrap ">
|
|
306
|
-
<a class="pilcrow" href="#section-13">¶</a>
|
|
307
|
-
=======
|
|
308
244
|
<li id="section-14">
|
|
309
245
|
<div class="annotation">
|
|
310
246
|
|
|
311
247
|
<div class="pilwrap ">
|
|
312
248
|
<a class="pilcrow" href="#section-14">¶</a>
|
|
313
|
-
>>>>>>> samples-dev
|
|
314
249
|
</div>
|
|
315
250
|
<p>Make a request to API using client_id and private_key</p>
|
|
316
251
|
|
|
@@ -322,19 +257,11 @@
|
|
|
322
257
|
</li>
|
|
323
258
|
|
|
324
259
|
|
|
325
|
-
<<<<<<< HEAD
|
|
326
|
-
<li id="section-14">
|
|
327
|
-
<div class="annotation">
|
|
328
|
-
|
|
329
|
-
<div class="pilwrap ">
|
|
330
|
-
<a class="pilcrow" href="#section-14">¶</a>
|
|
331
|
-
=======
|
|
332
260
|
<li id="section-15">
|
|
333
261
|
<div class="annotation">
|
|
334
262
|
|
|
335
263
|
<div class="pilwrap ">
|
|
336
264
|
<a class="pilcrow" href="#section-15">¶</a>
|
|
337
|
-
>>>>>>> samples-dev
|
|
338
265
|
</div>
|
|
339
266
|
<p>Upload file from defined url</p>
|
|
340
267
|
|
|
@@ -348,19 +275,11 @@
|
|
|
348
275
|
</li>
|
|
349
276
|
|
|
350
277
|
|
|
351
|
-
<<<<<<< HEAD
|
|
352
|
-
<li id="section-15">
|
|
353
|
-
<div class="annotation">
|
|
354
|
-
|
|
355
|
-
<div class="pilwrap ">
|
|
356
|
-
<a class="pilcrow" href="#section-15">¶</a>
|
|
357
|
-
=======
|
|
358
278
|
<li id="section-16">
|
|
359
279
|
<div class="annotation">
|
|
360
280
|
|
|
361
281
|
<div class="pilwrap ">
|
|
362
282
|
<a class="pilcrow" href="#section-16">¶</a>
|
|
363
|
-
>>>>>>> samples-dev
|
|
364
283
|
</div>
|
|
365
284
|
<p>Raise exception if something went wrong</p>
|
|
366
285
|
|
|
@@ -371,19 +290,11 @@
|
|
|
371
290
|
</li>
|
|
372
291
|
|
|
373
292
|
|
|
374
|
-
<<<<<<< HEAD
|
|
375
|
-
<li id="section-16">
|
|
376
|
-
<div class="annotation">
|
|
377
|
-
|
|
378
|
-
<div class="pilwrap ">
|
|
379
|
-
<a class="pilcrow" href="#section-16">¶</a>
|
|
380
|
-
=======
|
|
381
293
|
<li id="section-17">
|
|
382
294
|
<div class="annotation">
|
|
383
295
|
|
|
384
296
|
<div class="pilwrap ">
|
|
385
297
|
<a class="pilcrow" href="#section-17">¶</a>
|
|
386
|
-
>>>>>>> samples-dev
|
|
387
298
|
</div>
|
|
388
299
|
<p>Make GroupDocs::Storage::Document instance</p>
|
|
389
300
|
|
|
@@ -394,19 +305,11 @@
|
|
|
394
305
|
</li>
|
|
395
306
|
|
|
396
307
|
|
|
397
|
-
<<<<<<< HEAD
|
|
398
|
-
<li id="section-17">
|
|
399
|
-
<div class="annotation">
|
|
400
|
-
|
|
401
|
-
<div class="pilwrap ">
|
|
402
|
-
<a class="pilcrow" href="#section-17">¶</a>
|
|
403
|
-
=======
|
|
404
308
|
<li id="section-18">
|
|
405
309
|
<div class="annotation">
|
|
406
310
|
|
|
407
311
|
<div class="pilwrap ">
|
|
408
312
|
<a class="pilcrow" href="#section-18">¶</a>
|
|
409
|
-
>>>>>>> samples-dev
|
|
410
313
|
</div>
|
|
411
314
|
<p>Create Hash with the options for job. :status=> -1 means the Draft status of the job</p>
|
|
412
315
|
|
|
@@ -417,19 +320,11 @@
|
|
|
417
320
|
</li>
|
|
418
321
|
|
|
419
322
|
|
|
420
|
-
<<<<<<< HEAD
|
|
421
|
-
<li id="section-18">
|
|
422
|
-
<div class="annotation">
|
|
423
|
-
|
|
424
|
-
<div class="pilwrap ">
|
|
425
|
-
<a class="pilcrow" href="#section-18">¶</a>
|
|
426
|
-
=======
|
|
427
323
|
<li id="section-19">
|
|
428
324
|
<div class="annotation">
|
|
429
325
|
|
|
430
326
|
<div class="pilwrap ">
|
|
431
327
|
<a class="pilcrow" href="#section-19">¶</a>
|
|
432
|
-
>>>>>>> samples-dev
|
|
433
328
|
</div>
|
|
434
329
|
<p>Create Job with provided options with Draft status (Sheduled job)</p>
|
|
435
330
|
|
|
@@ -440,19 +335,11 @@
|
|
|
440
335
|
</li>
|
|
441
336
|
|
|
442
337
|
|
|
443
|
-
<<<<<<< HEAD
|
|
444
|
-
<li id="section-19">
|
|
445
|
-
<div class="annotation">
|
|
446
|
-
|
|
447
|
-
<div class="pilwrap ">
|
|
448
|
-
<a class="pilcrow" href="#section-19">¶</a>
|
|
449
|
-
=======
|
|
450
338
|
<li id="section-20">
|
|
451
339
|
<div class="annotation">
|
|
452
340
|
|
|
453
341
|
<div class="pilwrap ">
|
|
454
342
|
<a class="pilcrow" href="#section-20">¶</a>
|
|
455
|
-
>>>>>>> samples-dev
|
|
456
343
|
</div>
|
|
457
344
|
<p>Add the documents to previously created Job</p>
|
|
458
345
|
|
|
@@ -463,19 +350,11 @@
|
|
|
463
350
|
</li>
|
|
464
351
|
|
|
465
352
|
|
|
466
|
-
<<<<<<< HEAD
|
|
467
|
-
<li id="section-20">
|
|
468
|
-
<div class="annotation">
|
|
469
|
-
|
|
470
|
-
<div class="pilwrap ">
|
|
471
|
-
<a class="pilcrow" href="#section-20">¶</a>
|
|
472
|
-
=======
|
|
473
353
|
<li id="section-21">
|
|
474
354
|
<div class="annotation">
|
|
475
355
|
|
|
476
356
|
<div class="pilwrap ">
|
|
477
357
|
<a class="pilcrow" href="#section-21">¶</a>
|
|
478
|
-
>>>>>>> samples-dev
|
|
479
358
|
</div>
|
|
480
359
|
<p>Update the Job with new status. :status => '0' mean Active status of the job (Start the job)</p>
|
|
481
360
|
|
|
@@ -495,19 +374,11 @@
|
|
|
495
374
|
</li>
|
|
496
375
|
|
|
497
376
|
|
|
498
|
-
<<<<<<< HEAD
|
|
499
|
-
<li id="section-21">
|
|
500
|
-
<div class="annotation">
|
|
501
|
-
|
|
502
|
-
<div class="pilwrap ">
|
|
503
|
-
<a class="pilcrow" href="#section-21">¶</a>
|
|
504
|
-
=======
|
|
505
377
|
<li id="section-22">
|
|
506
378
|
<div class="annotation">
|
|
507
379
|
|
|
508
380
|
<div class="pilwrap ">
|
|
509
381
|
<a class="pilcrow" href="#section-22">¶</a>
|
|
510
|
-
>>>>>>> samples-dev
|
|
511
382
|
</div>
|
|
512
383
|
<p>Get the document into Pdf format</p>
|
|
513
384
|
|
|
@@ -520,19 +391,11 @@
|
|
|
520
391
|
</li>
|
|
521
392
|
|
|
522
393
|
|
|
523
|
-
<<<<<<< HEAD
|
|
524
|
-
<li id="section-22">
|
|
525
|
-
<div class="annotation">
|
|
526
|
-
|
|
527
|
-
<div class="pilwrap ">
|
|
528
|
-
<a class="pilcrow" href="#section-22">¶</a>
|
|
529
|
-
=======
|
|
530
394
|
<li id="section-23">
|
|
531
395
|
<div class="annotation">
|
|
532
396
|
|
|
533
397
|
<div class="pilwrap ">
|
|
534
398
|
<a class="pilcrow" href="#section-23">¶</a>
|
|
535
|
-
>>>>>>> samples-dev
|
|
536
399
|
</div>
|
|
537
400
|
<p>Set iframe with document GUID or raise an error</p>
|
|
538
401
|
|
|
@@ -543,27 +406,6 @@
|
|
|
543
406
|
</li>
|
|
544
407
|
|
|
545
408
|
|
|
546
|
-
<<<<<<< HEAD
|
|
547
|
-
<li id="section-23">
|
|
548
|
-
<div class="annotation">
|
|
549
|
-
|
|
550
|
-
<div class="pilwrap ">
|
|
551
|
-
<a class="pilcrow" href="#section-23">¶</a>
|
|
552
|
-
</div>
|
|
553
|
-
<p>Get url from request</p>
|
|
554
|
-
|
|
555
|
-
</div>
|
|
556
|
-
|
|
557
|
-
<div class="content"><div class='highlight'><pre> <span class="keyword">case</span> settings.base_path
|
|
558
|
-
|
|
559
|
-
<span class="keyword">when</span> <span class="string">'https://stage-api-groupdocs.dynabic.com'</span>
|
|
560
|
-
url = <span class="string">"http://stage-apps-groupdocs.dynabic.com/document-viewer/embed/<span class="subst">#{document.guid}</span>"</span>
|
|
561
|
-
<span class="keyword">when</span> <span class="string">'https://dev-api-groupdocs.dynabic.com'</span>
|
|
562
|
-
url = <span class="string">"http://dev-apps-groupdocs.dynabic.com/document-viewer/embed/<span class="subst">#{document.guid}</span>"</span>
|
|
563
|
-
<span class="keyword">else</span>
|
|
564
|
-
url = <span class="string">"https://apps.groupdocs.com/document-viewer/embed/<span class="subst">#{document.guid}</span>"</span>
|
|
565
|
-
<span class="keyword">end</span></pre></div></div>
|
|
566
|
-
=======
|
|
567
409
|
<li id="section-24">
|
|
568
410
|
<div class="annotation">
|
|
569
411
|
|
|
@@ -575,25 +417,10 @@
|
|
|
575
417
|
</div>
|
|
576
418
|
|
|
577
419
|
<div class="content"><div class='highlight'><pre> iframe = <span class="string">"document-viewer/embed/<span class="subst">#{document.guid}</span>"</span></pre></div></div>
|
|
578
|
-
>>>>>>> samples-dev
|
|
579
420
|
|
|
580
421
|
</li>
|
|
581
422
|
|
|
582
423
|
|
|
583
|
-
<<<<<<< HEAD
|
|
584
|
-
<li id="section-24">
|
|
585
|
-
<div class="annotation">
|
|
586
|
-
|
|
587
|
-
<div class="pilwrap ">
|
|
588
|
-
<a class="pilcrow" href="#section-24">¶</a>
|
|
589
|
-
</div>
|
|
590
|
-
<p>Add the signature in url</p>
|
|
591
|
-
|
|
592
|
-
</div>
|
|
593
|
-
|
|
594
|
-
<div class="content"><div class='highlight'><pre> iframe = <span class="constant">GroupDocs::Api::Request</span>.new(<span class="symbol">:path</span> => url).prepare_and_sign_url
|
|
595
|
-
iframe = <span class="string">"<iframe width='100%' height='600' frameborder='0' src='<span class="subst">#{iframe}</span>'></iframe>"</span>
|
|
596
|
-
=======
|
|
597
424
|
<li id="section-25">
|
|
598
425
|
<div class="annotation">
|
|
599
426
|
|
|
@@ -629,7 +456,6 @@
|
|
|
629
456
|
<span class="keyword">end</span>
|
|
630
457
|
|
|
631
458
|
iframe = <span class="string">"<iframe width='100%' height='600' id='downloadframe' frameborder='0' src='<span class="subst">#{iframe}</span>'></iframe>"</span>
|
|
632
|
-
>>>>>>> samples-dev
|
|
633
459
|
<span class="keyword">else</span>
|
|
634
460
|
raise <span class="string">'File was not converted'</span>
|
|
635
461
|
<span class="keyword">end</span>
|
|
@@ -640,19 +466,11 @@
|
|
|
640
466
|
</li>
|
|
641
467
|
|
|
642
468
|
|
|
643
|
-
<<<<<<< HEAD
|
|
644
|
-
<li id="section-25">
|
|
645
|
-
<div class="annotation">
|
|
646
|
-
|
|
647
|
-
<div class="pilwrap ">
|
|
648
|
-
<a class="pilcrow" href="#section-25">¶</a>
|
|
649
|
-
=======
|
|
650
469
|
<li id="section-27">
|
|
651
470
|
<div class="annotation">
|
|
652
471
|
|
|
653
472
|
<div class="pilwrap ">
|
|
654
473
|
<a class="pilcrow" href="#section-27">¶</a>
|
|
655
|
-
>>>>>>> samples-dev
|
|
656
474
|
</div>
|
|
657
475
|
<p>Set variables for template</p>
|
|
658
476
|
|
|
@@ -53,17 +53,7 @@ post '/sample28' do
|
|
|
53
53
|
annotations.each do |annotation|
|
|
54
54
|
annotation.remove!()
|
|
55
55
|
end
|
|
56
|
-
case settings.base_path
|
|
57
56
|
|
|
58
|
-
<<<<<<< HEAD
|
|
59
|
-
when 'https://stage-api-groupdocs.dynabic.com'
|
|
60
|
-
iframe = "<iframe width='100%' height='600' frameborder='0' src='http://stage-apps-groupdocs.dynabic.com/document-viewer/embed/#{settings.file_id}'></iframe>"
|
|
61
|
-
when 'https://dev-api-groupdocs.dynabic.com'
|
|
62
|
-
iframe = "<iframe width='100%' height='600' frameborder='0' src='http://dev-apps-groupdocs.dynabic.com/document-viewer/embed/#{settings.file_id}'></iframe>"
|
|
63
|
-
else
|
|
64
|
-
iframe = "<iframe width='100%' height='600' frameborder='0' src='https://apps.groupdocs.com/document-viewer/embed/#{settings.file_id}'></iframe>"
|
|
65
|
-
end
|
|
66
|
-
=======
|
|
67
57
|
#Prepare to sign url
|
|
68
58
|
iframe = "/document-viewer/embed/#{settings.file_id}"
|
|
69
59
|
# Construct result string
|
|
@@ -80,7 +70,6 @@ post '/sample28' do
|
|
|
80
70
|
#Make iframe
|
|
81
71
|
iframe = "<iframe id='downloadframe' src='#{iframe}' width='800' height='1000'></iframe>"
|
|
82
72
|
|
|
83
|
-
>>>>>>> samples-dev
|
|
84
73
|
message = 'Annotations was deleted from document'
|
|
85
74
|
end
|
|
86
75
|
|
|
@@ -88,10 +77,6 @@ post '/sample28' do
|
|
|
88
77
|
err = e.message
|
|
89
78
|
end
|
|
90
79
|
|
|
91
|
-
<<<<<<< HEAD
|
|
92
|
-
# set variables for template
|
|
93
|
-
=======
|
|
94
80
|
#Set variables for template
|
|
95
|
-
>>>>>>> samples-dev
|
|
96
81
|
haml :sample28, :locals => {:userId => settings.client_id, :privateKey => settings.private_key, :messages => message, :iframe => iframe, :fileId => settings.file_id, :err => err}
|
|
97
82
|
end
|
|
@@ -43,19 +43,10 @@
|
|
|
43
43
|
%br/
|
|
44
44
|
%input{:type => 'submit', :value => 'Delete all annotations'}/
|
|
45
45
|
%div{:style => 'padding:20px; border:1px solid black;'}
|
|
46
|
-
<<<<<<< HEAD
|
|
47
|
-
%p
|
|
48
|
-
Results:
|
|
49
|
-
%br/
|
|
50
|
-
%font{:color => 'green'}#{(defined? messages) ? messages : ''}
|
|
51
|
-
#{(defined? iframe) ? iframe : ''}
|
|
52
|
-
%br/
|
|
53
|
-
=======
|
|
54
46
|
Results:
|
|
55
47
|
%br/
|
|
56
48
|
%span{:style => 'color:green'}#{(defined? messages) ? messages : ''}
|
|
57
49
|
#{(defined? iframe) ? iframe : ''}
|
|
58
50
|
%br/
|
|
59
|
-
>>>>>>> samples-dev
|
|
60
51
|
|
|
61
52
|
= partial :_others_samples
|
data/lib/groupdocs/document.rb
CHANGED
|
@@ -196,6 +196,15 @@ module GroupDocs
|
|
|
196
196
|
attr_accessor :order
|
|
197
197
|
# @attr [Integer] field_count
|
|
198
198
|
attr_accessor :field_count
|
|
199
|
+
|
|
200
|
+
#added in release 1.6.0
|
|
201
|
+
# @attr [String] fieldType
|
|
202
|
+
attr_accessor :fileType
|
|
203
|
+
# @attr [Int] dependent_questionnaires_count
|
|
204
|
+
attr_accessor :dependent_questionnaires_count
|
|
205
|
+
# @attr [Long] upload_time
|
|
206
|
+
attr_accessor :upload_time
|
|
207
|
+
|
|
199
208
|
[
|
|
200
209
|
:news ,
|
|
201
210
|
:alerts ,
|
|
@@ -6,9 +6,10 @@ module GroupDocs
|
|
|
6
6
|
|
|
7
7
|
include Api::Helpers::AccessMode
|
|
8
8
|
|
|
9
|
-
#AnnotationType = { Text: 0, Area: 1, Point: 2, TextStrikeout: 3, Polyline: 4, TextField: 5, Watermark: 6 }
|
|
9
|
+
#AnnotationType = { Text: 0, Area: 1, Point: 2, TextStrikeout: 3, Polyline: 4, TextField: 5, Watermark: 6, TextReplacement: 7, TextRemoval: 8 }
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
# updateed in release 1.6.0
|
|
12
|
+
TYPES = %w(Text Area Point TextStrikeout Polyline TextField Watermark TextReplacement TextRemoval )
|
|
12
13
|
|
|
13
14
|
# @attr [GroupDocs::Document] document
|
|
14
15
|
attr_accessor :document
|
|
@@ -47,12 +48,25 @@ module GroupDocs
|
|
|
47
48
|
attr_accessor :fontColor
|
|
48
49
|
|
|
49
50
|
#added in release 1.5.8
|
|
50
|
-
#@attr [Int]pageNumber
|
|
51
|
+
#@attr [Int] pageNumber
|
|
51
52
|
attr_accessor :pageNumber
|
|
52
53
|
#@attr [Long] serverTime
|
|
53
54
|
attr_accessor :serverTime
|
|
54
55
|
#attr [Array]
|
|
55
56
|
|
|
57
|
+
#added in release 1.6.0
|
|
58
|
+
#@attr [Int] penColor
|
|
59
|
+
attr_accessor :penColor
|
|
60
|
+
#@attr [Int] penWidth
|
|
61
|
+
attr_accessor :penWidth
|
|
62
|
+
#@attr [Int] penStyle
|
|
63
|
+
attr_accessor :penStyle
|
|
64
|
+
#@attr [Int] creatorName
|
|
65
|
+
attr_accessor :creatorName
|
|
66
|
+
#@attr [Int] creatorEmail
|
|
67
|
+
attr_accessor :creatorEmail
|
|
68
|
+
|
|
69
|
+
|
|
56
70
|
# Compatibility with response JSON
|
|
57
71
|
alias_method :annotationGuid=, :guid=
|
|
58
72
|
|
|
@@ -68,6 +82,13 @@ module GroupDocs
|
|
|
68
82
|
alias_accessor :page_number, :pageNumber
|
|
69
83
|
alias_accessor :server_time, :serverTime
|
|
70
84
|
|
|
85
|
+
#added in release 1.6.0
|
|
86
|
+
alias_accessor :pen_color, :penColor
|
|
87
|
+
alias_accessor :pen_width, :penWidth
|
|
88
|
+
alias_accessor :pen_style, :penStyle
|
|
89
|
+
alias_accessor :creator_name, :creatorName
|
|
90
|
+
alias_accessor :creator_email, :creatorEmail
|
|
91
|
+
|
|
71
92
|
#
|
|
72
93
|
# Creates new GroupDocs::Document::Annotation.
|
|
73
94
|
#
|
|
@@ -177,7 +198,7 @@ module GroupDocs
|
|
|
177
198
|
#
|
|
178
199
|
# @example
|
|
179
200
|
# document = GroupDocs::Storage::Folder.list!.first.to_document
|
|
180
|
-
# annotation = GroupDocs::Document::Annotation.new(document: document)
|
|
201
|
+
# annotation = GroupDocs::Document::Annotation.new(document: document)
|
|
181
202
|
# annotation.create!
|
|
182
203
|
#
|
|
183
204
|
# @param [Hash] info Annotation info
|
|
@@ -200,6 +221,7 @@ module GroupDocs
|
|
|
200
221
|
end
|
|
201
222
|
end
|
|
202
223
|
|
|
224
|
+
|
|
203
225
|
#
|
|
204
226
|
# Removes annotation.
|
|
205
227
|
#
|
|
@@ -215,6 +237,29 @@ module GroupDocs
|
|
|
215
237
|
end.execute!
|
|
216
238
|
end
|
|
217
239
|
|
|
240
|
+
#
|
|
241
|
+
# added in release 1.6.0
|
|
242
|
+
#
|
|
243
|
+
# @example
|
|
244
|
+
# document = GroupDocs::Storage::Folder.list!.first.to_document
|
|
245
|
+
# annotation = GroupDocs::Document::Annotation.new(document: document)
|
|
246
|
+
# annotation.remove_annotations!
|
|
247
|
+
#
|
|
248
|
+
# Removes all annotations from document.
|
|
249
|
+
#
|
|
250
|
+
# @param [Hash] access Access credentials
|
|
251
|
+
# @option access [String] :client_id
|
|
252
|
+
# @option access [String] :private_key
|
|
253
|
+
#
|
|
254
|
+
def remove_annotations!(access = {})
|
|
255
|
+
json = Api::Request.new do |request|
|
|
256
|
+
request[:access] = access
|
|
257
|
+
request[:method] = :DELETE
|
|
258
|
+
request[:path] = "/ant/{{client_id}}/files/#{document.file.guid}/annotations"
|
|
259
|
+
end.execute!
|
|
260
|
+
json[:delete_annotation_results]
|
|
261
|
+
end
|
|
262
|
+
|
|
218
263
|
#
|
|
219
264
|
# Return an array of replies..
|
|
220
265
|
#
|
|
@@ -58,6 +58,11 @@ module GroupDocs
|
|
|
58
58
|
# @attr [Boolean] isAvatarExist
|
|
59
59
|
attr_accessor :isAvatarExist
|
|
60
60
|
|
|
61
|
+
# added in release 1.6.0
|
|
62
|
+
# @attr [String] userEmail
|
|
63
|
+
attr_accessor :userEmail
|
|
64
|
+
|
|
65
|
+
|
|
61
66
|
# Human-readable accessors
|
|
62
67
|
alias_accessor :annotation_guid, :annotationGuid
|
|
63
68
|
alias_accessor :user_guid, :userGuid
|
|
@@ -66,6 +71,8 @@ module GroupDocs
|
|
|
66
71
|
# added in release 1.5.8
|
|
67
72
|
alias_accessor :parent_reply_guid, :parentReplyGuid
|
|
68
73
|
alias_accessor :is_avatar_exist, :isAvatarExist
|
|
74
|
+
# added in release 1.6.0
|
|
75
|
+
alias_accessor :user_email, :userEmail
|
|
69
76
|
|
|
70
77
|
#
|
|
71
78
|
# Creates new GroupDocs::Document::Annotation.
|
|
@@ -99,14 +99,20 @@ module GroupDocs
|
|
|
99
99
|
attr_accessor :output_format
|
|
100
100
|
# @attr [Boolean] open_on_completion
|
|
101
101
|
attr_accessor :open_on_completion
|
|
102
|
-
# @
|
|
102
|
+
# @attr [Integer] allowed_operations
|
|
103
103
|
attr_accessor :allowed_operations
|
|
104
104
|
|
|
105
|
+
# added in release 1.6.0
|
|
106
|
+
# @attr [Integer] totalCount
|
|
107
|
+
attr_accessor :totalCount
|
|
105
108
|
|
|
106
109
|
|
|
107
110
|
# Human-readable accessors
|
|
108
111
|
alias_accessor :description, :descr
|
|
109
112
|
|
|
113
|
+
# added in release 1.6.0
|
|
114
|
+
alias_accessor :total_count, :totalCount
|
|
115
|
+
|
|
110
116
|
#
|
|
111
117
|
# Converts each page to GroupDocs::Questionnaire::Page object.
|
|
112
118
|
#
|
|
@@ -124,6 +130,8 @@ module GroupDocs
|
|
|
124
130
|
end
|
|
125
131
|
end
|
|
126
132
|
|
|
133
|
+
|
|
134
|
+
|
|
127
135
|
#
|
|
128
136
|
# Converts status to human-readable format.
|
|
129
137
|
#
|
data/lib/groupdocs/signature.rb
CHANGED
|
@@ -296,5 +296,83 @@ module GroupDocs
|
|
|
296
296
|
end.execute!
|
|
297
297
|
end
|
|
298
298
|
|
|
299
|
+
# added in release 1.6.0
|
|
300
|
+
TEMPLATE_TYPES = {
|
|
301
|
+
:EnvelopeSentOwnerTemplate => 1,
|
|
302
|
+
:EnvelopeSentOtherTemplate => 2,
|
|
303
|
+
:EnvelopeCompletedTemplate => 3,
|
|
304
|
+
:EnvelopeSignedTemplate => 4,
|
|
305
|
+
:EnvelopeCancelledTemplate => 5,
|
|
306
|
+
:EnvelopeDeclinedTemplate => 6,
|
|
307
|
+
:EnvelopeFailedTemplate => 7,
|
|
308
|
+
:EnvelopeExpiredTemplate => 8,
|
|
309
|
+
:EnvelopeStepExpiredTemplate => 9,
|
|
310
|
+
:EnvelopeRecipientReminderTemplate => 10,
|
|
311
|
+
:FormSignedTemplate => 11
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
#
|
|
316
|
+
# Added in release 1.6.0
|
|
317
|
+
#
|
|
318
|
+
#
|
|
319
|
+
# Get default email template.
|
|
320
|
+
#
|
|
321
|
+
# @param [String] path Path to save new file
|
|
322
|
+
# @param [String] name Name new file (file extension should be html)
|
|
323
|
+
# @param [Int] template_type Template type
|
|
324
|
+
# @param [Hash] access Access credentials
|
|
325
|
+
# @option access [String] :client_id
|
|
326
|
+
# @option access [String] :private_key
|
|
327
|
+
# @return [Array]
|
|
328
|
+
#
|
|
329
|
+
def self.public_get_default_email_template!(path, name, template_type, access = {})
|
|
330
|
+
response = Api::Request.new do |request|
|
|
331
|
+
request[:access] = access
|
|
332
|
+
request[:method] = :DOWNLOAD
|
|
333
|
+
request[:path] = "/signature/public/email-template/#{template_type}/default"
|
|
334
|
+
end.execute!
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
filepath = "#{path}/#{name}."
|
|
338
|
+
|
|
339
|
+
Object::File.open(filepath, 'wb') do |file|
|
|
340
|
+
file.write(response)
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
filepath
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
#
|
|
347
|
+
# Added in release 1.6.0
|
|
348
|
+
#
|
|
349
|
+
#
|
|
350
|
+
# Get user email template.
|
|
351
|
+
#
|
|
352
|
+
# @param [String] path Path to save new file
|
|
353
|
+
# @param [String] name Name new file (file extension should be html)
|
|
354
|
+
# @param [Int] template_type Template type
|
|
355
|
+
# @param [Hash] access Access credentials
|
|
356
|
+
# @option access [String] :client_id
|
|
357
|
+
# @option access [String] :private_key
|
|
358
|
+
# @return [Array]
|
|
359
|
+
#
|
|
360
|
+
def self.get_email_template!(path, name, template_type, access = {})
|
|
361
|
+
response = Api::Request.new do |request|
|
|
362
|
+
request[:access] = access
|
|
363
|
+
request[:method] = :DOWNLOAD
|
|
364
|
+
request[:path] = "/signature/email-template/#{template_type}"
|
|
365
|
+
end.execute!
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
filepath = "#{path}/#{name}."
|
|
369
|
+
|
|
370
|
+
Object::File.open(filepath, 'wb') do |file|
|
|
371
|
+
file.write(response)
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
filepath
|
|
375
|
+
end
|
|
376
|
+
|
|
299
377
|
end # Signature
|
|
300
378
|
end # GroupDocs
|
|
@@ -681,7 +681,25 @@ module GroupDocs
|
|
|
681
681
|
request[:method] = :GET
|
|
682
682
|
request[:path] = "/signature/public/envelopes/#{id}/fields/recipient/#{recipient.id}/field/#{field.id}"
|
|
683
683
|
end.execute!
|
|
684
|
+
end
|
|
685
|
+
|
|
684
686
|
|
|
687
|
+
#
|
|
688
|
+
# added in release 1.6.0
|
|
689
|
+
#
|
|
690
|
+
#
|
|
691
|
+
# Resend envelope email notification.
|
|
692
|
+
#
|
|
693
|
+
# @param [Hash] access Access credentials
|
|
694
|
+
# @option access [String] :client_id
|
|
695
|
+
# @option access [String] :private_key
|
|
696
|
+
#
|
|
697
|
+
def resend!(access = {})
|
|
698
|
+
Api::Request.new do |request|
|
|
699
|
+
request[:access] = access
|
|
700
|
+
request[:method] = :PUT
|
|
701
|
+
request[:path] = "/signature/{{client_id}}/envelopes/#{id}/resend-notification"
|
|
702
|
+
end.execute!
|
|
685
703
|
end
|
|
686
704
|
|
|
687
705
|
|
|
@@ -105,6 +105,10 @@ module GroupDocs
|
|
|
105
105
|
# @attr [Boolean] notifyOwnerOnSign
|
|
106
106
|
attr_accessor :notifyOwnerOnSign
|
|
107
107
|
|
|
108
|
+
#added in release 1.6.0
|
|
109
|
+
# @attr [Boolean] canParticipantPrintForm
|
|
110
|
+
attr_accessor :canParticipantPrintForm
|
|
111
|
+
|
|
108
112
|
|
|
109
113
|
# Human-readable accessors
|
|
110
114
|
alias_accessor :owner_guid, :ownerGuid
|
|
@@ -119,6 +123,8 @@ module GroupDocs
|
|
|
119
123
|
alias_accessor :water_mark_image, :waterMarkImage
|
|
120
124
|
alias_accessor :notify_owner_on_sign, :notifyOwnerOnSign
|
|
121
125
|
|
|
126
|
+
#added in release 1.6.0
|
|
127
|
+
alias_accessor :can_participant_print_form, :canParticipantPrintForm
|
|
122
128
|
|
|
123
129
|
#
|
|
124
130
|
# Converts status to human-readable format.
|
data/lib/groupdocs/version.rb
CHANGED
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.
|
|
4
|
+
version: 1.6.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-
|
|
12
|
+
date: 2014-05-21 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rest-client
|