groupdocs 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. data/CHANGELOG.md +6 -0
  2. data/examples/api-samples/README.md +1 -1
  3. data/examples/api-samples/public/css/style.css +2 -2
  4. data/examples/api-samples/public/docs/annotation-sample.html +57 -0
  5. data/examples/api-samples/public/docs/envelope-sample.html +32 -32
  6. data/examples/api-samples/public/docs/sample1.html +3 -3
  7. data/examples/api-samples/public/docs/sample10.html +25 -24
  8. data/examples/api-samples/public/docs/sample11.html +17 -17
  9. data/examples/api-samples/public/docs/sample12.html +4 -4
  10. data/examples/api-samples/public/docs/sample13.html +5 -5
  11. data/examples/api-samples/public/docs/sample14.html +5 -5
  12. data/examples/api-samples/public/docs/sample15.html +4 -4
  13. data/examples/api-samples/public/docs/sample16.html +3 -3
  14. data/examples/api-samples/public/docs/sample17.html +3 -3
  15. data/examples/api-samples/public/docs/sample18.html +129 -34
  16. data/examples/api-samples/public/docs/sample19.html +59 -0
  17. data/examples/api-samples/public/docs/sample2.html +5 -5
  18. data/examples/api-samples/public/docs/sample20.html +51 -0
  19. data/examples/api-samples/public/docs/sample21.html +66 -0
  20. data/examples/api-samples/public/docs/sample22.html +53 -0
  21. data/examples/api-samples/public/docs/sample3.html +4 -4
  22. data/examples/api-samples/public/docs/sample4.html +27 -16
  23. data/examples/api-samples/public/docs/sample5.html +29 -22
  24. data/examples/api-samples/public/docs/sample6.html +6 -6
  25. data/examples/api-samples/public/docs/sample7.html +8 -8
  26. data/examples/api-samples/public/docs/sample8.html +31 -23
  27. data/examples/api-samples/public/docs/sample9.html +26 -8
  28. data/examples/api-samples/public/templates/merge_feid_doc.docx +0 -0
  29. data/examples/api-samples/samples/annotation-sample.rb +22 -16
  30. data/examples/api-samples/samples/envelope-sample.rb +26 -25
  31. data/examples/api-samples/samples/sample1.rb +2 -2
  32. data/examples/api-samples/samples/sample10.rb +21 -20
  33. data/examples/api-samples/samples/sample11.rb +18 -18
  34. data/examples/api-samples/samples/sample12.rb +3 -3
  35. data/examples/api-samples/samples/sample13.rb +4 -4
  36. data/examples/api-samples/samples/sample14.rb +4 -4
  37. data/examples/api-samples/samples/sample15.rb +3 -3
  38. data/examples/api-samples/samples/sample16.rb +2 -2
  39. data/examples/api-samples/samples/sample17.rb +2 -2
  40. data/examples/api-samples/samples/sample18.rb +90 -106
  41. data/examples/api-samples/samples/sample19.rb +5 -5
  42. data/examples/api-samples/samples/sample2.rb +4 -4
  43. data/examples/api-samples/samples/sample20.rb +4 -4
  44. data/examples/api-samples/samples/sample21.rb +4 -4
  45. data/examples/api-samples/samples/sample22.rb +2 -2
  46. data/examples/api-samples/samples/sample23.rb +0 -0
  47. data/examples/api-samples/samples/sample24.rb +0 -0
  48. data/examples/api-samples/samples/sample25.rb +96 -0
  49. data/examples/api-samples/samples/sample3.rb +3 -3
  50. data/examples/api-samples/samples/sample4.rb +23 -12
  51. data/examples/api-samples/samples/sample5.rb +23 -16
  52. data/examples/api-samples/samples/sample6.rb +8 -8
  53. data/examples/api-samples/samples/sample7.rb +7 -7
  54. data/examples/api-samples/samples/sample8.rb +29 -21
  55. data/examples/api-samples/samples/sample9.rb +23 -5
  56. data/examples/api-samples/views/_others_samples.haml +57 -0
  57. data/examples/api-samples/views/annotation_sample.haml +30 -30
  58. data/examples/api-samples/views/envelope_sample.haml +31 -31
  59. data/examples/api-samples/views/index.haml +33 -25
  60. data/examples/api-samples/views/sample1.haml +22 -69
  61. data/examples/api-samples/views/sample10.haml +57 -73
  62. data/examples/api-samples/views/sample11.haml +31 -79
  63. data/examples/api-samples/views/sample12.haml +18 -66
  64. data/examples/api-samples/views/sample13.haml +21 -70
  65. data/examples/api-samples/views/sample14.haml +18 -67
  66. data/examples/api-samples/views/sample15.haml +15 -63
  67. data/examples/api-samples/views/sample16.haml +13 -61
  68. data/examples/api-samples/views/sample17.haml +19 -67
  69. data/examples/api-samples/views/sample18.haml +74 -159
  70. data/examples/api-samples/views/sample19.haml +25 -74
  71. data/examples/api-samples/views/sample2.haml +19 -66
  72. data/examples/api-samples/views/sample20.haml +19 -68
  73. data/examples/api-samples/views/sample21.haml +28 -76
  74. data/examples/api-samples/views/sample22.haml +29 -77
  75. data/examples/api-samples/views/sample23.haml +0 -0
  76. data/examples/api-samples/views/sample24.haml +0 -0
  77. data/examples/api-samples/views/sample25.haml +91 -0
  78. data/examples/api-samples/views/sample3.haml +20 -68
  79. data/examples/api-samples/views/sample4.haml +53 -68
  80. data/examples/api-samples/views/sample5.haml +54 -70
  81. data/examples/api-samples/views/sample6.haml +21 -69
  82. data/examples/api-samples/views/sample7.haml +19 -66
  83. data/examples/api-samples/views/sample8.haml +60 -75
  84. data/examples/api-samples/views/sample9.haml +54 -70
  85. data/examples/api-samples/web.rb +20 -0
  86. data/lib/groupdocs/api/request.rb +4 -2
  87. data/lib/groupdocs/version.rb +1 -1
  88. data/spec/groupdocs/api/request_spec.rb +10 -2
  89. metadata +18 -5
  90. data/examples/api-samples/app.rb +0 -15
