groupdocs 1.5.8 → 1.5.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +9 -0
- data/examples/api-samples/public/docs/sample01.html +34 -15
- data/examples/api-samples/public/docs/sample02.html +36 -15
- data/examples/api-samples/public/docs/sample03.html +55 -34
- data/examples/api-samples/public/docs/sample04.html +33 -14
- data/examples/api-samples/public/docs/sample05.html +51 -33
- data/examples/api-samples/public/docs/sample06.html +86 -40
- data/examples/api-samples/public/docs/sample07.html +32 -13
- data/examples/api-samples/public/docs/sample08.html +39 -20
- data/examples/api-samples/public/docs/sample09.html +93 -39
- data/examples/api-samples/public/docs/sample10.html +39 -21
- data/examples/api-samples/public/docs/sample11.html +133 -88
- data/examples/api-samples/public/docs/sample12.html +33 -14
- data/examples/api-samples/public/docs/sample13.html +14 -7
- data/examples/api-samples/public/docs/sample14.html +37 -18
- data/examples/api-samples/public/docs/sample15.html +29 -10
- data/examples/api-samples/public/docs/sample16.html +58 -25
- data/examples/api-samples/public/docs/sample17.html +71 -38
- data/examples/api-samples/public/docs/sample18.html +98 -71
- data/examples/api-samples/public/docs/sample19.html +74 -42
- data/examples/api-samples/public/docs/sample20.html +39 -21
- data/examples/api-samples/public/docs/sample21.html +113 -69
- data/examples/api-samples/public/docs/sample22.html +89 -43
- data/examples/api-samples/public/docs/sample23.html +50 -32
- data/examples/api-samples/public/docs/sample24.html +64 -31
- data/examples/api-samples/public/docs/sample25.html +107 -60
- data/examples/api-samples/public/docs/sample26.html +29 -10
- data/examples/api-samples/public/docs/sample27.html +107 -61
- data/examples/api-samples/public/docs/sample28.html +158 -9
- data/examples/api-samples/public/docs/sample29.html +13 -8
- data/examples/api-samples/public/docs/sample30.html +34 -15
- data/examples/api-samples/public/docs/sample31.html +107 -76
- data/examples/api-samples/public/docs/sample32.html +104 -40
- data/examples/api-samples/public/docs/sample33.html +85 -36
- data/examples/api-samples/public/docs/sample34.html +30 -11
- data/examples/api-samples/public/docs/sample35.html +90 -27
- data/examples/api-samples/public/docs/sample36.html +36 -16
- data/examples/api-samples/public/docs/sample37.html +144 -265
- data/examples/api-samples/public/docs/sample38.html +113 -64
- data/examples/api-samples/public/docs/sample39.html +118 -45
- data/examples/api-samples/public/docs/sample40.html +81 -46
- data/examples/api-samples/public/docs/sample41.html +562 -90
- data/examples/api-samples/public/docs/sample42.html +94 -39
- data/examples/api-samples/public/docs/sample43.html +669 -0
- data/examples/api-samples/samples/sample01.rb +17 -10
- data/examples/api-samples/samples/sample02.rb +21 -12
- data/examples/api-samples/samples/sample03.rb +35 -29
- data/examples/api-samples/samples/sample04.rb +19 -12
- data/examples/api-samples/samples/sample05.rb +24 -17
- data/examples/api-samples/samples/sample06.rb +38 -32
- data/examples/api-samples/samples/sample07.rb +19 -12
- data/examples/api-samples/samples/sample08.rb +22 -15
- data/examples/api-samples/samples/sample09.rb +31 -29
- data/examples/api-samples/samples/sample10.rb +22 -15
- data/examples/api-samples/samples/sample11.rb +78 -81
- data/examples/api-samples/samples/sample12.rb +19 -21
- data/examples/api-samples/samples/sample13.rb +19 -21
- data/examples/api-samples/samples/sample14.rb +18 -12
- data/examples/api-samples/samples/sample15.rb +17 -10
- data/examples/api-samples/samples/sample16.rb +25 -17
- data/examples/api-samples/samples/sample17.rb +31 -23
- data/examples/api-samples/samples/sample18.rb +60 -55
- data/examples/api-samples/samples/sample19.rb +48 -42
- data/examples/api-samples/samples/sample20.rb +20 -13
- data/examples/api-samples/samples/sample21.rb +62 -54
- data/examples/api-samples/samples/sample22.rb +37 -31
- data/examples/api-samples/samples/sample23.rb +24 -17
- data/examples/api-samples/samples/sample24.rb +29 -22
- data/examples/api-samples/samples/sample25.rb +47 -40
- data/examples/api-samples/samples/sample26.rb +16 -9
- data/examples/api-samples/samples/sample27.rb +46 -39
- data/examples/api-samples/samples/sample28.rb +42 -11
- data/examples/api-samples/samples/sample29.rb +13 -8
- data/examples/api-samples/samples/sample30.rb +19 -12
- data/examples/api-samples/samples/sample31.rb +63 -58
- data/examples/api-samples/samples/sample32.rb +45 -42
- data/examples/api-samples/samples/sample33.rb +36 -25
- data/examples/api-samples/samples/sample34.rb +16 -9
- data/examples/api-samples/samples/sample35.rb +66 -53
- data/examples/api-samples/samples/sample36.rb +19 -15
- data/examples/api-samples/samples/sample37.rb +61 -99
- data/examples/api-samples/samples/sample38.rb +51 -43
- data/examples/api-samples/samples/sample39.rb +78 -62
- data/examples/api-samples/samples/sample40.rb +48 -38
- data/examples/api-samples/samples/sample41.rb +189 -67
- data/examples/api-samples/samples/sample42.rb +37 -29
- data/examples/api-samples/samples/sample43.rb +127 -0
- data/examples/api-samples/views/_others_samples.haml +4 -2
- data/examples/api-samples/views/index.haml +4 -2
- data/examples/api-samples/views/sample11.haml +1 -1
- data/examples/api-samples/views/sample28.haml +8 -0
- data/examples/api-samples/views/sample31.haml +1 -6
- data/examples/api-samples/views/sample39.haml +7 -2
- data/examples/api-samples/views/sample41.haml +78 -33
- data/examples/api-samples/views/sample42.haml +0 -1
- data/examples/api-samples/views/sample43.haml +91 -0
- data/lib/groupdocs/api/helpers/access_rights_helper.rb +6 -5
- data/lib/groupdocs/api/helpers/url_helper.rb +2 -1
- data/lib/groupdocs/document.rb +3 -3
- data/lib/groupdocs/version.rb +1 -1
- metadata +5 -2
@@ -59,7 +59,7 @@
|
|
59
59
|
<div class="pilwrap ">
|
60
60
|
<a class="pilcrow" href="#section-3">¶</a>
|
61
61
|
</div>
|
62
|
-
<p>
|
62
|
+
<p>Set variables</p>
|
63
63
|
|
64
64
|
</div>
|
65
65
|
|
@@ -84,13 +84,11 @@
|
|
84
84
|
<div class="pilwrap ">
|
85
85
|
<a class="pilcrow" href="#section-4">¶</a>
|
86
86
|
</div>
|
87
|
-
<p>
|
87
|
+
<p>Check required variables</p>
|
88
88
|
|
89
89
|
</div>
|
90
90
|
|
91
|
-
<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
|
92
|
-
|
93
|
-
<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>
|
91
|
+
<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>
|
94
92
|
|
95
93
|
</li>
|
96
94
|
|
@@ -101,6 +99,27 @@
|
|
101
99
|
<div class="pilwrap ">
|
102
100
|
<a class="pilcrow" href="#section-5">¶</a>
|
103
101
|
</div>
|
102
|
+
<p>Prepare base path</p>
|
103
|
+
|
104
|
+
</div>
|
105
|
+
|
106
|
+
<div class="content"><div class='highlight'><pre> <span class="keyword">if</span> settings.base_path.empty?
|
107
|
+
base_path = <span class="string">'https://api.groupdocs.com'</span>
|
108
|
+
<span class="keyword">elsif</span> settings.base_path.match(<span class="string">'/v2.0'</span>)
|
109
|
+
base_path = settings.base_path.split(<span class="string">'/v2.0'</span>)[<span class="number">0</span>]
|
110
|
+
<span class="keyword">else</span>
|
111
|
+
base_path = settings.base_path
|
112
|
+
<span class="keyword">end</span></pre></div></div>
|
113
|
+
|
114
|
+
</li>
|
115
|
+
|
116
|
+
|
117
|
+
<li id="section-6">
|
118
|
+
<div class="annotation">
|
119
|
+
|
120
|
+
<div class="pilwrap ">
|
121
|
+
<a class="pilcrow" href="#section-6">¶</a>
|
122
|
+
</div>
|
104
123
|
<p>Configure your access to API server</p>
|
105
124
|
|
106
125
|
</div>
|
@@ -112,17 +131,17 @@
|
|
112
131
|
</li>
|
113
132
|
|
114
133
|
|
115
|
-
<li id="section-
|
134
|
+
<li id="section-7">
|
116
135
|
<div class="annotation">
|
117
136
|
|
118
137
|
<div class="pilwrap ">
|
119
|
-
<a class="pilcrow" href="#section-
|
138
|
+
<a class="pilcrow" href="#section-7">¶</a>
|
120
139
|
</div>
|
121
140
|
<p>Optionally specify API server and version</p>
|
122
141
|
|
123
142
|
</div>
|
124
143
|
|
125
|
-
<div class="content"><div class='highlight'><pre> groupdocs.api_server =
|
144
|
+
<div class="content"><div class='highlight'><pre> groupdocs.api_server = base_path <span class="comment"># default is 'https://api.groupdocs.com'</span>
|
126
145
|
<span class="keyword">end</span>
|
127
146
|
|
128
147
|
file = <span class="keyword">nil</span></pre></div></div>
|
@@ -130,13 +149,13 @@
|
|
130
149
|
</li>
|
131
150
|
|
132
151
|
|
133
|
-
<li id="section-
|
152
|
+
<li id="section-8">
|
134
153
|
<div class="annotation">
|
135
154
|
|
136
155
|
<div class="pilwrap ">
|
137
|
-
<a class="pilcrow" href="#section-
|
156
|
+
<a class="pilcrow" href="#section-8">¶</a>
|
138
157
|
</div>
|
139
|
-
<p>
|
158
|
+
<p>Get document by file GUID</p>
|
140
159
|
|
141
160
|
</div>
|
142
161
|
|
@@ -149,13 +168,13 @@
|
|
149
168
|
</li>
|
150
169
|
|
151
170
|
|
152
|
-
<li id="section-
|
171
|
+
<li id="section-9">
|
153
172
|
<div class="annotation">
|
154
173
|
|
155
174
|
<div class="pilwrap ">
|
156
|
-
<a class="pilcrow" href="#section-
|
175
|
+
<a class="pilcrow" href="#section-9">¶</a>
|
157
176
|
</div>
|
158
|
-
<p>
|
177
|
+
<p>Construct path</p>
|
159
178
|
|
160
179
|
</div>
|
161
180
|
|
@@ -164,13 +183,13 @@
|
|
164
183
|
</li>
|
165
184
|
|
166
185
|
|
167
|
-
<li id="section-
|
186
|
+
<li id="section-10">
|
168
187
|
<div class="annotation">
|
169
188
|
|
170
189
|
<div class="pilwrap ">
|
171
|
-
<a class="pilcrow" href="#section-
|
190
|
+
<a class="pilcrow" href="#section-10">¶</a>
|
172
191
|
</div>
|
173
|
-
<p>
|
192
|
+
<p>Open file</p>
|
174
193
|
|
175
194
|
</div>
|
176
195
|
|
@@ -179,13 +198,13 @@
|
|
179
198
|
</li>
|
180
199
|
|
181
200
|
|
182
|
-
<li id="section-
|
201
|
+
<li id="section-11">
|
183
202
|
<div class="annotation">
|
184
203
|
|
185
204
|
<div class="pilwrap ">
|
186
|
-
<a class="pilcrow" href="#section-
|
205
|
+
<a class="pilcrow" href="#section-11">¶</a>
|
187
206
|
</div>
|
188
|
-
<p>
|
207
|
+
<p>Make a request to API using client_id and private_key</p>
|
189
208
|
|
190
209
|
</div>
|
191
210
|
|
@@ -199,14 +218,13 @@
|
|
199
218
|
</li>
|
200
219
|
|
201
220
|
|
202
|
-
<li id="section-
|
221
|
+
<li id="section-12">
|
203
222
|
<div class="annotation">
|
204
223
|
|
205
224
|
<div class="pilwrap ">
|
206
|
-
<a class="pilcrow" href="#section-
|
225
|
+
<a class="pilcrow" href="#section-12">¶</a>
|
207
226
|
</div>
|
208
|
-
<p>
|
209
|
-
copy file using request to API</p>
|
227
|
+
<p>Copy file using request to API</p>
|
210
228
|
|
211
229
|
</div>
|
212
230
|
|
@@ -218,13 +236,13 @@ copy file using request to API</p>
|
|
218
236
|
</li>
|
219
237
|
|
220
238
|
|
221
|
-
<li id="section-
|
239
|
+
<li id="section-13">
|
222
240
|
<div class="annotation">
|
223
241
|
|
224
242
|
<div class="pilwrap ">
|
225
|
-
<a class="pilcrow" href="#section-
|
243
|
+
<a class="pilcrow" href="#section-13">¶</a>
|
226
244
|
</div>
|
227
|
-
<p>
|
245
|
+
<p>Move file using request to API</p>
|
228
246
|
|
229
247
|
</div>
|
230
248
|
|
@@ -236,13 +254,13 @@ copy file using request to API</p>
|
|
236
254
|
</li>
|
237
255
|
|
238
256
|
|
239
|
-
<li id="section-
|
257
|
+
<li id="section-14">
|
240
258
|
<div class="annotation">
|
241
259
|
|
242
260
|
<div class="pilwrap ">
|
243
|
-
<a class="pilcrow" href="#section-
|
261
|
+
<a class="pilcrow" href="#section-14">¶</a>
|
244
262
|
</div>
|
245
|
-
<p>
|
263
|
+
<p>Result message</p>
|
246
264
|
|
247
265
|
</div>
|
248
266
|
|
@@ -257,13 +275,13 @@ copy file using request to API</p>
|
|
257
275
|
</li>
|
258
276
|
|
259
277
|
|
260
|
-
<li id="section-
|
278
|
+
<li id="section-15">
|
261
279
|
<div class="annotation">
|
262
280
|
|
263
281
|
<div class="pilwrap ">
|
264
|
-
<a class="pilcrow" href="#section-
|
282
|
+
<a class="pilcrow" href="#section-15">¶</a>
|
265
283
|
</div>
|
266
|
-
<p>
|
284
|
+
<p>Set variables for template</p>
|
267
285
|
|
268
286
|
</div>
|
269
287
|
|
@@ -59,7 +59,7 @@
|
|
59
59
|
<div class="pilwrap ">
|
60
60
|
<a class="pilcrow" href="#section-3">¶</a>
|
61
61
|
</div>
|
62
|
-
<p>
|
62
|
+
<p>Set variables</p>
|
63
63
|
|
64
64
|
</div>
|
65
65
|
|
@@ -83,9 +83,7 @@
|
|
83
83
|
|
84
84
|
</div>
|
85
85
|
|
86
|
-
<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
|
87
|
-
|
88
|
-
<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>
|
86
|
+
<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>
|
89
87
|
|
90
88
|
</li>
|
91
89
|
|
@@ -96,6 +94,27 @@
|
|
96
94
|
<div class="pilwrap ">
|
97
95
|
<a class="pilcrow" href="#section-5">¶</a>
|
98
96
|
</div>
|
97
|
+
<p>Prepare base path</p>
|
98
|
+
|
99
|
+
</div>
|
100
|
+
|
101
|
+
<div class="content"><div class='highlight'><pre> <span class="keyword">if</span> settings.base_path.empty?
|
102
|
+
base_path = <span class="string">'https://api.groupdocs.com'</span>
|
103
|
+
<span class="keyword">elsif</span> settings.base_path.match(<span class="string">'/v2.0'</span>)
|
104
|
+
base_path = settings.base_path.split(<span class="string">'/v2.0'</span>)[<span class="number">0</span>]
|
105
|
+
<span class="keyword">else</span>
|
106
|
+
base_path = settings.base_path
|
107
|
+
<span class="keyword">end</span></pre></div></div>
|
108
|
+
|
109
|
+
</li>
|
110
|
+
|
111
|
+
|
112
|
+
<li id="section-6">
|
113
|
+
<div class="annotation">
|
114
|
+
|
115
|
+
<div class="pilwrap ">
|
116
|
+
<a class="pilcrow" href="#section-6">¶</a>
|
117
|
+
</div>
|
99
118
|
<p>Configure your access to API server</p>
|
100
119
|
|
101
120
|
</div>
|
@@ -107,27 +126,27 @@
|
|
107
126
|
</li>
|
108
127
|
|
109
128
|
|
110
|
-
<li id="section-
|
129
|
+
<li id="section-7">
|
111
130
|
<div class="annotation">
|
112
131
|
|
113
132
|
<div class="pilwrap ">
|
114
|
-
<a class="pilcrow" href="#section-
|
133
|
+
<a class="pilcrow" href="#section-7">¶</a>
|
115
134
|
</div>
|
116
135
|
<p>Optionally specify API server and version</p>
|
117
136
|
|
118
137
|
</div>
|
119
138
|
|
120
|
-
<div class="content"><div class='highlight'><pre> groupdocs.api_server =
|
139
|
+
<div class="content"><div class='highlight'><pre> groupdocs.api_server = base_path <span class="comment"># default is 'https://api.groupdocs.com'</span>
|
121
140
|
<span class="keyword">end</span></pre></div></div>
|
122
141
|
|
123
142
|
</li>
|
124
143
|
|
125
144
|
|
126
|
-
<li id="section-
|
145
|
+
<li id="section-8">
|
127
146
|
<div class="annotation">
|
128
147
|
|
129
148
|
<div class="pilwrap ">
|
130
|
-
<a class="pilcrow" href="#section-
|
149
|
+
<a class="pilcrow" href="#section-8">¶</a>
|
131
150
|
</div>
|
132
151
|
<p>Construct file path and open file</p>
|
133
152
|
|
@@ -139,11 +158,11 @@
|
|
139
158
|
</li>
|
140
159
|
|
141
160
|
|
142
|
-
<li id="section-
|
161
|
+
<li id="section-9">
|
143
162
|
<div class="annotation">
|
144
163
|
|
145
164
|
<div class="pilwrap ">
|
146
|
-
<a class="pilcrow" href="#section-
|
165
|
+
<a class="pilcrow" href="#section-9">¶</a>
|
147
166
|
</div>
|
148
167
|
<p>Create new file</p>
|
149
168
|
|
@@ -155,11 +174,11 @@
|
|
155
174
|
</li>
|
156
175
|
|
157
176
|
|
158
|
-
<li id="section-
|
177
|
+
<li id="section-10">
|
159
178
|
<div class="annotation">
|
160
179
|
|
161
180
|
<div class="pilwrap ">
|
162
|
-
<a class="pilcrow" href="#section-
|
181
|
+
<a class="pilcrow" href="#section-10">¶</a>
|
163
182
|
</div>
|
164
183
|
<p>Construct signature path and open file</p>
|
165
184
|
|
@@ -171,11 +190,11 @@
|
|
171
190
|
</li>
|
172
191
|
|
173
192
|
|
174
|
-
<li id="section-
|
193
|
+
<li id="section-11">
|
175
194
|
<div class="annotation">
|
176
195
|
|
177
196
|
<div class="pilwrap ">
|
178
|
-
<a class="pilcrow" href="#section-
|
197
|
+
<a class="pilcrow" href="#section-11">¶</a>
|
179
198
|
</div>
|
180
199
|
<p>Add signature to file using API</p>
|
181
200
|
|
@@ -187,11 +206,11 @@
|
|
187
206
|
</li>
|
188
207
|
|
189
208
|
|
190
|
-
<li id="section-
|
209
|
+
<li id="section-12">
|
191
210
|
<div class="annotation">
|
192
211
|
|
193
212
|
<div class="pilwrap ">
|
194
|
-
<a class="pilcrow" href="#section-
|
213
|
+
<a class="pilcrow" href="#section-12">¶</a>
|
195
214
|
</div>
|
196
215
|
<p>Make a request to API using client_id and private_key</p>
|
197
216
|
|
@@ -203,11 +222,11 @@
|
|
203
222
|
</li>
|
204
223
|
|
205
224
|
|
206
|
-
<li id="section-
|
225
|
+
<li id="section-13">
|
207
226
|
<div class="annotation">
|
208
227
|
|
209
228
|
<div class="pilwrap ">
|
210
|
-
<a class="pilcrow" href="#section-
|
229
|
+
<a class="pilcrow" href="#section-13">¶</a>
|
211
230
|
</div>
|
212
231
|
<p>Get the document guid</p>
|
213
232
|
|
@@ -218,57 +237,84 @@
|
|
218
237
|
</li>
|
219
238
|
|
220
239
|
|
221
|
-
<li id="section-
|
240
|
+
<li id="section-14">
|
222
241
|
<div class="annotation">
|
223
242
|
|
224
243
|
<div class="pilwrap ">
|
225
|
-
<a class="pilcrow" href="#section-
|
244
|
+
<a class="pilcrow" href="#section-14">¶</a>
|
226
245
|
</div>
|
227
|
-
<p>
|
246
|
+
<p>Prepare to sign url</p>
|
228
247
|
|
229
248
|
</div>
|
230
249
|
|
231
|
-
<div class="content"><div class='highlight'><pre> <span class="
|
250
|
+
<div class="content"><div class='highlight'><pre> iframe = <span class="string">"/document-viewer/embed/<span class="subst">#{document.guid}</span>"</span></pre></div></div>
|
251
|
+
|
252
|
+
</li>
|
253
|
+
|
254
|
+
|
255
|
+
<li id="section-15">
|
256
|
+
<div class="annotation">
|
257
|
+
|
258
|
+
<div class="pilwrap ">
|
259
|
+
<a class="pilcrow" href="#section-15">¶</a>
|
260
|
+
</div>
|
261
|
+
<p>Construct result string</p>
|
232
262
|
|
233
|
-
|
234
|
-
|
263
|
+
</div>
|
264
|
+
|
265
|
+
<div class="content"><div class='highlight'><pre> url = <span class="constant">GroupDocs::Api::Request</span>.new(<span class="symbol">:path</span> => iframe).prepare_and_sign_url</pre></div></div>
|
266
|
+
|
267
|
+
</li>
|
268
|
+
|
269
|
+
|
270
|
+
<li id="section-16">
|
271
|
+
<div class="annotation">
|
272
|
+
|
273
|
+
<div class="pilwrap ">
|
274
|
+
<a class="pilcrow" href="#section-16">¶</a>
|
275
|
+
</div>
|
276
|
+
<p>Generate iframe URL</p>
|
235
277
|
|
236
|
-
|
237
|
-
|
238
|
-
<span class="keyword">
|
239
|
-
|
278
|
+
</div>
|
279
|
+
|
280
|
+
<div class="content"><div class='highlight'><pre> <span class="keyword">case</span> base_path
|
281
|
+
<span class="keyword">when</span> <span class="string">'https://stage-api-groupdocs.dynabic.com'</span>
|
282
|
+
iframe = <span class="string">"https://stage-api-groupdocs.dynabic.com<span class="subst">#{url}</span>"</span>
|
283
|
+
<span class="keyword">when</span> <span class="string">'https://dev-api-groupdocs.dynabic.com'</span>
|
284
|
+
iframe = <span class="string">"https://dev-apps.groupdocs.com<span class="subst">#{url}</span>"</span>
|
285
|
+
<span class="keyword">else</span>
|
286
|
+
iframe = <span class="string">"https://apps.groupdocs.com<span class="subst">#{url}</span>"</span>
|
240
287
|
<span class="keyword">end</span></pre></div></div>
|
241
288
|
|
242
289
|
</li>
|
243
290
|
|
244
291
|
|
245
|
-
<li id="section-
|
292
|
+
<li id="section-17">
|
246
293
|
<div class="annotation">
|
247
294
|
|
248
295
|
<div class="pilwrap ">
|
249
|
-
<a class="pilcrow" href="#section-
|
296
|
+
<a class="pilcrow" href="#section-17">¶</a>
|
250
297
|
</div>
|
251
|
-
<p>
|
298
|
+
<p>Generate result</p>
|
252
299
|
|
253
300
|
</div>
|
254
301
|
|
255
|
-
<div class="content"><div class='highlight'><pre>
|
302
|
+
<div class="content"><div class='highlight'><pre> <span class="keyword">if</span> signed_documents</pre></div></div>
|
256
303
|
|
257
304
|
</li>
|
258
305
|
|
259
306
|
|
260
|
-
<li id="section-
|
307
|
+
<li id="section-18">
|
261
308
|
<div class="annotation">
|
262
309
|
|
263
310
|
<div class="pilwrap ">
|
264
|
-
<a class="pilcrow" href="#section-
|
311
|
+
<a class="pilcrow" href="#section-18">¶</a>
|
265
312
|
</div>
|
266
|
-
<p>
|
313
|
+
<p>Make iframe</p>
|
267
314
|
|
268
315
|
</div>
|
269
316
|
|
270
|
-
<div class="content"><div class='highlight'><pre>
|
271
|
-
iframe = <span class="string">"<iframe src='<span class="subst">#{iframe}</span>' frameborder='0' width='720' height='600'></iframe>"</span>
|
317
|
+
<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>
|
272
318
|
<span class="keyword">end</span>
|
273
319
|
|
274
320
|
<span class="keyword">rescue</span> <span class="constant">Exception</span> => e
|
@@ -278,11 +324,11 @@
|
|
278
324
|
</li>
|
279
325
|
|
280
326
|
|
281
|
-
<li id="section-
|
327
|
+
<li id="section-19">
|
282
328
|
<div class="annotation">
|
283
329
|
|
284
330
|
<div class="pilwrap ">
|
285
|
-
<a class="pilcrow" href="#section-
|
331
|
+
<a class="pilcrow" href="#section-19">¶</a>
|
286
332
|
</div>
|
287
333
|
<p>Set variables for template</p>
|
288
334
|
|