groupdocs 1.5.0 → 1.5.1
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 +6 -0
- data/examples/api-samples/README.md +1 -1
- data/examples/api-samples/public/css/style.css +2 -2
- data/examples/api-samples/public/docs/annotation-sample.html +57 -0
- data/examples/api-samples/public/docs/envelope-sample.html +32 -32
- data/examples/api-samples/public/docs/sample1.html +3 -3
- data/examples/api-samples/public/docs/sample10.html +25 -24
- data/examples/api-samples/public/docs/sample11.html +17 -17
- data/examples/api-samples/public/docs/sample12.html +4 -4
- data/examples/api-samples/public/docs/sample13.html +5 -5
- data/examples/api-samples/public/docs/sample14.html +5 -5
- data/examples/api-samples/public/docs/sample15.html +4 -4
- data/examples/api-samples/public/docs/sample16.html +3 -3
- data/examples/api-samples/public/docs/sample17.html +3 -3
- data/examples/api-samples/public/docs/sample18.html +129 -34
- data/examples/api-samples/public/docs/sample19.html +59 -0
- data/examples/api-samples/public/docs/sample2.html +5 -5
- data/examples/api-samples/public/docs/sample20.html +51 -0
- data/examples/api-samples/public/docs/sample21.html +66 -0
- data/examples/api-samples/public/docs/sample22.html +53 -0
- data/examples/api-samples/public/docs/sample3.html +4 -4
- data/examples/api-samples/public/docs/sample4.html +27 -16
- data/examples/api-samples/public/docs/sample5.html +29 -22
- data/examples/api-samples/public/docs/sample6.html +6 -6
- data/examples/api-samples/public/docs/sample7.html +8 -8
- data/examples/api-samples/public/docs/sample8.html +31 -23
- data/examples/api-samples/public/docs/sample9.html +26 -8
- data/examples/api-samples/public/templates/merge_feid_doc.docx +0 -0
- data/examples/api-samples/samples/annotation-sample.rb +22 -16
- data/examples/api-samples/samples/envelope-sample.rb +26 -25
- data/examples/api-samples/samples/sample1.rb +2 -2
- data/examples/api-samples/samples/sample10.rb +21 -20
- data/examples/api-samples/samples/sample11.rb +18 -18
- data/examples/api-samples/samples/sample12.rb +3 -3
- data/examples/api-samples/samples/sample13.rb +4 -4
- data/examples/api-samples/samples/sample14.rb +4 -4
- data/examples/api-samples/samples/sample15.rb +3 -3
- data/examples/api-samples/samples/sample16.rb +2 -2
- data/examples/api-samples/samples/sample17.rb +2 -2
- data/examples/api-samples/samples/sample18.rb +90 -106
- data/examples/api-samples/samples/sample19.rb +5 -5
- data/examples/api-samples/samples/sample2.rb +4 -4
- data/examples/api-samples/samples/sample20.rb +4 -4
- data/examples/api-samples/samples/sample21.rb +4 -4
- data/examples/api-samples/samples/sample22.rb +2 -2
- data/examples/api-samples/samples/sample23.rb +0 -0
- data/examples/api-samples/samples/sample24.rb +0 -0
- data/examples/api-samples/samples/sample25.rb +96 -0
- data/examples/api-samples/samples/sample3.rb +3 -3
- data/examples/api-samples/samples/sample4.rb +23 -12
- data/examples/api-samples/samples/sample5.rb +23 -16
- data/examples/api-samples/samples/sample6.rb +8 -8
- data/examples/api-samples/samples/sample7.rb +7 -7
- data/examples/api-samples/samples/sample8.rb +29 -21
- data/examples/api-samples/samples/sample9.rb +23 -5
- data/examples/api-samples/views/_others_samples.haml +57 -0
- data/examples/api-samples/views/annotation_sample.haml +30 -30
- data/examples/api-samples/views/envelope_sample.haml +31 -31
- data/examples/api-samples/views/index.haml +33 -25
- data/examples/api-samples/views/sample1.haml +22 -69
- data/examples/api-samples/views/sample10.haml +57 -73
- data/examples/api-samples/views/sample11.haml +31 -79
- data/examples/api-samples/views/sample12.haml +18 -66
- data/examples/api-samples/views/sample13.haml +21 -70
- data/examples/api-samples/views/sample14.haml +18 -67
- data/examples/api-samples/views/sample15.haml +15 -63
- data/examples/api-samples/views/sample16.haml +13 -61
- data/examples/api-samples/views/sample17.haml +19 -67
- data/examples/api-samples/views/sample18.haml +74 -159
- data/examples/api-samples/views/sample19.haml +25 -74
- data/examples/api-samples/views/sample2.haml +19 -66
- data/examples/api-samples/views/sample20.haml +19 -68
- data/examples/api-samples/views/sample21.haml +28 -76
- data/examples/api-samples/views/sample22.haml +29 -77
- data/examples/api-samples/views/sample23.haml +0 -0
- data/examples/api-samples/views/sample24.haml +0 -0
- data/examples/api-samples/views/sample25.haml +91 -0
- data/examples/api-samples/views/sample3.haml +20 -68
- data/examples/api-samples/views/sample4.haml +53 -68
- data/examples/api-samples/views/sample5.haml +54 -70
- data/examples/api-samples/views/sample6.haml +21 -69
- data/examples/api-samples/views/sample7.haml +19 -66
- data/examples/api-samples/views/sample8.haml +60 -75
- data/examples/api-samples/views/sample9.haml +54 -70
- data/examples/api-samples/web.rb +20 -0
- data/lib/groupdocs/api/request.rb +4 -2
- data/lib/groupdocs/version.rb +1 -1
- data/spec/groupdocs/api/request_spec.rb +10 -2
- metadata +18 -5
- data/examples/api-samples/app.rb +0 -15
@@ -1,38 +1,38 @@
|
|
1
|
-
%h3{:style =>
|
2
|
-
%a{:href =>
|
1
|
+
%h3{:style => 'text-align:center;'}
|
2
|
+
%a{:href => '/'} GroupDocs Ruby SDK Samples
|
3
3
|
\- Sample14
|
4
|
-
.samplecontent{:style =>
|
4
|
+
.samplecontent{:style => 'padding:10px;'}
|
5
5
|
%i This sample will show how to check the list of shares for a folder using Ruby SDK
|
6
6
|
%br/
|
7
7
|
%br/
|
8
8
|
%p
|
9
9
|
You entered:
|
10
10
|
%p
|
11
|
-
UserId = #{(defined? userId) ? userId :
|
11
|
+
UserId = #{(defined? userId) ? userId : ''}
|
12
12
|
%p
|
13
|
-
PrivateKey = #{(defined? privateKey) ? privateKey :
|
13
|
+
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
14
14
|
%p
|
15
|
-
Folder = #{(defined? folder) ? folder :
|
15
|
+
Folder = #{(defined? folder) ? folder : ''}
|
16
16
|
%p
|
17
|
-
%font{:color =>
|
17
|
+
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
18
18
|
%br/
|
19
|
-
#requestForm{:style =>
|
19
|
+
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
20
20
|
%p Enter data for request and press "Make request" button
|
21
|
-
%form{:action =>
|
22
|
-
%label{:for =>
|
21
|
+
%form{:action => '/sample14', :method => 'post'}
|
22
|
+
%label{:for => 'client_id'} GroupDocs ClientID
|
23
23
|
%br/
|
24
|
-
%input{:type=>
|
24
|
+
%input{:type=>'text', :name=>'client_id'}
|
25
25
|
%br/
|
26
|
-
%label{:for =>
|
26
|
+
%label{:for => 'private_key'} GroupDocs PrivateKey
|
27
27
|
%br/
|
28
|
-
%input{:type=>
|
28
|
+
%input{:type=>'text', :name=>'private_key'}
|
29
29
|
%br/
|
30
|
-
%label{:for =>
|
30
|
+
%label{:for => 'folder'} GroupDocs Folder
|
31
31
|
%br/
|
32
|
-
%input{:type=>
|
32
|
+
%input{:type=>'text', :name=>'folder'}
|
33
33
|
%br/
|
34
|
-
%input{:type =>
|
35
|
-
%div{:style =>
|
34
|
+
%input{:type => 'submit', :value => 'Make request'}/
|
35
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
36
36
|
%p
|
37
37
|
List of shares for a folder:
|
38
38
|
%br/
|
@@ -42,53 +42,4 @@
|
|
42
42
|
#{user.primary_email}
|
43
43
|
%br/
|
44
44
|
|
45
|
-
|
46
|
-
%div{:style => "padding:10px;"}
|
47
|
-
Choose another one sample:
|
48
|
-
%ul
|
49
|
-
%li
|
50
|
-
%a{:href => "/sample1"} Sample1 - How to login to GroupDocs using the API
|
51
|
-
%li
|
52
|
-
%a{:href => "/sample2"} Sample2 - How to list files within GroupDocs Storage using the Storage API
|
53
|
-
%li
|
54
|
-
%a{:href => "/sample3"} Sample3 - How to upload a file to GroupDocs using the Storage API
|
55
|
-
%li
|
56
|
-
%a{:href => "/sample4"} Sample4 - How to download a file from GroupDocs Storage using the Storage API
|
57
|
-
%li
|
58
|
-
%a{:href => "/sample5"} Sample5 - How to copy / move a file using the GroupDocs Storage API
|
59
|
-
%li
|
60
|
-
%a{:href => "/sample6"} Sample6 - How to add a Signature to a document in GroupDocs Signature
|
61
|
-
%li
|
62
|
-
%a{:href => "/sample7"} Sample7 - How to create a list of thumbnails for a document
|
63
|
-
%li
|
64
|
-
%a{:href => "/sample8"} Sample8 - How to return a URL representing a single page of a Document
|
65
|
-
%li
|
66
|
-
%a{:href => "/sample9"} Sample9 - How to generate an embedded Viewer URL for a Document
|
67
|
-
%li
|
68
|
-
%a{:href => "/sample10"} Sample10 - How to share a document to other users
|
69
|
-
%li
|
70
|
-
%a{:href => "/sample11"}Sample11 - How programmatically create and post an annotation into document. How to delete the annotation
|
71
|
-
%li
|
72
|
-
%a{:href => "/sample12"}Sample12 - How to list all annotations from document
|
73
|
-
%li
|
74
|
-
%a{:href => "/sample13"}Sample13 - How to add collaborator to doc with annotations
|
75
|
-
%li
|
76
|
-
%a{:href => "/sample14"}Sample14 - How to check the list of shares for a folder
|
77
|
-
%li
|
78
|
-
%a{:href => "/sample15"}Sample15 - How to check the number of document's views
|
79
|
-
%li
|
80
|
-
%a{:href => "/sample16"}Sample16 - How to insert Assembly questionary into webpage
|
81
|
-
%li
|
82
|
-
%a{:href => "/sample17"}Sample17 - How to upload a file into the storage and compress it into zip archive
|
83
|
-
%li
|
84
|
-
%a{:href => "/sample18"}Sample18 - How to convert Doc to Docx, Docx to Doc, Docx to PDF, PPT to PDF
|
85
|
-
%li
|
86
|
-
%a{:href => "/sample19"}Sample19 - How to Compare documents using Ruby SDK
|
87
|
-
%li
|
88
|
-
%a{:href => "/sample20"}Sample20 - How to Get Compare Change list for document using Ruby SDK
|
89
|
-
%li
|
90
|
-
%a{:href => "/sample21"}Sample21 - How to Create and Upload Envelop to GroupDocs account using Ruby SDK
|
91
|
-
%li
|
92
|
-
%a{:href => "/sample22"}Sample22 - How create or update user and add him to collaborators using PHP SDK
|
93
|
-
%li
|
94
|
-
%a{:href => "/envelope-sample"}Envelope sample - How to use envelope and signature API
|
45
|
+
= partial :_others_samples
|
@@ -1,83 +1,35 @@
|
|
1
|
-
%h3{:style =>
|
2
|
-
%a{:href =>
|
1
|
+
%h3{:style => 'text-align:center;'}
|
2
|
+
%a{:href => '/'} GroupDocs Ruby SDK Samples
|
3
3
|
\- Sample15
|
4
|
-
.samplecontent{:style =>
|
4
|
+
.samplecontent{:style => 'padding:10px;'}
|
5
5
|
%i This sample will show how to check the number of document's views using Ruby SDK
|
6
6
|
%br/
|
7
7
|
%br/
|
8
8
|
%p
|
9
9
|
You entered:
|
10
10
|
%p
|
11
|
-
UserId = #{(defined? userId) ? userId :
|
11
|
+
UserId = #{(defined? userId) ? userId : ''}
|
12
12
|
%p
|
13
|
-
PrivateKey = #{(defined? privateKey) ? privateKey :
|
13
|
+
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
14
14
|
%p
|
15
|
-
%font{:color =>
|
15
|
+
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
16
16
|
%br/
|
17
|
-
#requestForm{:style =>
|
17
|
+
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
18
18
|
%p Enter data for request and press "Make request" button
|
19
|
-
%form{:action =>
|
20
|
-
%label{:for =>
|
19
|
+
%form{:action => '/sample15', :method => 'post'}
|
20
|
+
%label{:for => 'client_id'} GroupDocs ClientID
|
21
21
|
%br/
|
22
|
-
%input{:type=>
|
22
|
+
%input{:type=>'text', :name=>'client_id'}
|
23
23
|
%br/
|
24
|
-
%label{:for =>
|
24
|
+
%label{:for => 'private_key'} GroupDocs PrivateKey
|
25
25
|
%br/
|
26
|
-
%input{:type=>
|
26
|
+
%input{:type=>'text', :name=>'private_key'}
|
27
27
|
%br/
|
28
|
-
%input{:type =>
|
29
|
-
%div{:style =>
|
28
|
+
%input{:type => 'submit', :value => 'Make request'}/
|
29
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
30
30
|
%p
|
31
31
|
Result:
|
32
32
|
- if defined? total
|
33
33
|
#{total}
|
34
34
|
|
35
|
-
|
36
|
-
Choose another one sample:
|
37
|
-
%ul
|
38
|
-
%li
|
39
|
-
%a{:href => "/sample1"} Sample1 - How to login to GroupDocs using the API
|
40
|
-
%li
|
41
|
-
%a{:href => "/sample2"} Sample2 - How to list files within GroupDocs Storage using the Storage API
|
42
|
-
%li
|
43
|
-
%a{:href => "/sample3"} Sample3 - How to upload a file to GroupDocs using the Storage API
|
44
|
-
%li
|
45
|
-
%a{:href => "/sample4"} Sample4 - How to download a file from GroupDocs Storage using the Storage API
|
46
|
-
%li
|
47
|
-
%a{:href => "/sample5"} Sample5 - How to copy / move a file using the GroupDocs Storage API
|
48
|
-
%li
|
49
|
-
%a{:href => "/sample6"} Sample6 - How to add a Signature to a document in GroupDocs Signature
|
50
|
-
%li
|
51
|
-
%a{:href => "/sample7"} Sample7 - How to create a list of thumbnails for a document
|
52
|
-
%li
|
53
|
-
%a{:href => "/sample8"} Sample8 - How to return a URL representing a single page of a Document
|
54
|
-
%li
|
55
|
-
%a{:href => "/sample9"} Sample9 - How to generate an embedded Viewer URL for a Document
|
56
|
-
%li
|
57
|
-
%a{:href => "/sample10"} Sample10 - How to share a document to other users
|
58
|
-
%li
|
59
|
-
%a{:href => "/sample11"}Sample11 - How programmatically create and post an annotation into document. How to delete the annotation
|
60
|
-
%li
|
61
|
-
%a{:href => "/sample12"}Sample12 - How to list all annotations from document
|
62
|
-
%li
|
63
|
-
%a{:href => "/sample13"}Sample13 - How to add collaborator to doc with annotations
|
64
|
-
%li
|
65
|
-
%a{:href => "/sample14"}Sample14 - How to check the list of shares for a folder
|
66
|
-
%li
|
67
|
-
%a{:href => "/sample15"}Sample15 - How to check the number of document's views
|
68
|
-
%li
|
69
|
-
%a{:href => "/sample16"}Sample16 - How to insert Assembly questionary into webpage
|
70
|
-
%li
|
71
|
-
%a{:href => "/sample17"}Sample17 - How to upload a file into the storage and compress it into zip archive
|
72
|
-
%li
|
73
|
-
%a{:href => "/sample18"}Sample18 - How to convert Doc to Docx, Docx to Doc, Docx to PDF, PPT to PDF
|
74
|
-
%li
|
75
|
-
%a{:href => "/sample19"}Sample19 - How to Compare documents using Ruby SDK
|
76
|
-
%li
|
77
|
-
%a{:href => "/sample20"}Sample20 - How to Get Compare Change list for document using Ruby SDK
|
78
|
-
%li
|
79
|
-
%a{:href => "/sample21"}Sample21 - How to Create and Upload Envelop to GroupDocs account using Ruby SDK
|
80
|
-
%li
|
81
|
-
%a{:href => "/sample22"}Sample22 - How create or update user and add him to collaborators using PHP SDK
|
82
|
-
%li
|
83
|
-
%a{:href => "/envelope-sample"}Envelope sample - How to use envelope and signature API
|
35
|
+
= partial :_others_samples
|
@@ -1,76 +1,28 @@
|
|
1
|
-
%h3{:style =>
|
2
|
-
%a{:href =>
|
1
|
+
%h3{:style => 'text-align:center;'}
|
2
|
+
%a{:href => '/'} GroupDocs Ruby SDK Samples
|
3
3
|
\- Sample16
|
4
|
-
.samplecontent{:style =>
|
4
|
+
.samplecontent{:style => 'padding:10px;'}
|
5
5
|
%i This sample will show how to insert Assembly questionary into webpage using Ruby SDK
|
6
6
|
%br/
|
7
7
|
%br/
|
8
8
|
%p
|
9
9
|
You entered:
|
10
10
|
%p
|
11
|
-
FileId = #{(defined? fileId) ? fileId :
|
11
|
+
FileId = #{(defined? fileId) ? fileId : ''}
|
12
12
|
%p
|
13
|
-
%font{:color =>
|
13
|
+
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
14
14
|
%br/
|
15
|
-
#requestForm{:style =>
|
15
|
+
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
16
16
|
%p Enter data for request and press "Make request" button
|
17
|
-
%form{:action =>
|
18
|
-
%label{:for =>
|
17
|
+
%form{:action => '/sample16', :method => 'post'}
|
18
|
+
%label{:for => 'fileId'} GroupDocs FileID
|
19
19
|
%br/
|
20
|
-
%input{:type=>
|
20
|
+
%input{:type=>'text', :name=>'fileId'}
|
21
21
|
%br/
|
22
|
-
%input{:type =>
|
23
|
-
%div{:style =>
|
22
|
+
%input{:type => 'submit', :value => 'Make request'}/
|
23
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
24
24
|
%p
|
25
25
|
Result:
|
26
|
-
#{(defined? iframe) ? iframe :
|
26
|
+
#{(defined? iframe) ? iframe : ''}
|
27
27
|
|
28
|
-
|
29
|
-
Choose another one sample:
|
30
|
-
%ul
|
31
|
-
%li
|
32
|
-
%a{:href => "/sample1"} Sample1 - How to login to GroupDocs using the API
|
33
|
-
%li
|
34
|
-
%a{:href => "/sample2"} Sample2 - How to list files within GroupDocs Storage using the Storage API
|
35
|
-
%li
|
36
|
-
%a{:href => "/sample3"} Sample3 - How to upload a file to GroupDocs using the Storage API
|
37
|
-
%li
|
38
|
-
%a{:href => "/sample4"} Sample4 - How to download a file from GroupDocs Storage using the Storage API
|
39
|
-
%li
|
40
|
-
%a{:href => "/sample5"} Sample5 - How to copy / move a file using the GroupDocs Storage API
|
41
|
-
%li
|
42
|
-
%a{:href => "/sample6"} Sample6 - How to add a Signature to a document in GroupDocs Signature
|
43
|
-
%li
|
44
|
-
%a{:href => "/sample7"} Sample7 - How to create a list of thumbnails for a document
|
45
|
-
%li
|
46
|
-
%a{:href => "/sample8"} Sample8 - How to return a URL representing a single page of a Document
|
47
|
-
%li
|
48
|
-
%a{:href => "/sample9"} Sample9 - How to generate an embedded Viewer URL for a Document
|
49
|
-
%li
|
50
|
-
%a{:href => "/sample10"} Sample10 - How to share a document to other users
|
51
|
-
%li
|
52
|
-
%a{:href => "/sample11"}Sample11 - How programmatically create and post an annotation into document. How to delete the annotation
|
53
|
-
%li
|
54
|
-
%a{:href => "/sample12"}Sample12 - How to list all annotations from document
|
55
|
-
%li
|
56
|
-
%a{:href => "/sample13"}Sample13 - How to add collaborator to doc with annotations
|
57
|
-
%li
|
58
|
-
%a{:href => "/sample14"}Sample14 - How to check the list of shares for a folder
|
59
|
-
%li
|
60
|
-
%a{:href => "/sample15"}Sample15 - How to check the number of document's views
|
61
|
-
%li
|
62
|
-
%a{:href => "/sample16"}Sample16 - How to insert Assembly questionary into webpage
|
63
|
-
%li
|
64
|
-
%a{:href => "/sample17"}Sample17 - How to upload a file into the storage and compress it into zip archive
|
65
|
-
%li
|
66
|
-
%a{:href => "/sample18"}Sample18 - How to convert Doc to Docx, Docx to Doc, Docx to PDF, PPT to PDF
|
67
|
-
%li
|
68
|
-
%a{:href => "/sample19"}Sample19 - How to Compare documents using Ruby SDK
|
69
|
-
%li
|
70
|
-
%a{:href => "/sample20"}Sample20 - How to Get Compare Change list for document using Ruby SDK
|
71
|
-
%li
|
72
|
-
%a{:href => "/sample21"}Sample21 - How to Create and Upload Envelop to GroupDocs account using Ruby SDK
|
73
|
-
%li
|
74
|
-
%a{:href => "/sample22"}Sample22 - How create or update user and add him to collaborators using PHP SDK
|
75
|
-
%li
|
76
|
-
%a{:href => "/envelope-sample"}Envelope sample - How to use envelope and signature API
|
28
|
+
= partial :_others_samples
|
@@ -1,88 +1,40 @@
|
|
1
|
-
%h3{:style =>
|
2
|
-
%a{:href =>
|
1
|
+
%h3{:style => 'text-align:center;'}
|
2
|
+
%a{:href => '/'} GroupDocs Ruby SDK Samples
|
3
3
|
\- Sample17
|
4
|
-
.samplecontent{:style =>
|
4
|
+
.samplecontent{:style => 'padding:10px;'}
|
5
5
|
%i This sample will show how to upload a file into the storage and compress it into zip archive using Ruby SDK
|
6
6
|
%br/
|
7
7
|
%br/
|
8
8
|
%p
|
9
9
|
You entered:
|
10
10
|
%p
|
11
|
-
UserId = #{(defined? userId) ? userId :
|
11
|
+
UserId = #{(defined? userId) ? userId : ''}
|
12
12
|
%p
|
13
|
-
PrivateKey = #{(defined? privateKey) ? privateKey :
|
13
|
+
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
14
14
|
%p
|
15
|
-
%font{:color =>
|
15
|
+
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
16
16
|
%br/
|
17
|
-
#requestForm{:style =>
|
17
|
+
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
18
18
|
%p Enter data for request and press "Make request" button
|
19
|
-
%form{:action =>
|
20
|
-
%label{:for =>
|
19
|
+
%form{:action => '/sample17', :enctype => 'multipart/form-data', :method => 'post'}
|
20
|
+
%label{:for => 'client_id'} GroupDocs ClientID
|
21
21
|
%br/
|
22
|
-
%input{:type=>
|
22
|
+
%input{:type=>'text', :name=>'client_id'}
|
23
23
|
%br/
|
24
|
-
%label{:for =>
|
24
|
+
%label{:for => 'private_key'} GroupDocs PrivateKey
|
25
25
|
%br/
|
26
|
-
%input{:type=>
|
26
|
+
%input{:type=>'text', :name=>'private_key'}
|
27
27
|
%br/
|
28
|
-
%label{:for =>
|
28
|
+
%label{:for => 'file'} File
|
29
29
|
%br/
|
30
|
-
%input{:name =>
|
30
|
+
%input{:name => 'file', :type => 'file'}/
|
31
31
|
%br/
|
32
32
|
%br/
|
33
|
-
%input{:type =>
|
34
|
-
%div{:style =>
|
33
|
+
%input{:type => 'submit', :value => 'Upload'}/
|
34
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
35
35
|
%p
|
36
36
|
Results:
|
37
|
-
#{(defined? massage) ? massage :
|
38
|
-
#{(defined? iframe) ? iframe :
|
37
|
+
#{(defined? massage) ? massage : ''}
|
38
|
+
#{(defined? iframe) ? iframe : ''}
|
39
39
|
|
40
|
-
|
41
|
-
Choose anothe one sample:
|
42
|
-
%ul
|
43
|
-
%li
|
44
|
-
%a{:href => "/sample1"} Sample1 - How to login to GroupDocs using the API
|
45
|
-
%li
|
46
|
-
%a{:href => "/sample2"} Sample2 - How to list files within GroupDocs Storage using the Storage API
|
47
|
-
%li
|
48
|
-
%a{:href => "/sample3"} Sample3 - How to upload a file to GroupDocs using the Storage API
|
49
|
-
%li
|
50
|
-
%a{:href => "/sample4"} Sample4 - How to download a file from GroupDocs Storage using the Storage API
|
51
|
-
%li
|
52
|
-
%a{:href => "/sample5"} Sample5 - How to copy / move a file using the GroupDocs Storage API
|
53
|
-
%li
|
54
|
-
%a{:href => "/sample6"} Sample6 - How to add a Signature to a document in GroupDocs Signature
|
55
|
-
%li
|
56
|
-
%a{:href => "/sample7"} Sample7 - How to create a list of thumbnails for a document
|
57
|
-
%li
|
58
|
-
%a{:href => "/sample8"} Sample8 - How to return a URL representing a single page of a Document
|
59
|
-
%li
|
60
|
-
%a{:href => "/sample9"} Sample9 - How to generate an embedded Viewer URL for a Document
|
61
|
-
%li
|
62
|
-
%a{:href => "/sample10"} Sample10 - How to share a document to other users
|
63
|
-
%li
|
64
|
-
%a{:href => "/sample11"}Sample11 - How programmatically create and post an annotation into document. How to delete the annotation
|
65
|
-
%li
|
66
|
-
%a{:href => "/sample12"}Sample12 - How to list all annotations from document
|
67
|
-
%li
|
68
|
-
%a{:href => "/sample13"}Sample13 - How to add collaborator to doc with annotations
|
69
|
-
%li
|
70
|
-
%a{:href => "/sample14"}Sample14 - How to check the list of shares for a folder
|
71
|
-
%li
|
72
|
-
%a{:href => "/sample15"}Sample15 - How to check the number of document's views
|
73
|
-
%li
|
74
|
-
%a{:href => "/sample16"}Sample16 - How to insert Assembly questionary into webpage
|
75
|
-
%li
|
76
|
-
%a{:href => "/sample17"}Sample17 - How to upload a file into the storage and compress it into zip archive
|
77
|
-
%li
|
78
|
-
%a{:href => "/sample18"}Sample18 - How to convert Doc to Docx, Docx to Doc, Docx to PDF, PPT to PDF
|
79
|
-
%li
|
80
|
-
%a{:href => "/sample19"}Sample19 - How to Compare documents using Ruby SDK
|
81
|
-
%li
|
82
|
-
%a{:href => "/sample20"}Sample20 - How to Get Compare Change list for document using Ruby SDK
|
83
|
-
%li
|
84
|
-
%a{:href => "/sample21"}Sample21 - How to Create and Upload Envelop to GroupDocs account using Ruby SDK
|
85
|
-
%li
|
86
|
-
%a{:href => "/sample22"}Sample22 - How create or update user and add him to collaborators using PHP SDK
|
87
|
-
%li
|
88
|
-
%a{:href => "/envelope-sample"}Envelope sample - How to use envelope and signature API
|
40
|
+
= partial :_others_samples
|
@@ -1,7 +1,7 @@
|
|
1
|
-
%h3{:style =>
|
2
|
-
%a{:href =>
|
1
|
+
%h3{:style => 'text-align:center;'}
|
2
|
+
%a{:href => '/'} GroupDocs Ruby SDK Samples
|
3
3
|
\- Sample18
|
4
|
-
.samplecontent{:style =>
|
4
|
+
.samplecontent{:style => 'padding:10px;'}
|
5
5
|
%span.description
|
6
6
|
%i
|
7
7
|
This sample will show how to use
|
@@ -10,207 +10,122 @@
|
|
10
10
|
%br/
|
11
11
|
%br/
|
12
12
|
%span.documentation
|
13
|
-
%a{:href =>
|
13
|
+
%a{:href => '/docs/sample18.html'} Builtin documentation for this sample
|
14
14
|
%br/
|
15
15
|
%br/
|
16
16
|
%p
|
17
17
|
You entered:
|
18
18
|
%p
|
19
|
-
ClientID = #{(defined? userId) ? userId :
|
19
|
+
ClientID = #{(defined? userId) ? userId : ''}
|
20
20
|
%p
|
21
|
-
PrivateKey = #{(defined? privateKey) ? privateKey :
|
21
|
+
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
22
22
|
%p
|
23
|
-
FileId = #{(defined? fileId) ? fileId :
|
23
|
+
FileId = #{(defined? fileId.guid) ? fileId.guid : ''}
|
24
24
|
%p
|
25
|
-
|
25
|
+
Converted file GUID = #{(defined? converted) ? converted : ''}
|
26
|
+
%p
|
27
|
+
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
26
28
|
%br/
|
27
|
-
#requestForm{:style =>
|
29
|
+
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
28
30
|
%p Enter data for request and press "Make request" button
|
29
|
-
%form{:action =>
|
30
|
-
%label{:for =>
|
31
|
+
%form{:action => '/sample18', :enctype => 'multipart/form-data', :method => 'post'}
|
32
|
+
%label{:for => 'client_id'} GroupDocs ClientID
|
31
33
|
%br/
|
32
|
-
%input{:type=>
|
34
|
+
%input{:type=>'text', :name=>'client_id'}
|
33
35
|
%br/
|
34
|
-
%label{:for =>
|
36
|
+
%label{:for => 'private_key'} GroupDocs PrivateKey
|
35
37
|
%br/
|
36
|
-
%input{:type=>
|
38
|
+
%input{:type=>'text', :name=>'private_key'}
|
37
39
|
%br/
|
38
|
-
%label{:for =>
|
40
|
+
%label{:for => 'file_id'} GroupDocs FileID
|
39
41
|
%br/
|
40
42
|
|
41
43
|
|
42
|
-
%
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
44
|
+
%div.guid_radio
|
45
|
+
%input{:type=>'radio', :name=>'source', :value=>'guid', :checked=>'checked'} File ID (GUID)
|
46
|
+
%br/
|
47
|
+
%input{:type=>'radio', :name=>'source', :value=>'local'}Upload local file
|
48
|
+
%br/
|
49
|
+
%input{:type=>'radio', :name=>'source', :value=>'url'} Upload file from URL
|
50
|
+
%br/
|
48
51
|
|
49
|
-
%
|
50
|
-
|
51
|
-
|
52
|
+
%div.guid_field
|
53
|
+
%label{:for=>'fileId', :id=>'guid'} File ID (GUID)
|
54
|
+
%br/
|
55
|
+
%input{:type=>'text', :name=>'fileId'}
|
56
|
+
|
57
|
+
%div.guid_field{:style=>'display:none;'}
|
58
|
+
%label{:for=>'file'} Upload local file
|
59
|
+
%br/
|
60
|
+
%input{:type=>'file', :name=>'file'}
|
61
|
+
|
62
|
+
%div.guid_field{:style=>'display:none;'}
|
63
|
+
%label{:for=>'url', :id=>'url'} Upload file from URL
|
64
|
+
%br/
|
65
|
+
%input{:type=>'text', :name=>'url'}
|
52
66
|
|
53
|
-
%label{:for=>'url', :style=>"display:none;", :id=>"url"} Upload file from URL
|
54
|
-
%br/
|
55
|
-
%input{:type=>'text', :name=>'url', :value=>"", :id=>"urlfield", :style=>"display:none;"}
|
56
67
|
|
57
|
-
%label{:for=>'file', :id=>"file", :style=>"display:none;"} Upload local file
|
58
|
-
%br/
|
59
|
-
%input{:type=>'file', :name=>'file', :id=>"filefield", :style=>"display:none;"}
|
60
68
|
|
61
69
|
%br/
|
62
|
-
%label{:for=>
|
63
|
-
%select{:name=>
|
64
|
-
%option{:value =>
|
65
|
-
%option{:value =>
|
66
|
-
%option{:value =>
|
67
|
-
%option{:value =>
|
68
|
-
%option{:value =>
|
70
|
+
%label{:for=>'convert_type'} Result file type
|
71
|
+
%select{:name=>'convert_type', :id=>'convert_type'}
|
72
|
+
%option{:value => 'doc'}Doc
|
73
|
+
%option{:value => 'docx'}Docx
|
74
|
+
%option{:value => 'pdf'}PDF
|
75
|
+
%option{:value => 'ppt'}PPT
|
76
|
+
%option{:value => 'txt'}TXT
|
69
77
|
|
70
78
|
%br/
|
71
79
|
%br/
|
72
|
-
%label{:for=>
|
80
|
+
%label{:for=>'callback'}
|
73
81
|
Callback URL
|
74
82
|
%span.optional (Optional)
|
75
83
|
%br/
|
76
|
-
%font{:color=>
|
77
|
-
%input{:type=>
|
84
|
+
%font{:color=>'grey'} (For test Callback you can use this URL: http://groupdocs-ruby-samples.herokuapp.com/sample18/convert_callback)
|
85
|
+
%input{:type=>'text', :size=>'70', :value=>"#{(defined? callback) ? callback : ''}", :name=>'callback'}
|
78
86
|
|
79
87
|
%br/
|
80
88
|
%br/
|
81
89
|
|
82
|
-
%input{:type =>
|
90
|
+
%input{:type => 'submit', :value => 'Make request'}
|
91
|
+
%span{:id=>'results_status', :style=>'color:red;display:none;'} (Please wait for ajax response)
|
83
92
|
|
84
93
|
%br/
|
85
|
-
%a{:href=>
|
94
|
+
%a{:href=>'/templates/testdocument.html'} Download sample HTML file 1
|
86
95
|
%br/
|
87
|
-
%a{:href=>
|
96
|
+
%a{:href=>'/templates/base-simple_source.html'} Download sample HTML file 2
|
88
97
|
%br/
|
89
|
-
%a{:href=>
|
98
|
+
%a{:href=>'/templates/sampledoc3.html'} Download sample HTML file 3
|
90
99
|
%br/
|
91
100
|
%br/
|
92
|
-
%div{:style =>
|
101
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
93
102
|
%p
|
94
103
|
Results:
|
95
|
-
|
96
|
-
|
97
|
-
#{(defined? message) ? message : ""}
|
104
|
+
%iframe{:id=>'downloadframe', :style=>'display:none'}
|
105
|
+
#{(defined? iframe) ? iframe : ''}
|
98
106
|
|
107
|
+
= partial :_others_samples
|
99
108
|
|
100
|
-
%
|
101
|
-
Choose another one sample:
|
102
|
-
%ul
|
103
|
-
%li
|
104
|
-
%a{:href => "/sample1"} Sample1 - How to login to GroupDocs using the API
|
105
|
-
%li
|
106
|
-
%a{:href => "/sample2"} Sample2 - How to list files within GroupDocs Storage using the Storage API
|
107
|
-
%li
|
108
|
-
%a{:href => "/sample3"} Sample3 - How to upload a file to GroupDocs using the Storage API
|
109
|
-
%li
|
110
|
-
%a{:href => "/sample4"} Sample4 - How to download a file from GroupDocs Storage using the Storage API
|
111
|
-
%li
|
112
|
-
%a{:href => "/sample5"} Sample5 - How to copy / move a file using the GroupDocs Storage API
|
113
|
-
%li
|
114
|
-
%a{:href => "/sample6"} Sample6 - How to add a Signature to a document in GroupDocs Signature
|
115
|
-
%li
|
116
|
-
%a{:href => "/sample7"} Sample7 - How to create a list of thumbnails for a document
|
117
|
-
%li
|
118
|
-
%a{:href => "/sample8"} Sample8 - How to return a URL representing a single page of a Document
|
119
|
-
%li
|
120
|
-
%a{:href => "/sample9"} Sample9 - How to generate an embedded Viewer URL for a Document
|
121
|
-
%li
|
122
|
-
%a{:href => "/sample10"} Sample10 - How to share a document to other users
|
123
|
-
%li
|
124
|
-
%a{:href => "/sample11"}Sample11 - How programmatically create and post an annotation into document. How to delete the annotation
|
125
|
-
%li
|
126
|
-
%a{:href => "/sample12"}Sample12 - How to list all annotations from document
|
127
|
-
%li
|
128
|
-
%a{:href => "/sample13"}Sample13 - How to add collaborator to doc with annotations
|
129
|
-
%li
|
130
|
-
%a{:href => "/sample14"}Sample14 - How to check the list of shares for a folder
|
131
|
-
%li
|
132
|
-
%a{:href => "/sample15"}Sample15 - How to check the number of document's views
|
133
|
-
%li
|
134
|
-
%a{:href => "/sample16"}Sample16 - How to insert Assembly questionary into webpage
|
135
|
-
%li
|
136
|
-
%a{:href => "/sample17"}Sample17 - How to upload a file into the storage and compress it into zip archive
|
137
|
-
%li
|
138
|
-
%a{:href => "/sample18"}Sample18 - How to convert Doc to Docx, Docx to Doc, Docx to PDF, PPT to PDF
|
139
|
-
%li
|
140
|
-
%a{:href => "/sample19"}Sample19 - How to Compare documents using Ruby SDK
|
141
|
-
%li
|
142
|
-
%a{:href => "/sample20"}Sample20 - How to Get Compare Change list for document using Ruby SDK
|
143
|
-
%li
|
144
|
-
%a{:href => "/sample21"}Sample21 - How to Create and Upload Envelop to GroupDocs account using Ruby SDK
|
145
|
-
%li
|
146
|
-
%a{:href => "/sample22"}Sample22 - How create or update user and add him to collaborators using PHP SDK
|
147
|
-
%li
|
148
|
-
%a{:href => "/envelope-sample"}Envelope sample - How to use envelope and signature API
|
149
|
-
|
150
|
-
%script{:src=>"//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"}
|
109
|
+
%script{:src=>'//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'}
|
151
110
|
:javascript
|
152
|
-
$(document).ready(setTimeout(check, 5000));
|
153
|
-
|
154
111
|
function check() {
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
url: '/sample18/check',
|
160
|
-
success: function (data) {
|
161
|
-
$('#result').html( data );
|
162
|
-
},
|
163
|
-
dataType: "text"
|
164
|
-
});
|
165
|
-
}
|
112
|
+
$.get('/sample18/check', function(data) {
|
113
|
+
$('#results_status').fadeOut("slow");
|
114
|
+
$('#downloadframe').attr("src", "/sample18/downloads/" + data);
|
115
|
+
}, 'text');
|
166
116
|
}
|
167
117
|
|
168
|
-
function
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
var element4 = document.getElementById("urlfield");
|
175
|
-
var element5 = document.getElementById("guid");
|
176
|
-
var element6 = document.getElementById("guidfield");
|
177
|
-
element1.style.display = "none";
|
178
|
-
element2.style.display = "none";
|
179
|
-
element3.style.display = "none";
|
180
|
-
element4.style.display = "none";
|
181
|
-
element5.style.display = "inline";
|
182
|
-
element6.style.display = "inline";
|
183
|
-
|
184
|
-
}
|
185
|
-
|
186
|
-
if (_element_id == "local") {
|
187
|
-
var element1 = document.getElementById("file");
|
188
|
-
var element2 = document.getElementById("filefield");
|
189
|
-
var element3 = document.getElementById("url");
|
190
|
-
var element4 = document.getElementById("urlfield");
|
191
|
-
var element5 = document.getElementById("guid");
|
192
|
-
var element6 = document.getElementById("guidfield");
|
193
|
-
element1.style.display = "inline";
|
194
|
-
element2.style.display = "inline";
|
195
|
-
element3.style.display = "none";
|
196
|
-
element4.style.display = "none";
|
197
|
-
element5.style.display = "none";
|
198
|
-
element6.style.display = "none";
|
199
|
-
}
|
200
|
-
|
201
|
-
if (_element_id == "url") {
|
202
|
-
var element1 = document.getElementById("url");
|
203
|
-
var element2 = document.getElementById("urlfield");
|
204
|
-
var element3 = document.getElementById("file");
|
205
|
-
var element4 = document.getElementById("filefield");
|
206
|
-
var element5 = document.getElementById("guid");
|
207
|
-
var element6 = document.getElementById("guidfield");
|
208
|
-
element1.style.display = "inline";
|
209
|
-
element2.style.display = "inline";
|
210
|
-
element3.style.display = "none";
|
211
|
-
element4.style.display = "none";
|
212
|
-
element5.style.display = "none";
|
213
|
-
element6.style.display = "none";
|
118
|
+
$(function($){
|
119
|
+
callbackUrl = $("input[name=callback]").val();
|
120
|
+
|
121
|
+
if(callbackUrl !== "") {
|
122
|
+
$('#results_status').fadeIn("slow");
|
123
|
+
setTimeout(check, 5000)
|
214
124
|
}
|
215
125
|
|
216
|
-
|
126
|
+
$('.guid_radio input').change(function(){
|
127
|
+
var elementIndex = $(this).parent().children('input').index($(this));
|
128
|
+
$('.guid_field').hide();
|
129
|
+
$('.guid_field').eq(elementIndex).show();
|
130
|
+
});
|
131
|
+
});
|