@@ -1,91 +1,75 @@
1
- %h3{:style => "text-align:center;"}
2
- %a{:href => "/"} GroupDocs Ruby SDK Samples
1
+ %h3{:style => 'text-align:center;'}
2
+ %a{:href => '/'} GroupDocs Ruby SDK Samples
3
3
  \- Sample5
4
- .samplecontent{:style => "padding:10px;"}
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
  %i You can find documentation for this sample
8
- %a{:href => "/docs/sample5.html"} here
8
+ %a{:href => '/docs/sample5.html'} here
9
9
  %br/
10
10
  %br/
11
11
  %p
12
12
  You entered:
13
13
  %p
14
- UserId = #{(defined? userId) ? userId : ""}
14
+ UserId = #{(defined? userId) ? userId : ''}
15
15
  %p
16
- PrivateKey = #{(defined? privateKey) ? privateKey : ""}
16
+ PrivateKey = #{(defined? privateKey) ? privateKey : ''}
17
17
  %p
18
- %font{:color => "red"} #{(defined? err) ? err : ""}
19
- #requestForm{:style => "padding:20px; border:1px solid black;"}
18
+ %font{:color => 'red'} #{(defined? err) ? err : ''}
19
+ #requestForm{:style => 'padding:20px; border:1px solid black;'}
20
20
  %p Enter data for request and press "Copy" button
21
- %form{:action => "/sample5", :enctype => "multipart/form-data", :method => "post"}
22
- %label{:for => "client_id"} GroupDocs ClientID
21
+ %form{:action => '/sample5', :enctype => 'multipart/form-data', :method => 'post'}
22
+ %label{:for => 'client_id'} GroupDocs ClientID
23
23
  %br/
