groupdocs 1.5.7 → 1.5.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +51 -0
- data/examples/api-samples/Gemfile +1 -1
- data/examples/api-samples/Gemfile.lock +43 -0
- data/examples/api-samples/public/docs/{sample2.html → sample01.html} +39 -19
- data/examples/api-samples/public/docs/{sample3.html → sample02.html} +28 -22
- data/examples/api-samples/public/docs/sample03.html +285 -0
- data/examples/api-samples/public/docs/{sample4.html → sample04.html} +30 -36
- data/examples/api-samples/public/docs/{sample5.html → sample05.html} +68 -31
- data/examples/api-samples/public/docs/sample06.html +299 -0
- data/examples/api-samples/public/docs/{sample7.html → sample07.html} +53 -18
- data/examples/api-samples/public/docs/{sample8.html → sample08.html} +64 -41
- data/examples/api-samples/public/docs/sample09.html +260 -0
- data/examples/api-samples/public/docs/sample10.html +67 -28
- data/examples/api-samples/public/docs/sample11.html +171 -55
- data/examples/api-samples/public/docs/sample12.html +53 -17
- data/examples/api-samples/public/docs/sample13.html +52 -16
- data/examples/api-samples/public/docs/sample14.html +51 -8
- data/examples/api-samples/public/docs/sample15.html +46 -10
- data/examples/api-samples/public/docs/sample16.html +81 -7
- data/examples/api-samples/public/docs/sample17.html +103 -15
- data/examples/api-samples/public/docs/sample18.html +117 -41
- data/examples/api-samples/public/docs/sample19.html +410 -36
- data/examples/api-samples/public/docs/sample20.html +46 -10
- data/examples/api-samples/public/docs/sample21.html +504 -45
- data/examples/api-samples/public/docs/sample22.html +166 -28
- data/examples/api-samples/public/docs/sample23.html +61 -25
- data/examples/api-samples/public/docs/sample24.html +100 -12
- data/examples/api-samples/public/docs/sample25.html +123 -49
- data/examples/api-samples/public/docs/sample26.html +41 -8
- data/examples/api-samples/public/docs/sample27.html +125 -50
- data/examples/api-samples/public/docs/sample28.html +27 -9
- data/examples/api-samples/public/docs/sample29.html +10 -10
- data/examples/api-samples/public/docs/sample30.html +70 -14
- data/examples/api-samples/public/docs/sample31.html +108 -67
- data/examples/api-samples/public/docs/sample32.html +71 -99
- data/examples/api-samples/public/docs/sample33.html +107 -32
- data/examples/api-samples/public/docs/{sample1.html → sample34.html} +58 -18
- data/examples/api-samples/public/docs/sample35.html +666 -0
- data/examples/api-samples/public/docs/{sample6.html → sample36.html} +56 -37
- data/examples/api-samples/public/docs/sample37.html +815 -0
- data/examples/api-samples/public/docs/sample38.html +508 -0
- data/examples/api-samples/public/docs/sample39.html +921 -0
- data/examples/api-samples/public/docs/sample40.html +510 -0
- data/examples/api-samples/public/docs/sample41.html +452 -0
- data/examples/api-samples/public/docs/sample42.html +311 -0
- data/examples/api-samples/public/templates/test_all_fields2.pdf +0 -0
- data/examples/api-samples/samples/sample01.rb +37 -0
- data/examples/api-samples/samples/sample02.rb +41 -0
- data/examples/api-samples/samples/sample03.rb +73 -0
- data/examples/api-samples/samples/sample04.rb +47 -0
- data/examples/api-samples/samples/{sample5.rb → sample05.rb} +26 -14
- data/examples/api-samples/samples/sample06.rb +80 -0
- data/examples/api-samples/samples/sample07.rb +52 -0
- data/examples/api-samples/samples/sample08.rb +69 -0
- data/examples/api-samples/samples/sample09.rb +83 -0
- data/examples/api-samples/samples/sample10.rb +29 -15
- data/examples/api-samples/samples/sample11.rb +89 -37
- data/examples/api-samples/samples/sample12.rb +22 -11
- data/examples/api-samples/samples/sample13.rb +22 -10
- data/examples/api-samples/samples/sample14.rb +23 -5
- data/examples/api-samples/samples/sample15.rb +18 -7
- data/examples/api-samples/samples/sample16.rb +28 -4
- data/examples/api-samples/samples/sample17.rb +31 -5
- data/examples/api-samples/samples/sample18.rb +36 -8
- data/examples/api-samples/samples/sample19.rb +138 -18
- data/examples/api-samples/samples/sample20.rb +14 -3
- data/examples/api-samples/samples/sample21.rb +162 -23
- data/examples/api-samples/samples/sample22.rb +73 -22
- data/examples/api-samples/samples/sample23.rb +17 -6
- data/examples/api-samples/samples/sample24.rb +34 -7
- data/examples/api-samples/samples/sample25.rb +37 -12
- data/examples/api-samples/samples/sample26.rb +12 -5
- data/examples/api-samples/samples/sample27.rb +38 -12
- data/examples/api-samples/samples/sample28.rb +25 -6
- data/examples/api-samples/samples/sample29.rb +12 -12
- data/examples/api-samples/samples/sample30.rb +27 -15
- data/examples/api-samples/samples/sample31.rb +44 -33
- data/examples/api-samples/samples/sample32.rb +43 -41
- data/examples/api-samples/samples/sample33.rb +42 -14
- data/examples/api-samples/samples/sample34.rb +40 -0
- data/examples/api-samples/samples/sample35.rb +224 -0
- data/examples/api-samples/samples/sample36.rb +58 -0
- data/examples/api-samples/samples/sample37.rb +229 -0
- data/examples/api-samples/samples/sample38.rb +128 -0
- data/examples/api-samples/samples/sample39.rb +252 -0
- data/examples/api-samples/samples/sample40.rb +164 -0
- data/examples/api-samples/samples/sample41.rb +118 -0
- data/examples/api-samples/samples/sample42.rb +97 -0
- data/examples/api-samples/views/_others_samples.haml +25 -11
- data/examples/api-samples/views/index.haml +23 -11
- data/examples/api-samples/views/popup.haml +32 -0
- data/examples/api-samples/views/{sample1.haml → sample01.haml} +12 -7
- data/examples/api-samples/views/{sample2.haml → sample02.haml} +20 -15
- data/examples/api-samples/views/sample03.haml +83 -0
- data/examples/api-samples/views/sample04.haml +49 -0
- data/examples/api-samples/views/{sample5.haml → sample05.haml} +19 -14
- data/examples/api-samples/views/sample06.haml +53 -0
- data/examples/api-samples/views/sample07.haml +47 -0
- data/examples/api-samples/views/{sample8.haml → sample08.haml} +17 -12
- data/examples/api-samples/views/{sample9.haml → sample09.haml} +19 -4
- data/examples/api-samples/views/sample10.haml +18 -13
- data/examples/api-samples/views/sample11.haml +48 -19
- data/examples/api-samples/views/sample12.haml +26 -21
- data/examples/api-samples/views/sample13.haml +18 -12
- data/examples/api-samples/views/sample14.haml +21 -15
- data/examples/api-samples/views/sample15.haml +16 -9
- data/examples/api-samples/views/sample16.haml +18 -5
- data/examples/api-samples/views/sample17.haml +14 -9
- data/examples/api-samples/views/sample18.haml +13 -7
- data/examples/api-samples/views/sample19.haml +37 -8
- data/examples/api-samples/views/sample20.haml +13 -8
- data/examples/api-samples/views/sample21.haml +71 -13
- data/examples/api-samples/views/sample22.haml +53 -16
- data/examples/api-samples/views/sample23.haml +9 -4
- data/examples/api-samples/views/sample24.haml +9 -4
- data/examples/api-samples/views/sample25.haml +18 -13
- data/examples/api-samples/views/sample26.haml +8 -3
- data/examples/api-samples/views/sample27.haml +20 -14
- data/examples/api-samples/views/sample28.haml +16 -10
- data/examples/api-samples/views/sample29.haml +4 -4
- data/examples/api-samples/views/sample30.haml +16 -10
- data/examples/api-samples/views/sample31.haml +39 -32
- data/examples/api-samples/views/sample32.haml +25 -36
- data/examples/api-samples/views/sample33.haml +14 -17
- data/examples/api-samples/views/sample34.haml +48 -0
- data/examples/api-samples/views/sample35.haml +95 -0
- data/examples/api-samples/views/sample36.haml +64 -0
- data/examples/api-samples/views/sample37.haml +124 -0
- data/examples/api-samples/views/sample38.haml +115 -0
- data/examples/api-samples/views/sample39.haml +236 -0
- data/examples/api-samples/views/sample40.haml +95 -0
- data/examples/api-samples/views/{sample4.haml → sample41.haml} +90 -72
- data/examples/api-samples/views/sample42.haml +59 -0
- data/lib/groupdocs/api/helpers/rest_helper.rb +13 -1
- data/lib/groupdocs/datasource.rb +2 -1
- data/lib/groupdocs/document.rb +101 -13
- data/lib/groupdocs/document/annotation.rb +28 -13
- data/lib/groupdocs/document/annotation/marker.rb +18 -0
- data/lib/groupdocs/document/annotation/reply.rb +9 -2
- data/lib/groupdocs/document/field.rb +5 -1
- data/lib/groupdocs/job.rb +12 -2
- data/lib/groupdocs/questionnaire.rb +174 -4
- data/lib/groupdocs/questionnaire/collector.rb +21 -0
- data/lib/groupdocs/questionnaire/question.rb +19 -0
- data/lib/groupdocs/questionnaire/question/answer.rb +5 -0
- data/lib/groupdocs/questionnaire/question/conditions.rb +20 -0
- data/lib/groupdocs/signature.rb +36 -308
- data/lib/groupdocs/signature/envelope.rb +146 -4
- data/lib/groupdocs/signature/field.rb +20 -1
- data/lib/groupdocs/signature/field/location.rb +18 -7
- data/lib/groupdocs/signature/form.rb +199 -10
- data/lib/groupdocs/signature/shared/document_methods.rb +38 -0
- data/lib/groupdocs/signature/shared/entity_methods.rb +0 -1
- data/lib/groupdocs/signature/shared/field_methods.rb +13 -38
- data/lib/groupdocs/signature/shared/recipient_methods.rb +8 -0
- data/lib/groupdocs/signature/template.rb +3 -1
- data/lib/groupdocs/storage.rb +4 -1
- data/lib/groupdocs/storage/file.rb +18 -1
- data/lib/groupdocs/subscription.rb +8 -3
- data/lib/groupdocs/user.rb +8 -0
- data/lib/groupdocs/version.rb +1 -1
- data/spec/groupdocs/document/annotation_spec.rb +1 -14
- data/spec/groupdocs/subscription_spec.rb +2 -2
- metadata +86 -32
- checksums.yaml +0 -15
- data/examples/api-samples/public/docs/sample9.html +0 -200
- data/examples/api-samples/samples/sample1.rb +0 -25
- data/examples/api-samples/samples/sample2.rb +0 -29
- data/examples/api-samples/samples/sample3.rb +0 -33
- data/examples/api-samples/samples/sample4.rb +0 -51
- data/examples/api-samples/samples/sample6.rb +0 -49
- data/examples/api-samples/samples/sample7.rb +0 -42
- data/examples/api-samples/samples/sample8.rb +0 -61
- data/examples/api-samples/samples/sample9.rb +0 -48
- data/examples/api-samples/views/sample3.haml +0 -44
- data/examples/api-samples/views/sample6.haml +0 -49
- data/examples/api-samples/views/sample7.haml +0 -42
@@ -0,0 +1,32 @@
|
|
1
|
+
%head
|
2
|
+
%script {:src=>'http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'}
|
3
|
+
%script {:src=>'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js'}
|
4
|
+
:javascript
|
5
|
+
// Read a page's GET URL variables and return them as an associative array.
|
6
|
+
$(document).ready(function() {
|
7
|
+
var vars = [], hash;
|
8
|
+
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
|
9
|
+
for (var i = 0; i < hashes.length; i++)
|
10
|
+
{
|
11
|
+
hash = hashes[i].split('=');
|
12
|
+
vars.push(hash[0]);
|
13
|
+
vars[hash[0]] = hash[1];
|
14
|
+
}
|
15
|
+
if (vars['guid']) {
|
16
|
+
$("#result").append('<span class="description"><i>Document was signed successfully</i></span>')
|
17
|
+
$("#resultIframe").attr('src', "https://apps.groupdocs.com/document-viewer/embed/" + vars['guid']);
|
18
|
+
} else {
|
19
|
+
$("#result").append('<span style="color:red"><i>Document was not signed successfully</i></span>')
|
20
|
+
}
|
21
|
+
})
|
22
|
+
|
23
|
+
%h3{:style => 'text-align:center;'}
|
24
|
+
%a{:href => ''} GroupDocs Redirect Sample
|
25
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
26
|
+
%p
|
27
|
+
Results:
|
28
|
+
%br/
|
29
|
+
#{(defined? message) ? message : ''}
|
30
|
+
%iframe{:id=>'resultIframe', :src=>'', :width=> '800', :height => '1000'}
|
31
|
+
|
32
|
+
= partial :_others_samples
|
@@ -1,13 +1,13 @@
|
|
1
1
|
%h3{:style => 'text-align:center;'}
|
2
2
|
%a{:href => '/'}GroupDocs Ruby SDK Samples
|
3
|
-
\-
|
3
|
+
\- Sample01
|
4
4
|
|
5
5
|
.samplecontent{:style => 'padding:10px;'}
|
6
6
|
%i This sample will show how to use Signer object to be authorized at GroupDocs and how to get GroupDocs user infromation using Ruby SDK
|
7
7
|
%br/
|
8
8
|
%br/
|
9
9
|
%span.documentation
|
10
|
-
%a{:href => '/docs/
|
10
|
+
%a{:href => '/docs/sample01.html'} Builtin documentation for this sample
|
11
11
|
%br/
|
12
12
|
%br/
|
13
13
|
%p
|
@@ -40,14 +40,19 @@
|
|
40
40
|
%br/
|
41
41
|
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
42
42
|
%p Enter data for request and press "Make request" button
|
43
|
-
%form{:action => '/
|
44
|
-
%label{:for => '
|
43
|
+
%form{:action => '/sample01', :enctype => 'multipart/form-data', :method => 'post'}
|
44
|
+
%label{:for => 'clientId'} GroupDocs Client ID
|
45
45
|
%br/
|
46
|
-
%input{:type=>'text', :name=>'
|
46
|
+
%input{:type=>'text', :name=>'clientId'}
|
47
47
|
%br/
|
48
|
-
%label{:for => '
|
48
|
+
%label{:for => 'privateKey'} GroupDocs Private Key
|
49
49
|
%br/
|
50
|
-
%input{:type=>'text', :name=>'
|
50
|
+
%input{:type=>'text', :name=>'privateKey'}
|
51
|
+
%br/
|
52
|
+
%label{:for => 'basePath'} Base Path
|
53
|
+
%span{:class => 'optional'} (Optional)
|
54
|
+
%br/
|
55
|
+
%input{:type=>'text', :name=>'basePath'}
|
51
56
|
%br/
|
52
57
|
%input{:type => 'submit', :value => 'Make Request'}
|
53
58
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
%h3{:style => 'text-align:center;'}
|
2
2
|
%a{:href => '/'} GroupDocs Ruby SDK Samples
|
3
|
-
\-
|
3
|
+
\- Sample02
|
4
4
|
.samplecontent{:style => 'padding:10px;'}
|
5
5
|
%i This sample will show how to use StorageApi to list all user files from GroupDocs account using Ruby SDK
|
6
6
|
%br/
|
7
7
|
%br/
|
8
8
|
%span.documentation
|
9
|
-
%a{:href => '/docs/
|
9
|
+
%a{:href => '/docs/sample02.html'} Builtin documentation for this sample
|
10
10
|
%br/
|
11
11
|
%br/
|
12
12
|
%p
|
@@ -19,24 +19,29 @@
|
|
19
19
|
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
20
20
|
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
21
21
|
%p Enter data for request and press "Make request" button
|
22
|
-
%form{:action => '/
|
23
|
-
%label{:for => '
|
22
|
+
%form{:action => '/sample02', :enctype => 'multipart/form-data', :method => 'post'}
|
23
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
24
24
|
%br/
|
25
|
-
%input{:type=>'text', :name=>'
|
25
|
+
%input{:type=>'text', :name=>'clientId'}
|
26
26
|
%br/
|
27
27
|
%label{:for => 'private_key'} GroupDocs PrivateKey
|
28
28
|
%br/
|
29
|
-
%input{:type=>'text', :name=>'
|
29
|
+
%input{:type=>'text', :name=>'privateKey'}
|
30
|
+
%br/
|
31
|
+
%label{:for => 'basePath'} Base Path
|
32
|
+
%span{:class => 'optional'} (Optional)
|
33
|
+
%br/
|
34
|
+
%input{:type=>'text', :name=>'basePath'}
|
30
35
|
%br/
|
31
36
|
%input{:type => 'submit', :value => 'Make Request'}/
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
37
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
38
|
+
%p Results:
|
39
|
+
%table{:style => 'border:1px double black;'}
|
40
|
+
%tr
|
41
|
+
%th Field
|
42
|
+
%th Value
|
43
|
+
%tr
|
44
|
+
%td Files list
|
45
|
+
%td #{(defined? filelist) ? filelist : ''}
|
41
46
|
|
42
47
|
= partial :_others_samples
|
@@ -0,0 +1,83 @@
|
|
1
|
+
%h3{:style => 'text-align:center;'}
|
2
|
+
%a{:href => '/'} GroupDocs Ruby SDK Samples
|
3
|
+
\- Sample03
|
4
|
+
.samplecontent{:style => 'padding:10px;'}
|
5
|
+
%i This sample will show how to use StorageApi to upload test file to GroupDocs account using Ruby SDK
|
6
|
+
%br/
|
7
|
+
%br/
|
8
|
+
%span.documentation
|
9
|
+
%a{:href => '/docs/sample03.html'} Builtin documentation for this sample
|
10
|
+
%br/
|
11
|
+
%br/
|
12
|
+
%p
|
13
|
+
You entered:
|
14
|
+
%p
|
15
|
+
UserId = #{(defined? user_id) ? user_id : ''}
|
16
|
+
%p
|
17
|
+
PrivateKey = #{(defined? private_key) ? private_key : ''}
|
18
|
+
%p
|
19
|
+
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
20
|
+
%br/
|
21
|
+
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
22
|
+
%p Enter data for request and press "Make request" button
|
23
|
+
%form{:action => '/sample03', :enctype => 'multipart/form-data', :method => 'post'}
|
24
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
25
|
+
%br/
|
26
|
+
%input{:type=>'text', :name=>'clientId'}
|
27
|
+
%br/
|
28
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
29
|
+
%br/
|
30
|
+
%input{:type=>'text', :name=>'privateKey'}
|
31
|
+
%br/
|
32
|
+
|
33
|
+
%div.guid_radio
|
34
|
+
%input{:type=>'radio', :name=>'source', :value=>'file', :checked=>'checked'}Upload local file
|
35
|
+
%br/
|
36
|
+
%input{:type=>'radio', :name=>'source', :value=>'url'} Upload file from URL
|
37
|
+
%br/
|
38
|
+
%br/
|
39
|
+
|
40
|
+
%div.guid_field
|
41
|
+
%label{:for=>'file'} Upload local file
|
42
|
+
%br/
|
43
|
+
%input{:type=>'file', :name=>'file'}
|
44
|
+
%br/
|
45
|
+
%div.guid_field{:style=>'display:none;'}
|
46
|
+
%label{:for=>'url', :id=>'url'} Upload file from URL
|
47
|
+
%br/
|
48
|
+
%input{:type=>'text',:size=>'75', :name=>'url'}
|
49
|
+
%br/
|
50
|
+
%label{:for => 'folderPath'} Folder Path
|
51
|
+
%span{:class => 'optional'} (Optional)
|
52
|
+
%br/
|
53
|
+
%input{:type=>'text', :name=>'folderPath'}
|
54
|
+
%br/
|
55
|
+
%label{:for => 'callback'} Callback Url
|
56
|
+
%span{:class => 'optional'} (Optional)
|
57
|
+
%br/
|
58
|
+
%input{:type=>'text', :name=>'callback'}
|
59
|
+
%br/
|
60
|
+
%label{:for => 'base_path'} Base Path
|
61
|
+
%span{:class => 'optional'} (Optional)
|
62
|
+
%br/
|
63
|
+
%input{:type=>'text', :name=>'basePath'}
|
64
|
+
%br/
|
65
|
+
|
66
|
+
|
67
|
+
%input{:type => 'submit', :value => 'Upload'}/
|
68
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
69
|
+
%p
|
70
|
+
Results:
|
71
|
+
#{(defined? massage) ? massage : ''}
|
72
|
+
#{(defined? iframe) ? iframe : ''}
|
73
|
+
|
74
|
+
= partial :_others_samples
|
75
|
+
:javascript
|
76
|
+
$(function($){
|
77
|
+
|
78
|
+
$('.guid_radio input').change(function(){
|
79
|
+
var elementIndex = $(this).parent().children('input').index($(this));
|
80
|
+
$('.guid_field').hide();
|
81
|
+
$('.guid_field').eq(elementIndex).show();
|
82
|
+
});
|
83
|
+
});
|
@@ -0,0 +1,49 @@
|
|
1
|
+
%h3{:style => 'text-align:center;'}
|
2
|
+
%a{:href => '/'} GroupDocs Ruby SDK Samples
|
3
|
+
\- Sample04
|
4
|
+
.samplecontent{:style => 'padding:10px;'}
|
5
|
+
%i This sample will show how to download particular file from GroupDocs account using Ruby SDK
|
6
|
+
%br/
|
7
|
+
%br/
|
8
|
+
%span.documentation
|
9
|
+
%a{:href => '/docs/sample04.html'} Builtin documentation for this sample
|
10
|
+
%br/
|
11
|
+
%br/
|
12
|
+
%p
|
13
|
+
You entered:
|
14
|
+
%p
|
15
|
+
UserId = #{(defined? clientId) ? clientId : ''}
|
16
|
+
%p
|
17
|
+
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
18
|
+
%p
|
19
|
+
FileId = #{(defined? fileId) ? fileId : ''}
|
20
|
+
%p
|
21
|
+
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
22
|
+
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
23
|
+
%p Enter data for request and press "Download" button
|
24
|
+
%form{:action => '/sample04', :enctype => 'multipart/form-data', :method => 'post'}
|
25
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
26
|
+
%br/
|
27
|
+
%input{:type=>'text', :name=>'clientId'}
|
28
|
+
%br/
|
29
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
30
|
+
%br/
|
31
|
+
%input{:type=>'text', :name=>'privateKey'}
|
32
|
+
%br/
|
33
|
+
%label{:for=>'fileId', :id=>'guid'} File ID (GUID)
|
34
|
+
%br/
|
35
|
+
%input{:type=>'text', :name=>'fileId'}
|
36
|
+
%br/
|
37
|
+
%label{:for => 'basePath'} Base Path
|
38
|
+
%span{:class => 'optional'} (Optional)
|
39
|
+
%br/
|
40
|
+
%input{:type=>'text', :name=>'basePath'}
|
41
|
+
%br/
|
42
|
+
|
43
|
+
%input{:type => 'submit', :value => 'Download'}/
|
44
|
+
#{(defined? massage) ? massage : ''}
|
45
|
+
%br/
|
46
|
+
|
47
|
+
= partial :_others_samples
|
48
|
+
|
49
|
+
|
@@ -1,32 +1,32 @@
|
|
1
1
|
%h3{:style => 'text-align:center;'}
|
2
2
|
%a{:href => '/'} GroupDocs Ruby SDK Samples
|
3
|
-
\-
|
3
|
+
\- Sample05
|
4
4
|
.samplecontent{:style => 'padding:10px;'}
|
5
5
|
%i This sample will show how to Copy/Move particular file in your GroupDocs account using Ruby SDK
|
6
6
|
%br/
|
7
7
|
%br/
|
8
8
|
%span.documentation
|
9
|
-
%a{:href => '/docs/
|
9
|
+
%a{:href => '/docs/sample05.html'} Builtin documentation for this sample
|
10
10
|
%br/
|
11
11
|
%br/
|
12
12
|
%p
|
13
13
|
You entered:
|
14
14
|
%p
|
15
|
-
UserId = #{(defined?
|
15
|
+
UserId = #{(defined? clientId) ? clientId : ''}
|
16
16
|
%p
|
17
17
|
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
18
18
|
%p
|
19
19
|
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
20
20
|
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
21
21
|
%p Enter data for request and press "Copy" button
|
22
|
-
%form{:action => '/
|
23
|
-
%label{:for => '
|
22
|
+
%form{:action => '/sample05', :enctype => 'multipart/form-data', :method => 'post'}
|
23
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
24
24
|
%br/
|
25
|
-
%input{:type=>'text', :name=>'
|
25
|
+
%input{:type=>'text', :name=>'clientId'}
|
26
26
|
%br/
|
27
|
-
%label{:for => '
|
27
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
28
28
|
%br/
|
29
|
-
%input{:type=>'text', :name=>'
|
29
|
+
%input{:type=>'text', :name=>'privateKey'}
|
30
30
|
%br/
|
31
31
|
%div.guid_radio
|
32
32
|
%input{:type=>'radio', :name=>'source', :value=>'guid', :checked=>'checked'} File ID (GUID)
|
@@ -39,7 +39,7 @@
|
|
39
39
|
%div.guid_field
|
40
40
|
%label{:for=>'fileId', :id=>'guid'} File ID (GUID)
|
41
41
|
%br/
|
42
|
-
%input{:type=>'text', :name=>'
|
42
|
+
%input{:type=>'text', :name=>'srcPath', }
|
43
43
|
|
44
44
|
%div.guid_field{:style=>'display:none;'}
|
45
45
|
%label{:for=>'file'} Upload local file
|
@@ -52,15 +52,20 @@
|
|
52
52
|
%input{:type=>'text', :name=>'url'}
|
53
53
|
|
54
54
|
%br/
|
55
|
-
%label{:for => '
|
55
|
+
%label{:for => 'destPath'} Destination folder name in which you want to copy/move file
|
56
56
|
%br/
|
57
|
-
%input{:type=>'text', :name=>'
|
57
|
+
%input{:type=>'text', :name=>'destPath'}
|
58
|
+
%br/
|
59
|
+
%label{:for => 'basePath'} Base Path
|
60
|
+
%span{:class => 'optional'} (Optional)
|
61
|
+
%br/
|
62
|
+
%input{:type=>'text', :name=>'basePath'}
|
58
63
|
%br/
|
59
64
|
%input{:name => 'copy', :type => 'submit', :value => 'Copy'}/
|
60
65
|
%input{:name => 'move', :type => 'submit', :value => 'Move'}/
|
61
|
-
|
62
|
-
|
63
|
-
|
66
|
+
%h4
|
67
|
+
%span{:style => 'color: green'} #{(defined? massage) ? massage : ''}
|
68
|
+
%br/
|
64
69
|
|
65
70
|
= partial :_others_samples
|
66
71
|
|
@@ -0,0 +1,53 @@
|
|
1
|
+
%h3{:style => 'text-align:center;'}
|
2
|
+
%a{:href => '/'} GroupDocs Ruby SDK Samples
|
3
|
+
\- Sample06
|
4
|
+
.samplecontent{:style => 'padding:10px;'}
|
5
|
+
%i This sample will show how to add provided signature to provided document using Ruby SDK. Signed file will be uploaded to GroupDocs account and its GUID will be returned and embed into webpage with GroupDocs Ebedded Viewer.
|
6
|
+
%br/
|
7
|
+
%br/
|
8
|
+
%span.documentation
|
9
|
+
%a{:href => '/docs/sample06.html'} Builtin documentation for this sample
|
10
|
+
%br/
|
11
|
+
%br/
|
12
|
+
%p
|
13
|
+
You entered:
|
14
|
+
%p
|
15
|
+
UserId = #{(defined? clientId) ? clientId : ''}
|
16
|
+
%p
|
17
|
+
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
18
|
+
%p
|
19
|
+
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
20
|
+
#files_form
|
21
|
+
%form{:action => '/sample06', :enctype => 'multipart/form-data', :method => 'post'}
|
22
|
+
%br/
|
23
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
24
|
+
%br/
|
25
|
+
%input{:type=>'text', :id=>'clientId', :name => 'clientId'}
|
26
|
+
%br/
|
27
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
28
|
+
%br/
|
29
|
+
%input{:type=>'text', :id=>'privateKey', :name => 'privateKey'}
|
30
|
+
%br/
|
31
|
+
%label{:for => 'fiDocument'} Document to sign
|
32
|
+
%br/
|
33
|
+
%input{:type => 'file', :id => 'fiDocument', :name => 'fiDocument'}/
|
34
|
+
%br/
|
35
|
+
%label{:for => 'fiSignature'} Signature
|
36
|
+
%br/
|
37
|
+
%input{:type => 'file',:id => 'fiSignature', :name => 'fiSignature'}/
|
38
|
+
%br/
|
39
|
+
%label{:for => 'basePath'} Base Path
|
40
|
+
%span{:class => 'optional'} (Optional)
|
41
|
+
%br/
|
42
|
+
%input{:type=>'text', :name=>'basePath'}
|
43
|
+
%br/
|
44
|
+
%br/
|
45
|
+
%input{:type => 'submit', :value => 'Upload and sign the document', :id => "btnLoad"}/
|
46
|
+
%br/
|
47
|
+
%br/
|
48
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
49
|
+
%p
|
50
|
+
Results:
|
51
|
+
#{(defined? iframe) ? iframe : ''}
|
52
|
+
|
53
|
+
= partial :_others_samples
|
@@ -0,0 +1,47 @@
|
|
1
|
+
%h3{:style => 'text-align:center;'}
|
2
|
+
%a{:href => '/'} GroupDocs Ruby SDK Samples
|
3
|
+
\- Sample7
|
4
|
+
.samplecontent{:style => 'padding:10px;'}
|
5
|
+
%i This sample will show how to list thumbnails for documents in the GroupDocs account using Ruby SDK
|
6
|
+
%br/
|
7
|
+
%br/
|
8
|
+
%span.documentation
|
9
|
+
%a{:href => '/docs/sample7.html'} Builtin documentation for this sample
|
10
|
+
%br/
|
11
|
+
%br/
|
12
|
+
%p
|
13
|
+
You entered:
|
14
|
+
%p
|
15
|
+
UserId = #{(defined? clientId) ? clientId : ''}
|
16
|
+
%p
|
17
|
+
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
18
|
+
%p
|
19
|
+
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
20
|
+
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
21
|
+
%p Enter data for request and press "Make request" button
|
22
|
+
%form{:action => '/sample07', :enctype => 'multipart/form-data', :method => 'post'}
|
23
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
24
|
+
%br/
|
25
|
+
%input{:type=>'text', :name=>'clientId', :id=>'clientId'}
|
26
|
+
%br/
|
27
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
28
|
+
%br/
|
29
|
+
%input{:type=>'text', :name=>'privateKey', :id=>'privateKey'}
|
30
|
+
%br/
|
31
|
+
%label{:for => 'basePath'} Base Path
|
32
|
+
%span{:class => 'optional'} (Optional)
|
33
|
+
%br/
|
34
|
+
%input{:type=>'text', :name=>'basePath', :id=>'basePath'}
|
35
|
+
%br/
|
36
|
+
%input{:type => 'submit', :value => 'Make Request'}/
|
37
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
38
|
+
%p Results:
|
39
|
+
%table{:style => 'border:1px double black;'}
|
40
|
+
%tr
|
41
|
+
%th Field
|
42
|
+
%th Value
|
43
|
+
%tr
|
44
|
+
%td #{(defined? thumbnailList) ? thumbnailList : ''} #{(defined? file_List) ? file_List : ''}
|
45
|
+
%br/
|
46
|
+
|
47
|
+
= partial :_others_samples
|
@@ -1,36 +1,36 @@
|
|
1
1
|
%h3{:style => 'text-align:center;'}
|
2
2
|
%a{:href => '/'} GroupDocs Ruby SDK Samples
|
3
|
-
\-
|
3
|
+
\- Sample08
|
4
4
|
.samplecontent{:style => 'padding:10px;'}
|
5
5
|
%i This sample will show how to return a URL representing a single page of particular Document in the GroupDocs account using Ruby SDK
|
6
6
|
%br/
|
7
7
|
%br/
|
8
8
|
%span.documentation
|
9
|
-
%a{:href => '/docs/
|
9
|
+
%a{:href => '/docs/sample08.html'} Builtin documentation for this sample
|
10
10
|
%br/
|
11
11
|
%br/
|
12
12
|
%p
|
13
13
|
You entered:
|
14
14
|
%p
|
15
|
-
UserId = #{(defined?
|
15
|
+
UserId = #{(defined? clientId) ? clientId : ''}
|
16
16
|
%p
|
17
17
|
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
18
18
|
%p
|
19
19
|
File Id = #{(defined? guid) ? guid : ''}
|
20
20
|
%p
|
21
|
-
Page number = #{(defined?
|
21
|
+
Page number = #{(defined? pageNumber) ? pageNumber : ''}
|
22
22
|
%p
|
23
23
|
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
24
24
|
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
25
25
|
%p Enter data for request and press "Make request" button
|
26
|
-
%form{:action => '/
|
27
|
-
%label{:for => '
|
26
|
+
%form{:action => '/sample08', :enctype => 'multipart/form-data', :method => 'post'}
|
27
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
28
28
|
%br/
|
29
|
-
%input{:type=>'text', :name=>'
|
29
|
+
%input{:type=>'text', :id => 'clientId' , :name=>'clientId'}
|
30
30
|
%br/
|
31
|
-
%label{:for => '
|
31
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
32
32
|
%br/
|
33
|
-
%input{:type=>'text', :name=>'
|
33
|
+
%input{:type=>'text', :id => 'privateKey' , :name=>'privateKey'}
|
34
34
|
%br/
|
35
35
|
|
36
36
|
%div.guid_radio
|
@@ -57,9 +57,14 @@
|
|
57
57
|
%input{:type=>'text', :name=>'url'}
|
58
58
|
|
59
59
|
%br/
|
60
|
-
%label{:for => '
|
60
|
+
%label{:for => 'pageNumber'} GroupDocs page number (starts from zero)
|
61
61
|
%br/
|
62
|
-
%input{:type=>'text', :name=>'
|
62
|
+
%input{:type=>'text', :name=>'pageNumber'}
|
63
|
+
%br/
|
64
|
+
%label{:for => 'basePath'} Base Path
|
65
|
+
%span{:class => 'optional'} (Optional)
|
66
|
+
%br/
|
67
|
+
%input{:type=>'text', :name=>'basePath', :id => "basePath"}
|
63
68
|
%br/
|
64
69
|
%input{:type => 'submit', :value => 'Make Request'}/
|
65
70
|
%div{:style => 'padding:20px; border:1px solid black;'}
|
@@ -71,7 +76,7 @@
|
|
71
76
|
%tr
|
72
77
|
%td Page URL
|
73
78
|
%td #{(defined? image) ? image : ''}
|
74
|
-
%font{:color => 'green'} The page you requested:
|
79
|
+
%font{:color => 'green'}#{(defined? image) ? if image.nil? then 'You entered incorrect page number' else 'The page you requested:' end : ''}
|
75
80
|
%br/
|
76
81
|
%img{:src => "#{(defined? image) ? image : ''}"}
|
77
82
|
%br/
|