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
@@ -0,0 +1,57 @@
|
|
1
|
+
%div{:style => 'padding:10px;'}
|
2
|
+
Choose another one sample:
|
3
|
+
%ul
|
4
|
+
%li
|
5
|
+
%a{:href => '/sample1'} Sample1 - How to login to GroupDocs using the API
|
6
|
+
%li
|
7
|
+
%a{:href => '/sample2'} Sample2 - How to list files within GroupDocs Storage using the Storage API
|
8
|
+
%li
|
9
|
+
%a{:href => '/sample3'} Sample3 - How to upload a file to GroupDocs using the Storage API
|
10
|
+
%li
|
11
|
+
%a{:href => '/sample4'} Sample4 - How to download a file from GroupDocs Storage using the Storage API
|
12
|
+
%li
|
13
|
+
%a{:href => '/sample5'} Sample5 - How to copy / move a file using the GroupDocs Storage API
|
14
|
+
%li
|
15
|
+
%a{:href => '/sample6'} Sample6 - How to add a Signature to a document in GroupDocs Signature
|
16
|
+
%li
|
17
|
+
%a{:href => '/sample7'} Sample7 - How to create a list of thumbnails for a document
|
18
|
+
%li
|
19
|
+
%a{:href => '/sample8'} Sample8 - How to return a URL representing a single page of a Document
|
20
|
+
%li
|
21
|
+
%a{:href => '/sample9'} Sample9 - How to generate an embedded Viewer URL for a Document
|
22
|
+
%li
|
23
|
+
%a{:href => '/sample10'} Sample10 - How to share a document to other users
|
24
|
+
%li
|
25
|
+
%a{:href => '/sample11'} Sample11 - How programmatically create and post an annotation into document. How to delete the annotation
|
26
|
+
%li
|
27
|
+
%a{:href => '/sample12'} Sample12 - How to list all annotations from document
|
28
|
+
%li
|
29
|
+
%a{:href => '/sample13'} Sample13 - How to add collaborator to doc with annotations
|
30
|
+
%li
|
31
|
+
%a{:href => '/sample14'} Sample14 - How to check the list of shares for a folder
|
32
|
+
%li
|
33
|
+
%a{:href => '/sample15'} Sample15 - How to check the number of document's views
|
34
|
+
%li
|
35
|
+
%a{:href => '/sample16'} Sample16 - How to insert Assembly questionary into webpage
|
36
|
+
%li
|
37
|
+
%a{:href => '/sample17'} Sample17 - How to upload a file into the storage and compress it into zip archive
|
38
|
+
%li
|
39
|
+
%a{:href => '/sample18'} Sample18 - How to convert Doc to Docx, Docx to Doc, Docx to PDF, PPT to PDF
|
40
|
+
%li
|
41
|
+
%a{:href => '/sample19'} Sample19 - How to Compare documents using Ruby SDK
|
42
|
+
%li
|
43
|
+
%a{:href => '/sample20'} Sample20 - How to Get Compare Change list for document using Ruby SDK
|
44
|
+
%li
|
45
|
+
%a{:href => '/sample21'} Sample21 - How to Create and Upload Envelop to GroupDocs account using Ruby SDK
|
46
|
+
%li
|
47
|
+
%a{:href => '/sample22'} Sample22 - How create or update user and add him to collaborators using Ruby SDK
|
48
|
+
%li
|
49
|
+
%a{:href => '/sample23'} Sample23 - How to View Document pages as images using Ruby SDK
|
50
|
+
%li
|
51
|
+
%a{:href => '/sample24'} Sample24 - How to use StorageApi to upload file from URL to GroupDocs account using Ruby SDK
|
52
|
+
%li
|
53
|
+
%a{:href => '/sample25'} Sample25 - How merge and convert document using Ruby SDK
|
54
|
+
%li
|
55
|
+
%a{:href => '/annotation-sample'} Annotation sample
|
56
|
+
%li
|
57
|
+
%a{:href => '/envelope-sample'} Envelop sample
|
@@ -1,64 +1,64 @@
|
|
1
|
-
%h3{:style =>
|
2
|
-
%a{:href =>
|
3
|
-
\-
|
4
|
-
.samplecontent{:style =>
|
1
|
+
%h3{:style => 'text-align:center;'}
|
2
|
+
%a{:href => '/'} GroupDocs Ruby SDK Samples
|
3
|
+
\- Annotation sample
|
4
|
+
.samplecontent{:style => 'padding:10px;'}
|
5
5
|
%i This sample will show how to use annotation and user API using Ruby SDK
|
6
6
|
%br/
|
7
7
|
%br/
|
8
8
|
%p
|
9
9
|
You entered:
|
10
10
|
%p
|
11
|
-
UserId = #{(defined? client_id) ? client_id :
|
11
|
+
UserId = #{(defined? client_id) ? client_id : ''}
|
12
12
|
%p
|
13
|
-
PrivateKey = #{(defined? private_key) ? private_key :
|
13
|
+
PrivateKey = #{(defined? private_key) ? private_key : ''}
|
14
14
|
%p
|
15
|
-
File name = #{(defined? file_name) ? file_name :
|
15
|
+
File name = #{(defined? file_name) ? file_name : ''}
|
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 => '/annotation-sample', :enctype => 'multipart/form-data', :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 => 'file'} File name with extension (filename.doc)
|
31
31
|
%br/
|
32
|
-
%input{:type =>
|
32
|
+
%input{:type => 'text', :name => 'file_name' }/
|
33
33
|
%br/
|
34
34
|
%br/
|
35
|
-
%input{:type =>
|
36
|
-
%div{:style =>
|
35
|
+
%input{:type => 'submit', :value => 'Submit'}/
|
36
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
37
37
|
%p
|
38
38
|
Results:
|
39
39
|
%br/
|
40
|
-
#{(defined? iframe_url) ? iframe_url :
|
40
|
+
#{(defined? iframe_url) ? iframe_url : ''}
|
41
41
|
|
42
|
-
%div{:style =>
|
42
|
+
%div{:style => 'padding:10px;'}
|
43
43
|
Choose anothe one sample:
|
44
44
|
%ul
|
45
45
|
%li
|
46
|
-
%a{:href =>
|
46
|
+
%a{:href => '/sample1'} Sample1 - How to login to GroupDocs using the API
|
47
47
|
%li
|
48
|
-
%a{:href =>
|
48
|
+
%a{:href => '/sample2'} Sample2 - How to list files within GroupDocs Storage using the Storage API
|
49
49
|
%li
|
50
|
-
%a{:href =>
|
50
|
+
%a{:href => '/sample3'} Sample3 - How to upload a file to GroupDocs using the Storage API
|
51
51
|
%li
|
52
|
-
%a{:href =>
|
52
|
+
%a{:href => '/sample4'} Sample4 - How to download a file from GroupDocs Storage using the Storage API
|
53
53
|
%li
|
54
|
-
%a{:href =>
|
54
|
+
%a{:href => '/sample5'} Sample5 - How to copy / move a file using the GroupDocs Storage API
|
55
55
|
%li
|
56
|
-
%a{:href =>
|
56
|
+
%a{:href => '/sample6'} Sample6 - How to add a Signature to a document in GroupDocs Signature
|
57
57
|
%li
|
58
|
-
%a{:href =>
|
58
|
+
%a{:href => '/sample7'} Sample7 - How to create a list of thumbnails for a document
|
59
59
|
%li
|
60
|
-
%a{:href =>
|
60
|
+
%a{:href => '/sample8'} Sample8 - How to return a URL representing a single page of a Document
|
61
61
|
%li
|
62
|
-
%a{:href =>
|
62
|
+
%a{:href => '/sample9'} Sample9 - How to generate an embedded Viewer URL for a Document
|
63
63
|
%li
|
64
|
-
%a{:href =>
|
64
|
+
%a{:href => '/sample10'} Sample10 - How to share a document to other users
|
@@ -1,73 +1,73 @@
|
|
1
|
-
%h3{:style =>
|
2
|
-
%a{:href =>
|
1
|
+
%h3{:style => 'text-align:center;'}
|
2
|
+
%a{:href => '/'} GroupDocs Ruby SDK Samples
|
3
3
|
\- Envelope sample
|
4
|
-
.samplecontent{:style =>
|
4
|
+
.samplecontent{:style => 'padding:10px;'}
|
5
5
|
%i This sample will show how to use envelope and signature API using Ruby SDK
|
6
6
|
%br/
|
7
7
|
%i This sample create fields for signing automatically from pdf document, you can find example of such document
|
8
|
-
%a{:href =>
|
8
|
+
%a{:href => 'https://github.com/groupdocs/groupdocs-ruby/blob/master/examples/api-samples/public/GroupDocs_Signature_Demo.pdf?raw=true'} here
|
9
9
|
%br/
|
10
10
|
%br/
|
11
11
|
%i To check callback click
|
12
|
-
%a{:href =>
|
12
|
+
%a{:href => '/envelope-sample/check'} here
|
13
13
|
%br/
|
14
14
|
%br/
|
15
15
|
%i You can find documentation for this sample
|
16
|
-
%a{:href =>
|
16
|
+
%a{:href => '/docs/envelope-sample.html'} here
|
17
17
|
%br/
|
18
18
|
%br/
|
19
19
|
%p
|
20
20
|
You entered:
|
21
21
|
%p
|
22
|
-
UserId = #{(defined? client_id) ? client_id :
|
22
|
+
UserId = #{(defined? client_id) ? client_id : ''}
|
23
23
|
%p
|
24
|
-
PrivateKey = #{(defined? private_key) ? private_key :
|
24
|
+
PrivateKey = #{(defined? private_key) ? private_key : ''}
|
25
25
|
%p
|
26
|
-
%font{:color =>
|
26
|
+
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
27
27
|
%br/
|
28
|
-
#requestForm{:style =>
|
28
|
+
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
29
29
|
%p Enter data for request and press "Make request" button
|
30
|
-
%form{:action =>
|
31
|
-
%label{:for =>
|
30
|
+
%form{:action => '/envelope-sample', :enctype => 'multipart/form-data', :method => 'post'}
|
31
|
+
%label{:for => 'client_id'} GroupDocs ClientID
|
32
32
|
%br/
|
33
|
-
%input{:type=>
|
33
|
+
%input{:type=>'text', :name=>'client_id'}
|
34
34
|
%br/
|
35
|
-
%label{:for =>
|
35
|
+
%label{:for => 'private_key'} GroupDocs PrivateKey
|
36
36
|
%br/
|
37
|
-
%input{:type=>
|
37
|
+
%input{:type=>'text', :name=>'private_key'}
|
38
38
|
%br/
|
39
|
-
%label{:for =>
|
39
|
+
%label{:for => 'file'} File
|
40
40
|
%br/
|
41
|
-
%input{:name =>
|
41
|
+
%input{:name => 'file', :type => 'file'}/
|
42
42
|
%br/
|
43
43
|
%br/
|
44
|
-
%input{:type =>
|
45
|
-
%div{:style =>
|
44
|
+
%input{:type => 'submit', :value => 'Upload'}/
|
45
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
46
46
|
%p
|
47
47
|
Results:
|
48
|
-
#{(defined? iframe) ? iframe :
|
48
|
+
#{(defined? iframe) ? iframe : ''}
|
49
49
|
|
50
50
|
|
51
|
-
%div{:style =>
|
51
|
+
%div{:style => 'padding:10px;'}
|
52
52
|
Choose anothe one sample:
|
53
53
|
%ul
|
54
54
|
%li
|
55
|
-
%a{:href =>
|
55
|
+
%a{:href => '/sample1'} Sample1 - How to login to GroupDocs using the API
|
56
56
|
%li
|
57
|
-
%a{:href =>
|
57
|
+
%a{:href => '/sample2'} Sample2 - How to list files within GroupDocs Storage using the Storage API
|
58
58
|
%li
|
59
|
-
%a{:href =>
|
59
|
+
%a{:href => '/sample3'} Sample3 - How to upload a file to GroupDocs using the Storage API
|
60
60
|
%li
|
61
|
-
%a{:href =>
|
61
|
+
%a{:href => '/sample4'} Sample4 - How to download a file from GroupDocs Storage using the Storage API
|
62
62
|
%li
|
63
|
-
%a{:href =>
|
63
|
+
%a{:href => '/sample5'} Sample5 - How to copy / move a file using the GroupDocs Storage API
|
64
64
|
%li
|
65
|
-
%a{:href =>
|
65
|
+
%a{:href => '/sample6'} Sample6 - How to add a Signature to a document in GroupDocs Signature
|
66
66
|
%li
|
67
|
-
%a{:href =>
|
67
|
+
%a{:href => '/sample7'} Sample7 - How to create a list of thumbnails for a document
|
68
68
|
%li
|
69
|
-
%a{:href =>
|
69
|
+
%a{:href => '/sample8'} Sample8 - How to return a URL representing a single page of a Document
|
70
70
|
%li
|
71
|
-
%a{:href =>
|
71
|
+
%a{:href => '/sample9'} Sample9 - How to generate an embedded Viewer URL for a Document
|
72
72
|
%li
|
73
|
-
%a{:href =>
|
73
|
+
%a{:href => '/sample10'} Sample10 - How to share a document to other users
|
@@ -1,49 +1,57 @@
|
|
1
|
-
%h1{:style =>
|
2
|
-
%div{:style =>
|
1
|
+
%h1{:style => 'text-align:center;'} GroupDocs Ruby SDK Samples
|
2
|
+
%div{:style => 'padding:10px;'}
|
3
3
|
%ul
|
4
4
|
%li
|
5
|
-
%a{:href =>
|
5
|
+
%a{:href => '/sample1'} Sample1 - How to login to GroupDocs using the API
|
6
6
|
%li
|
7
|
-
%a{:href =>
|
7
|
+
%a{:href => '/sample2'} Sample2 - How to list files within GroupDocs Storage using the Storage API
|
8
8
|
%li
|
9
|
-
%a{:href =>
|
9
|
+
%a{:href => '/sample3'} Sample3 - How to upload a file to GroupDocs using the Storage API
|
10
10
|
%li
|
11
|
-
%a{:href =>
|
11
|
+
%a{:href => '/sample4'} Sample4 - How to download a file from GroupDocs Storage using the Storage API
|
12
12
|
%li
|
13
|
-
%a{:href =>
|
13
|
+
%a{:href => '/sample5'} Sample5 - How to copy / move a file using the GroupDocs Storage API
|
14
14
|
%li
|
15
|
-
%a{:href =>
|
15
|
+
%a{:href => '/sample6'} Sample6 - How to add a Signature to a document in GroupDocs Signature
|
16
16
|
%li
|
17
|
-
%a{:href =>
|
17
|
+
%a{:href => '/sample7'} Sample7 - How to create a list of thumbnails for a document
|
18
18
|
%li
|
19
|
-
%a{:href =>
|
19
|
+
%a{:href => '/sample8'} Sample8 - How to return a URL representing a single page of a Document
|
20
20
|
%li
|
21
|
-
%a{:href =>
|
21
|
+
%a{:href => '/sample9'} Sample9 - How to generate an embedded Viewer URL for a Document
|
22
22
|
%li
|
23
|
-
%a{:href =>
|
23
|
+
%a{:href => '/sample10'} Sample10 - How to share a document to other users
|
24
24
|
%li
|
25
|
-
%a{:href =>
|
25
|
+
%a{:href => '/sample11'} Sample11 - How programmatically create and post an annotation into document. How to delete the annotation
|
26
26
|
%li
|
27
|
-
%a{:href =>
|
27
|
+
%a{:href => '/sample12'} Sample12 - How to list all annotations from document
|
28
28
|
%li
|
29
|
-
%a{:href =>
|
29
|
+
%a{:href => '/sample13'} Sample13 - How to add collaborator to doc with annotations
|
30
30
|
%li
|
31
|
-
%a{:href =>
|
31
|
+
%a{:href => '/sample14'} Sample14 - How to check the list of shares for a folder
|
32
32
|
%li
|
33
|
-
%a{:href =>
|
33
|
+
%a{:href => '/sample15'} Sample15 - How to check the number of document's views
|
34
34
|
%li
|
35
|
-
%a{:href =>
|
35
|
+
%a{:href => '/sample16'} Sample16 - How to insert Assembly questionary into webpage
|
36
36
|
%li
|
37
|
-
%a{:href =>
|
37
|
+
%a{:href => '/sample17'} Sample17 - How to upload a file into the storage and compress it into zip archive
|
38
38
|
%li
|
39
|
-
%a{:href =>
|
39
|
+
%a{:href => '/sample18'} Sample18 - How to convert Doc to Docx, Docx to Doc, Docx to PDF, PPT to PDF
|
40
40
|
%li
|
41
|
-
%a{:href =>
|
41
|
+
%a{:href => '/sample19'} Sample19 - How to Compare documents using Ruby SDK
|
42
42
|
%li
|
43
|
-
%a{:href =>
|
43
|
+
%a{:href => '/sample20'} Sample20 - How to Get Compare Change list for document using Ruby SDK
|
44
44
|
%li
|
45
|
-
%a{:href =>
|
45
|
+
%a{:href => '/sample21'} Sample21 - How to Create and Upload Envelop to GroupDocs account using Ruby SDK
|
46
46
|
%li
|
47
|
-
%a{:href =>
|
47
|
+
%a{:href => '/sample22'} Sample22 - How create or update user and add him to collaborators using Ruby SDK
|
48
48
|
%li
|
49
|
-
%a{:href =>
|
49
|
+
%a{:href => '/sample23'} Sample23 - How to View Document pages as images using Ruby SDK
|
50
|
+
%li
|
51
|
+
%a{:href => '/sample24'} Sample24 - How to use StorageApi to upload file from URL to GroupDocs account using Ruby SDK
|
52
|
+
%li
|
53
|
+
%a{:href => '/sample25'} Sample25 - How merge and convert document using Ruby SDK
|
54
|
+
%li
|
55
|
+
%a{:href => '/annotation-sample'} Annotation sample
|
56
|
+
%li
|
57
|
+
%a{:href => '/envelope-sample'} Envelop sample
|
@@ -1,100 +1,53 @@
|
|
1
|
-
%h3{:style =>
|
2
|
-
%a{:href =>
|
1
|
+
%h3{:style => 'text-align:center;'}
|
2
|
+
%a{:href => '/'}GroupDocs Ruby SDK Samples
|
3
3
|
\- Sample1
|
4
4
|
|
5
|
-
.samplecontent{:style =>
|
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
|
%i You can find documentation for this sample
|
9
|
-
%a{:href =>
|
9
|
+
%a{:href => '/docs/sample1.html'} here
|
10
10
|
%br/
|
11
11
|
%br/
|
12
12
|
%p
|
13
13
|
You entered:
|
14
14
|
%p
|
15
|
-
UserId = #{(defined? userId) ? userId :
|
15
|
+
UserId = #{(defined? userId) ? userId : ''}
|
16
16
|
%p
|
17
|
-
PrivateKey = #{(defined? privateKey) ? privateKey :
|
17
|
+
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
18
18
|
%p
|
19
|
-
%font{:color =>
|
19
|
+
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
20
20
|
|
21
|
-
%div{:style =>
|
21
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
22
22
|
%p Results:
|
23
|
-
%table{:style =>
|
23
|
+
%table{:style => 'border:1px double black;'}
|
24
24
|
%tr
|
25
25
|
%th Field
|
26
26
|
%th Value
|
27
27
|
%tr
|
28
28
|
%td First Name
|
29
|
-
%td #{(defined? user.first_name) ? user.first_name :
|
29
|
+
%td #{(defined? user.first_name) ? user.first_name : ''}
|
30
30
|
%tr
|
31
31
|
%td Last Name
|
32
|
-
%td #{(defined? user.last_name) ? user.last_name :
|
32
|
+
%td #{(defined? user.last_name) ? user.last_name : ''}
|
33
33
|
%tr
|
34
34
|
%td Nick Name
|
35
|
-
%td #{(defined? user.nickname) ? user.nickname :
|
35
|
+
%td #{(defined? user.nickname) ? user.nickname : ''}
|
36
36
|
%tr
|
37
37
|
%td Primary Email
|
38
|
-
%td #{(defined? user.primary_email) ? user.primary_email :
|
38
|
+
%td #{(defined? user.primary_email) ? user.primary_email : ''}
|
39
39
|
%br/
|
40
|
-
#requestForm{:style =>
|
40
|
+
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
41
41
|
%p Enter data for request and press "Make request" button
|
42
|
-
%form{:action =>
|
43
|
-
%label{:for =>
|
42
|
+
%form{:action => '/sample1', :enctype => 'multipart/form-data', :method => 'post'}
|
43
|
+
%label{:for => 'client_id'} GroupDocs Client ID
|
44
44
|
%br/
|
45
|
-
%input{:type=>
|
45
|
+
%input{:type=>'text', :name=>'client_id'}
|
46
46
|
%br/
|
47
|
-
%label{:for =>
|
47
|
+
%label{:for => 'private_key'} GroupDocs Private Key
|
48
48
|
%br/
|
49
|
-
%input{:type=>
|
49
|
+
%input{:type=>'text', :name=>'private_key'}
|
50
50
|
%br/
|
51
|
-
%input{:type =>
|
52
|
-
|
53
|
-
|
54
|
-
%ul
|
55
|
-
%li
|
56
|
-
%a{:href => "/sample1"} Sample1 - How to login to GroupDocs using the API
|
57
|
-
%li
|
58
|
-
%a{:href => "/sample2"} Sample2 - How to list files within GroupDocs Storage using the Storage API
|
59
|
-
%li
|
60
|
-
%a{:href => "/sample3"} Sample3 - How to upload a file to GroupDocs using the Storage API
|
61
|
-
%li
|
62
|
-
%a{:href => "/sample4"} Sample4 - How to download a file from GroupDocs Storage using the Storage API
|
63
|
-
%li
|
64
|
-
%a{:href => "/sample5"} Sample5 - How to copy / move a file using the GroupDocs Storage API
|
65
|
-
%li
|
66
|
-
%a{:href => "/sample6"} Sample6 - How to add a Signature to a document in GroupDocs Signature
|
67
|
-
%li
|
68
|
-
%a{:href => "/sample7"} Sample7 - How to create a list of thumbnails for a document
|
69
|
-
%li
|
70
|
-
%a{:href => "/sample8"} Sample8 - How to return a URL representing a single page of a Document
|
71
|
-
%li
|
72
|
-
%a{:href => "/sample9"} Sample9 - How to generate an embedded Viewer URL for a Document
|
73
|
-
%li
|
74
|
-
%a{:href => "/sample10"} Sample10 - How to share a document to other users
|
75
|
-
%li
|
76
|
-
%a{:href => "/sample11"}Sample11 - How programmatically create and post an annotation into document. How to delete the annotation
|
77
|
-
%li
|
78
|
-
%a{:href => "/sample12"}Sample12 - How to list all annotations from document
|
79
|
-
%li
|
80
|
-
%a{:href => "/sample13"}Sample13 - How to add collaborator to doc with annotations
|
81
|
-
%li
|
82
|
-
%a{:href => "/sample14"}Sample14 - How to check the list of shares for a folder
|
83
|
-
%li
|
84
|
-
%a{:href => "/sample15"}Sample15 - How to check the number of document's views
|
85
|
-
%li
|
86
|
-
%a{:href => "/sample16"}Sample16 - How to insert Assembly questionary into webpage
|
87
|
-
%li
|
88
|
-
%a{:href => "/sample17"}Sample17 - How to upload a file into the storage and compress it into zip archive
|
89
|
-
%li
|
90
|
-
%a{:href => "/sample18"}Sample18 - How to convert Doc to Docx, Docx to Doc, Docx to PDF, PPT to PDF
|
91
|
-
%li
|
92
|
-
%a{:href => "/sample19"}Sample19 - How to Compare documents using Ruby SDK
|
93
|
-
%li
|
94
|
-
%a{:href => "/sample20"}Sample20 - How to Get Compare Change list for document using Ruby SDK
|
95
|
-
%li
|
96
|
-
%a{:href => "/sample21"}Sample21 - How to Create and Upload Envelop to GroupDocs account using Ruby SDK
|
97
|
-
%li
|
98
|
-
%a{:href => "/sample22"}Sample22 - How create or update user and add him to collaborators using PHP SDK
|
99
|
-
%li
|
100
|
-
%a{:href => "/envelope-sample"}Envelope sample - How to use envelope and signature API
|
51
|
+
%input{:type => 'submit', :value => 'Make Request'}
|
52
|
+
|
53
|
+
= partial :_others_samples
|