24
- %input{:type=>"text", :name=>"client_id"}
24
+ %input{:type=>'text', :name=>'client_id'}
25
25
  %br/
26
- %label{:for => "private_key"} GroupDocs PrivateKey
26
+ %label{:for => 'private_key'} GroupDocs PrivateKey
27
27
  %br/
28
- %input{:type=>"text", :name=>"private_key"}
28
+ %input{:type=>'text', :name=>'private_key'}
29
29
  %br/
30
- %label{:for => "private_key"} FileID
30
+ %div.guid_radio
31
+ %input{:type=>'radio', :name=>'source', :value=>'guid', :checked=>'checked'} File ID (GUID)
32
+ %br/
33
+ %input{:type=>'radio', :name=>'source', :value=>'local'}Upload local file
34
+ %br/
35
+ %input{:type=>'radio', :name=>'source', :value=>'url'} Upload file from URL
36
+ %br/
37
+
38
+ %div.guid_field
39
+ %label{:for=>'fileId', :id=>'guid'} File ID (GUID)
40
+ %br/
41
+ %input{:type=>'text', :name=>'fileId'}
42
+
43
+ %div.guid_field{:style=>'display:none;'}
44
+ %label{:for=>'file'} Upload local file
45
+ %br/
46
+ %input{:type=>'file', :name=>'file'}
47
+
48
+ %div.guid_field{:style=>'display:none;'}
49
+ %label{:for=>'url', :id=>'url'} Upload file from URL
50
+ %br/
51
+ %input{:type=>'text', :name=>'url'}
52
+
31
53
  %br/
32
- %input{:type=>"text", :name=>"file_id"}
54
+ %label{:for => 'private_key'} Destination folder name in which you want to copy/move file
33
55
  %br/
34
- %label{:for => "private_key"} Destination folder name in which you want to copy/move file
56
+ %input{:type=>'text', :name=>'dest_path'}
35
57
  %br/
36
- %input{:type=>"text", :name=>"dest_path"}
37
- %br/
38
- %input{:name => "copy", :type => "submit", :value => "Copy"}/
39
- %input{:name => "move", :type => "submit", :value => "Move"}/
58
+ %input{:name => 'copy', :type => 'submit', :value => 'Copy'}/
59
+ %input{:name => 'move', :type => 'submit', :value => 'Move'}/
40
60
  %h4
41
- %font{:color => "green"} #{(defined? massage) ? massage : ""}
61
+ %font{:color => 'green'} #{(defined? massage) ? massage : ''}
42
62
  %br/
43
- %div{:style => "padding:10px;"}
44
- Choose another one sample:
45
- %ul
46
- %li
47
- %a{:href => "/sample1"} Sample1 - How to login to GroupDocs using the API
48
- %li
49
- %a{:href => "/sample2"} Sample2 - How to list files within GroupDocs Storage using the Storage API
50
- %li
51
- %a{:href => "/sample3"} Sample3 - How to upload a file to GroupDocs using the Storage API
52
- %li
53
- %a{:href => "/sample4"} Sample4 - How to download a file from GroupDocs Storage using the Storage API
54
- %li
55
- %a{:href => "/sample5"} Sample5 - How to copy / move a file using the GroupDocs Storage API
56
- %li
57
- %a{:href => "/sample6"} Sample6 - How to add a Signature to a document in GroupDocs Signature
58
- %li
59
- %a{:href => "/sample7"} Sample7 - How to create a list of thumbnails for a document
60
- %li
61
- %a{:href => "/sample8"} Sample8 - How to return a URL representing a single page of a Document
62
- %li
63
- %a{:href => "/sample9"} Sample9 - How to generate an embedded Viewer URL for a Document
64
- %li
65
- %a{:href => "/sample10"} Sample10 - How to share a document to other users
66
- %li
67
- %a{:href => "/sample11"}Sample11 - How programmatically create and post an annotation into document. How to delete the annotation
68
- %li
69
- %a{:href => "/sample12"}Sample12 - How to list all annotations from document
70
- %li
71
- %a{:href => "/sample13"}Sample13 - How to add collaborator to doc with annotations
72
- %li
73
- %a{:href => "/sample14"}Sample14 - How to check the list of shares for a folder
74
- %li
75
- %a{:href => "/sample15"}Sample15 - How to check the number of document's views
76
- %li
77
- %a{:href => "/sample16"}Sample16 - How to insert Assembly questionary into webpage
78
- %li
79
- %a{:href => "/sample17"}Sample17 - How to upload a file into the storage and compress it into zip archive
80
- %li
81
- %a{:href => "/sample18"}Sample18 - How to convert Doc to Docx, Docx to Doc, Docx to PDF, PPT to PDF
82
- %li
83
- %a{:href => "/sample19"}Sample19 - How to Compare documents using Ruby SDK
84
- %li
85
- %a{:href => "/sample20"}Sample20 - How to Get Compare Change list for document using Ruby SDK
86
- %li
87
- %a{:href => "/sample21"}Sample21 - How to Create and Upload Envelop to GroupDocs account using Ruby SDK
88
- %li
89
- %a{:href => "/sample22"}Sample22 - How create or update user and add him to collaborators using PHP SDK
90
- %li
91
- %a{:href => "/envelope-sample"}Envelope sample - How to use envelope and signature API
63
+
64
+ = partial :_others_samples
65
+
66
+ %script{:src=>'//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'}
67
+ :javascript
68
+
69
+ $(function($){
70
+ $('.guid_radio input').change(function(){
71
+ var elementIndex = $(this).parent().children('input').index($(this));
72
+ $('.guid_field').hide();
73
+ $('.guid_field').eq(elementIndex).show();
74
+ });
75
+ });
@@ -1,96 +1,48 @@
1
- %h3{:style => "text-align:center;"}
2
- %a{:href => "/"} GroupDocs Ruby SDK Samples
1
+ %h3{:style => 'text-align:center;'}
2
+ %a{:href => '/'} GroupDocs Ruby SDK Samples
3
3
  \- Sample6
4
- .samplecontent{:style => "padding:10px;"}
4
+ .samplecontent{:style => 'padding:10px;'}
5
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
6
  %br/
7
7
  %i You can find documentation for this sample
8
- %a{:href => "/docs/sample6.html"} here
8
+ %a{:href => '/docs/sample6.html'} here
9
9
  %br/
10
10
  %br/
11
11
  %p
12
12
  You entered:
13
13
  %p
14
- UserId = #{(defined? userId) ? userId : ""}
14
+ UserId = #{(defined? userId) ? userId : ''}
15
15
  %p
16
- PrivateKey = #{(defined? privateKey) ? privateKey : ""}
16
+ PrivateKey = #{(defined? privateKey) ? privateKey : ''}
17
17
  %p
18
- %font{:color => "red"} #{(defined? err) ? err : ""}
18
+ %font{:color => 'red'} #{(defined? err) ? err : ''}
19
19
  #files_form
20
- %form{:action => "/sample6", :enctype => "multipart/form-data", :method => "post"}
20
+ %form{:action => '/sample6', :enctype => 'multipart/form-data', :method => 'post'}
21
21
  %br/
22
- %label{:for => "client_id"} GroupDocs ClientID
22
+ %label{:for => 'client_id'} GroupDocs ClientID
23
23
  %br/
24
- %input{:type=>'text', :id=>'client_id', :name => "client_id"}
24
+ %input{:type=>'text', :id=>'client_id', :name => 'client_id'}
25
25
  %br/
26
- %label{:for => "private_key"} GroupDocs PrivateKey
26
+ %label{:for => 'private_key'} GroupDocs PrivateKey
27
27
  %br/
28
- %input{:type=>'text', :id=>'private_key', :name => "private_key"}
28
+ %input{:type=>'text', :id=>'private_key', :name => 'private_key'}
29
29
  %br/
30
- %label{:for => "file_document"} Document to sign
30
+ %label{:for => 'file_document'} Document to sign
31
31
  %br/
32
- %input#fi_document{:type => "file", :name => "document"}/
32
+ %input#fi_document{:type => 'file', :name => 'document'}/
33
33
  %br/
34
- %label{:for => "file_signature"} Signature
34
+ %label{:for => 'file_signature'} Signature
35
35
  %br/
36
- %input#fi_signature{:type => "file", :name => "signature"}/
36
+ %input#fi_signature{:type => 'file', :name => 'signature'}/
37
37
  %br/
38
38
  %br/
39
- %input{:type => "submit", :value => "Upload and sign the document"}/
39
+ %input{:type => 'submit', :value => 'Upload and sign the document'}/
40
40
  %br/
41
41
  %br/
42
- %div{:style => "padding:20px; border:1px solid black;"}
42
+ %div{:style => 'padding:20px; border:1px solid black;'}
43
43
  %p
44
44
  Results:
45
- %span#results_status{:style => "color:red;display:none;"} (Please wait for ajax response)
46
- #{(defined? iframe) ? iframe : ""}
45
+ %span#results_status{:style => 'color:red;display:none;'} (Please wait for ajax response)
46
+ #{(defined? iframe) ? iframe : ''}
47
47
 
48
- %div{:style => "padding:10px;"}
49
- Choose another one sample:
50
- %ul
51
- %li
52
- %a{:href => "/sample1"} Sample1 - How to login to GroupDocs using the API
53
- %li
54
- %a{:href => "/sample2"} Sample2 - How to list files within GroupDocs Storage using the Storage API
55
- %li
56
- %a{:href => "/sample3"} Sample3 - How to upload a file to GroupDocs using the Storage API
57
- %li
58
- %a{:href => "/sample4"} Sample4 - How to download a file from GroupDocs Storage using the Storage API
59
- %li
60
- %a{:href => "/sample5"} Sample5 - How to copy / move a file using the GroupDocs Storage API
61
- %li
62
- %a{:href => "/sample6"} Sample6 - How to add a Signature to a document in GroupDocs Signature
63
- %li
64
- %a{:href => "/sample7"} Sample7 - How to create a list of thumbnails for a document
65
- %li
66
- %a{:href => "/sample8"} Sample8 - How to return a URL representing a single page of a Document
67
- %li
68
- %a{:href => "/sample9"} Sample9 - How to generate an embedded Viewer URL for a Document
69
- %li
70
- %a{:href => "/sample10"} Sample10 - How to share a document to other users
71
- %li
72
- %a{:href => "/sample11"}Sample11 - How programmatically create and post an annotation into document. How to delete the annotation
73
- %li
74
- %a{:href => "/sample12"}Sample12 - How to list all annotations from document
75
- %li
76
- %a{:href => "/sample13"}Sample13 - How to add collaborator to doc with annotations
77
- %li
78
- %a{:href => "/sample14"}Sample14 - How to check the list of shares for a folder
79
- %li
80
- %a{:href => "/sample15"}Sample15 - How to check the number of document's views
81
- %li
82
- %a{:href => "/sample16"}Sample16 - How to insert Assembly questionary into webpage
83
- %li
84
- %a{:href => "/sample17"}Sample17 - How to upload a file into the storage and compress it into zip archive
85
- %li
86
- %a{:href => "/sample18"}Sample18 - How to convert Doc to Docx, Docx to Doc, Docx to PDF, PPT to PDF
87
- %li
88
- %a{:href => "/sample19"}Sample19 - How to Compare documents using Ruby SDK
89
- %li
90
- %a{:href => "/sample20"}Sample20 - How to Get Compare Change list for document using Ruby SDK
91
- %li
92
- %a{:href => "/sample21"}Sample21 - How to Create and Upload Envelop to GroupDocs account using Ruby SDK
93
- %li
94
- %a{:href => "/sample22"}Sample22 - How create or update user and add him to collaborators using PHP SDK
95
- %li
96
- %a{:href => "/envelope-sample"}Envelope sample - How to use envelope and signature API
48
+ = partial :_others_samples
@@ -1,88 +1,41 @@
1
- %h3{:style => "text-align:center;"}
2
- %a{:href => "/"} GroupDocs Ruby SDK Samples
1
+ %h3{:style => 'text-align:center;'}
2
+ %a{:href => '/'} GroupDocs Ruby SDK Samples
3
3
  \- Sample7
4
- .samplecontent{:style => "padding:10px;"}
4
+ .samplecontent{:style => 'padding:10px;'}
5
5
  %i This sample will show how to list thumbnails for documents in the GroupDocs account using Ruby SDK
6
6
  %br/
7
7
  %i You can find documentation for this sample
8
- %a{:href => "/docs/sample7.html"} here
8
+ %a{:href => '/docs/sample7.html'} here
9
9
  %br/
10
10
  %br/
11
11
  %p
12
12
  You entered:
13
13
  %p
14
- UserId = #{(defined? userId) ? userId : ""}
14
+ UserId = #{(defined? userId) ? userId : ''}
15
15
  %p
16
- PrivateKey = #{(defined? privateKey) ? privateKey : ""}
16
+ PrivateKey = #{(defined? privateKey) ? privateKey : ''}
17
17
  %p
18
- %font{:color => "red"} #{(defined? err) ? err : ""}
19
- #requestForm{:style => "padding:20px; border:1px solid black;"}
18
+ %font{:color => 'red'} #{(defined? err) ? err : ''}
19
+ #requestForm{:style => 'padding:20px; border:1px solid black;'}
20
20
  %p Enter data for request and press "Make request" button
21
- %form{:action => "/sample7", :enctype => "multipart/form-data", :method => "post"}
22
- %label{:for => "client_id"} GroupDocs ClientID
21
+ %form{:action => '/sample7', :enctype => 'multipart/form-data', :method => 'post'}
22
+ %label{:for => 'client_id'} GroupDocs ClientID
23
23
  %br/
24
- %input{:type=>"text", :name=>"client_id"}
24
+ %input{:type=>'text', :name=>'client_id'}
25
25
  %br/
26
- %label{:for => "private_key"} GroupDocs PrivateKey
26
+ %label{:for => 'private_key'} GroupDocs PrivateKey
27
27
  %br/
28
- %input{:type=>"text", :name=>"private_key"}
28
+ %input{:type=>'text', :name=>'private_key'}
29
29
  %br/
30
- %input{:type => "submit", :value => "Make Request"}/
31
- %div{:style => "padding:20px; border:1px solid black;"}
30
+ %input{:type => 'submit', :value => 'Make Request'}/
31
+ %div{:style => 'padding:20px; border:1px solid black;'}
32
32
  %p Results:
33
- %table{:style => "border:1px double black;"}
33
+ %table{:style => 'border:1px double black;'}
34
34
  %tr
35
35
  %th Field
36
36
  %th Value
37
37
  %tr
38
- %td #{(defined? thumbnailList) ? thumbnailList : ""} #{(defined? file_List) ? file_List : ""}
38
+ %td #{(defined? thumbnailList) ? thumbnailList : ''} #{(defined? file_List) ? file_List : ''}
39
39
  %br/
40
- %div{:style => "padding:10px;"}
41
- Choose another 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
+
41
+ = partial :_others_samples
@@ -1,104 +1,89 @@
1
- %h3{:style => "text-align:center;"}
2
- %a{:href => "/"} GroupDocs Ruby SDK Samples
1
+ %h3{:style => 'text-align:center;'}
2
+ %a{:href => '/'} GroupDocs Ruby SDK Samples
3
3
  \- Sample8
4
- .samplecontent{:style => "padding:10px;"}
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
  %i You can find documentation for this sample
8
- %a{:href => "/docs/sample8.html"} here
8
+ %a{:href => '/docs/sample8.html'} here
9
9
  %br/
10
10
  %br/
11
11
  %p
12
12
  You entered:
13
13
  %p
14
- UserId = #{(defined? userId) ? userId : ""}
14
+ UserId = #{(defined? userId) ? userId : ''}
15
15
  %p
16
- PrivateKey = #{(defined? privateKey) ? privateKey : ""}
16
+ PrivateKey = #{(defined? privateKey) ? privateKey : ''}
17
17
  %p
18
- File Id = #{(defined? guid) ? guid : ""}
18
+ File Id = #{(defined? guid) ? guid : ''}
19
19
  %p
20
- Page number = #{(defined? page_number) ? page_number : ""}
20
+ Page number = #{(defined? page_number) ? page_number : ''}
21
21
  %p
22
- %font{:color => "red"} #{(defined? err) ? err : ""}
23
- #requestForm{:style => "padding:20px; border:1px solid black;"}
22
+ %font{:color => 'red'} #{(defined? err) ? err : ''}
23
+ #requestForm{:style => 'padding:20px; border:1px solid black;'}
24
24
  %p Enter data for request and press "Make request" button
25
- %form{:action => "/sample8", :enctype => "multipart/form-data", :method => "post"}
26
- %label{:for => "client_id"} GroupDocs ClientID
25
+ %form{:action => '/sample8', :enctype => 'multipart/form-data', :method => 'post'}
26
+ %label{:for => 'client_id'} GroupDocs ClientID
27
27
  %br/
28
- %input{:type=>"text", :name=>"client_id"}
28
+ %input{:type=>'text', :name=>'client_id'}
29
29
  %br/
30
- %label{:for => "private_key"} GroupDocs PrivateKey
30
+ %label{:for => 'private_key'} GroupDocs PrivateKey
31
31
  %br/
32
- %input{:type=>"text", :name=>"private_key"}
32
+ %input{:type=>'text', :name=>'private_key'}
33
33
  %br/
34
- %label{:for => "private_key"} GroupDocs GUID
34
+
35
+ %div.guid_radio
36
+ %input{:type=>'radio', :name=>'source', :value=>'guid', :checked=>'checked'} File ID (GUID)
37
+ %br/
38
+ %input{:type=>'radio', :name=>'source', :value=>'local'}Upload local file
39
+ %br/
40
+ %input{:type=>'radio', :name=>'source', :value=>'url'} Upload file from URL
41
+ %br/
42
+
43
+ %div.guid_field
44
+ %label{:for=>'fileId', :id=>'guid'} File ID (GUID)
45
+ %br/
46
+ %input{:type=>'text', :name=>'fileId'}
47
+
48
+ %div.guid_field{:style=>'display:none;'}
49
+ %label{:for=>'file'} Upload local file
50
+ %br/
51
+ %input{:type=>'file', :name=>'file'}
52
+
53
+ %div.guid_field{:style=>'display:none;'}
54
+ %label{:for=>'url', :id=>'url'} Upload file from URL
55
+ %br/
56
+ %input{:type=>'text', :name=>'url'}
57
+
35
58
  %br/
36
- %input{:type=>"text", :name=>"guid"}
59
+ %label{:for => 'private_key'} GroupDocs page number (starts from zero)
37
60
  %br/
38
- %label{:for => "private_key"} GroupDocs page number (starts from zero)
61
+ %input{:type=>'text', :name=>'page_number'}
39
62
  %br/
40
- %input{:type=>"text", :name=>"page_number"}
41
- %br/
42
- %input{:type => "submit", :value => "Make Request"}/
43
- %div{:style => "padding:20px; border:1px solid black;"}
63
+ %input{:type => 'submit', :value => 'Make Request'}/
64
+ %div{:style => 'padding:20px; border:1px solid black;'}
44
65
  %p Results:
45
- %table{:style => "border:1px double black;"}
66
+ %table{:style => 'border:1px double black;'}
46
67
  %tr
47
68
  %th Field
48
69
  %th Value
49
70
  %tr
50
71
  %td Page URL
51
- %td #{(defined? image) ? image : ""}
52
- %font{:color => "green"} The page you requested:
72
+ %td #{(defined? image) ? image : ''}
73
+ %font{:color => 'green'} The page you requested:
53
74
  %br/
54
- %img{:src => "#{(defined? image) ? image : ""}"}
75
+ %img{:src => "#{(defined? image) ? image : ''}"}
55
76
  %br/
56
- %div{:style => "padding:10px;"}
57
- Choose another one sample:
58
- %ul
59
- %li
60
- %a{:href => "/sample1"} Sample1 - How to login to GroupDocs using the API
61
- %li
62
- %a{:href => "/sample2"} Sample2 - How to list files within GroupDocs Storage using the Storage API
63
- %li
64
- %a{:href => "/sample3"} Sample3 - How to upload a file to GroupDocs using the Storage API
65
- %li
66
- %a{:href => "/sample4"} Sample4 - How to download a file from GroupDocs Storage using the Storage API
67
- %li
68
- %a{:href => "/sample5"} Sample5 - How to copy / move a file using the GroupDocs Storage API
69
- %li
70
- %a{:href => "/sample6"} Sample6 - How to add a Signature to a document in GroupDocs Signature
71
- %li
72
- %a{:href => "/sample7"} Sample7 - How to create a list of thumbnails for a document
73
- %li
74
- %a{:href => "/sample8"} Sample8 - How to return a URL representing a single page of a Document
75
- %li
76
- %a{:href => "/sample9"} Sample9 - How to generate an embedded Viewer URL for a Document
77
- %li
78
- %a{:href => "/sample10"} Sample10 - How to share a document to other users
79
- %li
80
- %a{:href => "/sample11"}Sample11 - How programmatically create and post an annotation into document. How to delete the annotation
81
- %li
82
- %a{:href => "/sample12"}Sample12 - How to list all annotations from document
83
- %li
84
- %a{:href => "/sample13"}Sample13 - How to add collaborator to doc with annotations
85
- %li
86
- %a{:href => "/sample14"}Sample14 - How to check the list of shares for a folder
87
- %li
88
- %a{:href => "/sample15"}Sample15 - How to check the number of document's views
89
- %li
90
- %a{:href => "/sample16"}Sample16 - How to insert Assembly questionary into webpage
91
- %li
92
- %a{:href => "/sample17"}Sample17 - How to upload a file into the storage and compress it into zip archive
93
- %li
94
- %a{:href => "/sample18"}Sample18 - How to convert Doc to Docx, Docx to Doc, Docx to PDF, PPT to PDF
95
- %li
96
- %a{:href => "/sample19"}Sample19 - How to Compare documents using Ruby SDK
97
- %li
98
- %a{:href => "/sample20"}Sample20 - How to Get Compare Change list for document using Ruby SDK
99
- %li
100
- %a{:href => "/sample21"}Sample21 - How to Create and Upload Envelop to GroupDocs account using Ruby SDK
101
- %li
102
- %a{:href => "/sample22"}Sample22 - How create or update user and add him to collaborators using PHP SDK
103
- %li
104
- %a{:href => "/envelope-sample"}Envelope sample - How to use envelope and signature API
77
+
78
+ = partial :_others_samples
79
+
80
+ %script{:src=>'//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'}
81
+ :javascript
82
+
83
+ $(function($){
84
+ $('.guid_radio input').change(function(){
85
+ var elementIndex = $(this).parent().children('input').index($(this));
86
+ $('.guid_field').hide();
87
+ $('.guid_field').eq(elementIndex).show();
88
+ });
89
+ });