groupdocs 1.6.0 → 1.7.0
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 +34 -0
- data/LICENSE.txt +21 -0
- data/README.md +3 -0
- data/examples/api-samples/public/docs/sample01.html +23 -23
- data/examples/api-samples/public/docs/sample02.html +27 -27
- data/examples/api-samples/public/docs/sample03.html +81 -69
- data/examples/api-samples/public/docs/sample04.html +29 -29
- data/examples/api-samples/public/docs/sample05.html +48 -48
- data/examples/api-samples/public/docs/sample06.html +47 -46
- data/examples/api-samples/public/docs/sample07.html +35 -35
- data/examples/api-samples/public/docs/sample08.html +45 -45
- data/examples/api-samples/public/docs/sample09.html +57 -57
- data/examples/api-samples/public/docs/sample10.html +41 -41
- data/examples/api-samples/public/docs/sample11.html +96 -118
- data/examples/api-samples/public/docs/sample12.html +29 -50
- data/examples/api-samples/public/docs/sample13.html +36 -44
- data/examples/api-samples/public/docs/sample14.html +29 -29
- data/examples/api-samples/public/docs/sample15.html +24 -24
- data/examples/api-samples/public/docs/sample16.html +32 -32
- data/examples/api-samples/public/docs/sample17.html +38 -38
- data/examples/api-samples/public/docs/sample18.html +105 -101
- data/examples/api-samples/public/docs/sample19.html +101 -101
- data/examples/api-samples/public/docs/sample20.html +42 -42
- data/examples/api-samples/public/docs/sample21.html +109 -109
- data/examples/api-samples/public/docs/sample22.html +56 -56
- data/examples/api-samples/public/docs/sample23.html +39 -39
- data/examples/api-samples/public/docs/sample24.html +36 -36
- data/examples/api-samples/public/docs/sample25.html +67 -67
- data/examples/api-samples/public/docs/sample26.html +23 -23
- data/examples/api-samples/public/docs/sample27.html +72 -72
- data/examples/api-samples/public/docs/sample28.html +46 -45
- data/examples/api-samples/public/docs/sample29.html +30 -30
- data/examples/api-samples/public/docs/sample30.html +30 -30
- data/examples/api-samples/public/docs/sample31.html +114 -114
- data/examples/api-samples/public/docs/sample32.html +96 -96
- data/examples/api-samples/public/docs/sample33.html +56 -56
- data/examples/api-samples/public/docs/sample34.html +27 -27
- data/examples/api-samples/public/docs/sample35.html +134 -135
- data/examples/api-samples/public/docs/sample36.html +32 -32
- data/examples/api-samples/public/docs/sample37.html +103 -103
- data/examples/api-samples/public/docs/sample38.html +76 -76
- data/examples/api-samples/public/docs/sample39.html +136 -136
- data/examples/api-samples/public/docs/sample40.html +104 -104
- data/examples/api-samples/public/docs/sample41.html +137 -137
- data/examples/api-samples/public/docs/sample42.html +61 -61
- data/examples/api-samples/public/docs/sample43.html +72 -72
- data/examples/api-samples/public/docs/sample44.html +751 -0
- data/examples/api-samples/public/docs/sample45.html +236 -0
- data/examples/api-samples/public/templates/merge_field3_doc.docx +0 -0
- data/examples/api-samples/samples/sample01.rb +2 -2
- data/examples/api-samples/samples/sample02.rb +2 -2
- data/examples/api-samples/samples/sample03.rb +2 -2
- data/examples/api-samples/samples/sample04.rb +2 -2
- data/examples/api-samples/samples/sample05.rb +2 -2
- data/examples/api-samples/samples/sample06.rb +2 -2
- data/examples/api-samples/samples/sample07.rb +2 -2
- data/examples/api-samples/samples/sample08.rb +2 -2
- data/examples/api-samples/samples/sample09.rb +2 -2
- data/examples/api-samples/samples/sample10.rb +2 -2
- data/examples/api-samples/samples/sample11.rb +2 -2
- data/examples/api-samples/samples/sample12.rb +2 -2
- data/examples/api-samples/samples/sample13.rb +2 -2
- data/examples/api-samples/samples/sample14.rb +2 -2
- data/examples/api-samples/samples/sample15.rb +2 -2
- 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 +2 -2
- data/examples/api-samples/samples/sample19.rb +2 -2
- data/examples/api-samples/samples/sample20.rb +2 -2
- data/examples/api-samples/samples/sample21.rb +2 -2
- data/examples/api-samples/samples/sample22.rb +2 -2
- data/examples/api-samples/samples/sample23.rb +2 -2
- data/examples/api-samples/samples/sample24.rb +2 -2
- data/examples/api-samples/samples/sample25.rb +2 -2
- data/examples/api-samples/samples/sample26.rb +2 -2
- data/examples/api-samples/samples/sample27.rb +2 -2
- data/examples/api-samples/samples/sample28.rb +2 -2
- data/examples/api-samples/samples/sample29.rb +2 -2
- data/examples/api-samples/samples/sample30.rb +2 -2
- data/examples/api-samples/samples/sample31.rb +2 -2
- data/examples/api-samples/samples/sample32.rb +2 -2
- data/examples/api-samples/samples/sample33.rb +2 -2
- data/examples/api-samples/samples/sample34.rb +2 -2
- data/examples/api-samples/samples/sample35.rb +4 -4
- data/examples/api-samples/samples/sample36.rb +2 -2
- data/examples/api-samples/samples/sample37.rb +2 -2
- data/examples/api-samples/samples/sample38.rb +2 -2
- data/examples/api-samples/samples/sample39.rb +2 -2
- data/examples/api-samples/samples/sample40.rb +2 -2
- data/examples/api-samples/samples/sample41.rb +2 -2
- data/examples/api-samples/samples/sample42.rb +2 -2
- data/examples/api-samples/samples/sample43.rb +2 -2
- data/examples/api-samples/samples/sample44.rb +188 -0
- data/examples/api-samples/samples/sample45.rb +74 -0
- data/examples/api-samples/views/_others_samples.haml +47 -43
- data/examples/api-samples/views/index.haml +55 -44
- data/examples/api-samples/views/layout.haml +1 -6
- data/examples/api-samples/views/sample01.haml +62 -57
- data/examples/api-samples/views/sample02.haml +52 -46
- data/examples/api-samples/views/sample03.haml +78 -73
- data/examples/api-samples/views/sample04.haml +51 -45
- data/examples/api-samples/views/sample05.haml +77 -71
- data/examples/api-samples/views/sample06.haml +58 -52
- data/examples/api-samples/views/sample07.haml +51 -45
- data/examples/api-samples/views/sample08.haml +90 -84
- data/examples/api-samples/views/sample09.haml +86 -80
- data/examples/api-samples/views/sample10.haml +83 -77
- data/examples/api-samples/views/sample11.haml +124 -120
- data/examples/api-samples/views/sample12.haml +65 -59
- data/examples/api-samples/views/sample13.haml +62 -56
- data/examples/api-samples/views/sample14.haml +57 -51
- data/examples/api-samples/views/sample15.haml +49 -43
- data/examples/api-samples/views/sample16.haml +49 -43
- data/examples/api-samples/views/sample17.haml +53 -47
- data/examples/api-samples/views/sample18.haml +140 -134
- data/examples/api-samples/views/sample19.haml +87 -81
- data/examples/api-samples/views/sample20.haml +53 -47
- data/examples/api-samples/views/sample21.haml +115 -111
- data/examples/api-samples/views/sample22.haml +94 -88
- data/examples/api-samples/views/sample23.haml +83 -78
- data/examples/api-samples/views/sample24.haml +54 -48
- data/examples/api-samples/views/sample25.haml +89 -83
- data/examples/api-samples/views/sample26.haml +62 -57
- data/examples/api-samples/views/sample27.haml +114 -109
- data/examples/api-samples/views/sample28.haml +55 -49
- data/examples/api-samples/views/sample29.haml +67 -69
- data/examples/api-samples/views/sample30.haml +54 -48
- data/examples/api-samples/views/sample31.haml +106 -100
- data/examples/api-samples/views/sample32.haml +90 -84
- data/examples/api-samples/views/sample33.haml +60 -54
- data/examples/api-samples/views/sample34.haml +51 -46
- data/examples/api-samples/views/sample35.haml +84 -78
- data/examples/api-samples/views/sample36.haml +63 -58
- data/examples/api-samples/views/sample37.haml +122 -116
- data/examples/api-samples/views/sample38.haml +104 -98
- data/examples/api-samples/views/sample39.haml +6 -2
- data/examples/api-samples/views/sample40.haml +94 -89
- data/examples/api-samples/views/sample41.haml +127 -123
- data/examples/api-samples/views/sample42.haml +60 -54
- data/examples/api-samples/views/sample43.haml +81 -77
- data/examples/api-samples/views/sample44.haml +85 -0
- data/examples/api-samples/views/sample45.haml +85 -0
- data/groupdocs.gemspec +2 -0
- data/lib/groupdocs/datasource/field.rb +9 -0
- data/lib/groupdocs/document.rb +66 -4
- data/lib/groupdocs/document/annotation.rb +11 -6
- data/lib/groupdocs/document/editor.rb +53 -0
- data/lib/groupdocs/document/field.rb +16 -0
- data/lib/groupdocs/document/style.rb +30 -0
- data/lib/groupdocs/job.rb +24 -0
- data/lib/groupdocs/questionnaire.rb +2 -0
- data/lib/groupdocs/questionnaire/collector.rb +52 -0
- data/lib/groupdocs/questionnaire/collector_style.rb +54 -0
- data/lib/groupdocs/questionnaire/question.rb +9 -0
- data/lib/groupdocs/questionnaire/style/base_font.rb +17 -0
- data/lib/groupdocs/questionnaire/style/question_title.rb +17 -0
- data/lib/groupdocs/questionnaire/style/title.rb +17 -0
- data/lib/groupdocs/signature/envelope.rb +43 -8
- data/lib/groupdocs/signature/form.rb +113 -12
- data/lib/groupdocs/signature/recipient.rb +38 -3
- data/lib/groupdocs/signature/shared/field_methods.rb +4 -2
- data/lib/groupdocs/signature/template.rb +20 -1
- data/lib/groupdocs/storage/file.rb +3 -2
- data/lib/groupdocs/user.rb +148 -0
- data/lib/groupdocs/version.rb +1 -1
- data/spec/groupdocs/api/helpers/access_rights_helper_spec.rb +5 -5
- data/spec/groupdocs/document/annotation_spec.rb +1 -1
- data/spec/groupdocs/signature/envelope_spec.rb +1 -1
- data/spec/groupdocs/user_spec.rb +4 -4
- data/spec/support/shared_examples/signature/shared/field_methods.rb +5 -4
- metadata +18 -3
@@ -1,59 +1,64 @@
|
|
1
|
-
%
|
2
|
-
%
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
%
|
7
|
-
%
|
8
|
-
%br/
|
9
|
-
%br/
|
10
|
-
%span.documentation
|
11
|
-
%a{:href => '/docs/sample26.html'} Builtin documentation for this sample
|
12
|
-
%br/
|
13
|
-
%br/
|
14
|
-
%p
|
15
|
-
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
16
|
-
%div{:style => 'padding:20px; border:1px solid black;'}
|
17
|
-
%p Results:
|
18
|
-
%table{:style => 'border:1px double black;'}
|
19
|
-
%tr
|
20
|
-
%th Field
|
21
|
-
%th Value
|
22
|
-
%tr
|
23
|
-
%td First Name
|
24
|
-
%td #{(defined? user.first_name) ? user.first_name : ''}
|
25
|
-
%tr
|
26
|
-
%td Last Name
|
27
|
-
%td #{(defined? user.last_name) ? user.last_name : ''}
|
28
|
-
%tr
|
29
|
-
%td Nick Name
|
30
|
-
%td #{(defined? user.nickname) ? user.nickname : ''}
|
31
|
-
%tr
|
32
|
-
%td Primary Email
|
33
|
-
%td #{(defined? user.primary_email) ? user.primary_email : ''}
|
34
|
-
%tr
|
35
|
-
%td GUID
|
36
|
-
%td #{(defined? user.guid) ? user.guid : ''}
|
37
|
-
%tr
|
38
|
-
%td Private key
|
39
|
-
%td #{(defined? user.private_key) ? user.private_key : ''}
|
1
|
+
%head
|
2
|
+
%title Sample 26 - How to use login method in the API
|
3
|
+
%link(rel="stylesheet" type="text/css" href="/css/style.css")
|
4
|
+
%script{:src=>'//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'}
|
5
|
+
%body
|
6
|
+
%h3{:style => 'text-align:center;'}
|
7
|
+
%a{:href => '/'}GroupDocs Ruby SDK Samples
|
40
8
|
%br/
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
%
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
%
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
%
|
57
|
-
|
9
|
+
Sample 26 - How to use login method in the API
|
10
|
+
.samplecontent{:style => 'padding:10px;'}
|
11
|
+
%span.description
|
12
|
+
%i This sample will show how to use Login object to be authorized at GroupDocs using Ruby SDK
|
13
|
+
%br/
|
14
|
+
%br/
|
15
|
+
%span.documentation
|
16
|
+
%a{:href => '/docs/sample26.html'} Builtin documentation for this sample
|
17
|
+
%br/
|
18
|
+
%br/
|
19
|
+
%p
|
20
|
+
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
21
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
22
|
+
%p Results:
|
23
|
+
%table{:style => 'border:1px double black;'}
|
24
|
+
%tr
|
25
|
+
%th Field
|
26
|
+
%th Value
|
27
|
+
%tr
|
28
|
+
%td First Name
|
29
|
+
%td #{(defined? user.first_name) ? user.first_name : ''}
|
30
|
+
%tr
|
31
|
+
%td Last Name
|
32
|
+
%td #{(defined? user.last_name) ? user.last_name : ''}
|
33
|
+
%tr
|
34
|
+
%td Nick Name
|
35
|
+
%td #{(defined? user.nickname) ? user.nickname : ''}
|
36
|
+
%tr
|
37
|
+
%td Primary Email
|
38
|
+
%td #{(defined? user.primary_email) ? user.primary_email : ''}
|
39
|
+
%tr
|
40
|
+
%td GUID
|
41
|
+
%td #{(defined? user.guid) ? user.guid : ''}
|
42
|
+
%tr
|
43
|
+
%td Private key
|
44
|
+
%td #{(defined? user.private_key) ? user.private_key : ''}
|
45
|
+
%br/
|
46
|
+
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
47
|
+
%p Enter data for request and press "Make request" button
|
48
|
+
%form{:action => '/sample-26-how-to-use-login-method-in-the-api', :enctype => 'multipart/form-data', :method => 'post'}
|
49
|
+
%label{:for => 'login'} Login
|
50
|
+
%br/
|
51
|
+
%input{:type=>'text', :name=>'login'}
|
52
|
+
%br/
|
53
|
+
%label{:for => 'password'} Password
|
54
|
+
%br/
|
55
|
+
%input{:type=>'password', :name=>'password'}
|
56
|
+
%br/
|
57
|
+
%label{:for => 'basePath'} Base Path
|
58
|
+
%span{:class => 'optional'} (Optional)
|
59
|
+
%br/
|
60
|
+
%input{:type=>'text', :name=>'basePath'}
|
61
|
+
%br/
|
62
|
+
%input{:type => 'submit', :value => 'Make Request'}
|
58
63
|
|
59
|
-
= partial :_others_samples
|
64
|
+
= partial :_others_samples
|
@@ -1,128 +1,133 @@
|
|
1
|
-
%
|
2
|
-
%
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
%head
|
2
|
+
%title Sample 27 - How to create your own questionnaire using forms and show the result document
|
3
|
+
%link(rel="stylesheet" type="text/css" href="/css/style.css")
|
4
|
+
%script{:src=>'//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'}
|
5
|
+
%body
|
6
|
+
%h3{:style => 'text-align:center;'}
|
7
|
+
%a{:href => '/'} GroupDocs Ruby SDK Samples
|
8
|
+
%br/
|
9
|
+
Sample 27 - How to create your own questionnaire using forms and show the result document
|
10
|
+
.samplecontent{:style => 'padding:10px;'}
|
11
|
+
%span.description
|
12
|
+
%i
|
13
|
+
This sample will show how to create your own questionary using forms and show the result document using Ruby SDK
|
14
|
+
%br/
|
15
|
+
%br/
|
10
16
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
%br/
|
15
|
-
%br/
|
16
|
-
%p
|
17
|
-
The data you provided:
|
18
|
-
%p
|
19
|
-
ClientID = #{(defined? userId) ? userId : ''}
|
20
|
-
%p
|
21
|
-
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
22
|
-
%p
|
23
|
-
Sex = #{(defined? sex) ? sex : ''}
|
24
|
-
%p
|
25
|
-
Age = #{(defined? age) ? age : ''}
|
26
|
-
%p
|
27
|
-
Sunrise = #{(defined? sunrise) ? sunrise : ''}
|
28
|
-
%p
|
29
|
-
Name = #{(defined? name) ? name : ''}
|
30
|
-
%p
|
31
|
-
Result file type = #{(defined? type) ? type : ''}
|
32
|
-
%p
|
33
|
-
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
34
|
-
|
35
|
-
%span.documentation
|
36
|
-
%a{:href => '/templates/merge_field1_doc.docx'} Document with merge fields sample
|
37
|
-
%br/
|
38
|
-
%br/
|
39
|
-
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
40
|
-
%p Enter data for request and press "Assembly" button
|
41
|
-
%form{:action => '/sample27', :enctype => 'multipart/form-data', :method => 'post'}
|
42
|
-
%label{:for => 'clientId'} GroupDocs ClientID
|
43
|
-
%br/
|
44
|
-
%input{:type=>'text', :name=>'clientId'}
|
45
|
-
%br/
|
46
|
-
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
47
|
-
%br/
|
48
|
-
%input{:type=>'text', :name=>'privateKey'}
|
49
|
-
%br/
|
17
|
+
%span.documentation
|
18
|
+
%a{:href => '/docs/sample27.html'} Docs for this sample
|
50
19
|
|
20
|
+
%br/
|
21
|
+
%br/
|
22
|
+
%p
|
23
|
+
The data you provided:
|
24
|
+
%p
|
25
|
+
ClientID = #{(defined? userId) ? userId : ''}
|
26
|
+
%p
|
27
|
+
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
28
|
+
%p
|
29
|
+
Sex = #{(defined? sex) ? sex : ''}
|
30
|
+
%p
|
31
|
+
Age = #{(defined? age) ? age : ''}
|
32
|
+
%p
|
33
|
+
Sunrise = #{(defined? sunrise) ? sunrise : ''}
|
34
|
+
%p
|
35
|
+
Name = #{(defined? name) ? name : ''}
|
36
|
+
%p
|
37
|
+
Result file type = #{(defined? type) ? type : ''}
|
38
|
+
%p
|
39
|
+
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
51
40
|
|
52
|
-
|
53
|
-
|
41
|
+
%span.documentation
|
42
|
+
%a{:href => '/templates/merge_field1_doc.docx'} Document with merge fields sample
|
43
|
+
%br/
|
44
|
+
%br/
|
45
|
+
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
46
|
+
%p Enter data for request and press "Assembly" button
|
47
|
+
%form{:action => '/sample-27-how-to-create-your-own-questionnaire-using-forms-and-show-the-result-document', :enctype => 'multipart/form-data', :method => 'post'}
|
48
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
54
49
|
%br/
|
55
|
-
%input{:type=>'
|
50
|
+
%input{:type=>'text', :name=>'clientId'}
|
56
51
|
%br/
|
57
|
-
%
|
52
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
58
53
|
%br/
|
59
|
-
|
60
|
-
%div.guid_field{:style=>'display:none;'}
|
61
|
-
%label{:for=>'fileId', :id=>'guid'} File ID (GUID)
|
54
|
+
%input{:type=>'text', :name=>'privateKey'}
|
62
55
|
%br/
|
63
|
-
%input{:type=>'text', :name=>'fileId'}
|
64
56
|
|
65
|
-
%div.guid_field
|
66
|
-
%label{:for=>'file'} Upload local file
|
67
|
-
%br/
|
68
|
-
%input{:type=>'file', :name=>'file'}
|
69
57
|
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
%
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
58
|
+
%div.guid_radio
|
59
|
+
%input{:type=>'radio', :name=>'source', :value=>'guid'} File ID (GUID)
|
60
|
+
%br/
|
61
|
+
%input{:type=>'radio', :name=>'source', :value=>'local', :checked=>'checked'}Upload local file
|
62
|
+
%br/
|
63
|
+
%input{:type=>'radio', :name=>'source', :value=>'url'}Upload file from URL
|
64
|
+
%br/
|
65
|
+
|
66
|
+
%div.guid_field{:style=>'display:none;'}
|
67
|
+
%label{:for=>'fileId', :id=>'guid'} File ID (GUID)
|
68
|
+
%br/
|
69
|
+
%input{:type=>'text', :name=>'fileId'}
|
70
|
+
|
71
|
+
%div.guid_field
|
72
|
+
%label{:for=>'file'} Upload local file
|
73
|
+
%br/
|
74
|
+
%input{:type=>'file', :name=>'file'}
|
75
|
+
|
76
|
+
%div.guid_field{:style=>'display:none;'}
|
77
|
+
%label{:for=>'url', :id=>'url'} Upload file from URL
|
78
|
+
%br/
|
79
|
+
%input{:type=>'text', :name=>'url'}
|
80
|
+
%div{:style => 'background-color:#e5e5e5;border:3px double gray;width:700px;padding:3px;font-size:10pt;'}
|
81
|
+
%label{:for=>'name'} What is your name?
|
82
|
+
%br/
|
83
|
+
%input{:type=>'text', :name=>'name'}
|
84
|
+
%br/
|
85
|
+
%label{:for=>'sex'} What is your sex?
|
86
|
+
%input{:type=>'checkbox', :name=>'sex', :value=>'man'}Man
|
87
|
+
%input{:type=>'checkbox', :name=>'sex', :value=>'woman'}Woman
|
88
|
+
%br/
|
89
|
+
%br/
|
90
|
+
%label{:for=>'age'} Do you have 21 years old?
|
91
|
+
%select{:name=>'age'}
|
92
|
+
%option{:value=>'Yes'}Yes
|
93
|
+
%option{:value=>'No'}No
|
94
|
+
%br/
|
95
|
+
%br/
|
96
|
+
%label{:for=>'sunrise'} Do you like sunrise?
|
97
|
+
%select{:name=>'sunrise'}
|
98
|
+
%option{:value=>'Yes'}Yes
|
99
|
+
%option{:value=>'No'}No
|
100
|
+
%br/
|
101
|
+
%br/
|
83
102
|
%br/
|
84
|
-
%label{:for=>'age'} Do you have 21 years old?
|
85
|
-
%select{:name=>'age'}
|
86
|
-
%option{:value=>'Yes'}Yes
|
87
|
-
%option{:value=>'No'}No
|
88
103
|
%br/
|
104
|
+
%label{:for=>'type'}Select type of the result file
|
105
|
+
%select{:name=>'type'}
|
106
|
+
%option{:value=>'DOC'}DOC
|
107
|
+
%option{:value=>'DOCX'}DOCX
|
108
|
+
%option{:value=>'PDF'}PDF
|
89
109
|
%br/
|
90
|
-
%label{:for=>'
|
91
|
-
%
|
92
|
-
%option{:value=>'Yes'}Yes
|
93
|
-
%option{:value=>'No'}No
|
110
|
+
%label{:for => 'basePath'} Base Path
|
111
|
+
%span{:class => 'optional'} (Optional)
|
94
112
|
%br/
|
113
|
+
%input{:type=>'text', :name=>'basePath'}
|
95
114
|
%br/
|
96
|
-
|
97
|
-
%br/
|
98
|
-
%label{:for=>'type'}Select type of the result file
|
99
|
-
%select{:name=>'type'}
|
100
|
-
%option{:value=>'DOC'}DOC
|
101
|
-
%option{:value=>'DOCX'}DOCX
|
102
|
-
%option{:value=>'PDF'}PDF
|
103
|
-
%br/
|
104
|
-
%label{:for => 'basePath'} Base Path
|
105
|
-
%span{:class => 'optional'} (Optional)
|
106
|
-
%br/
|
107
|
-
%input{:type=>'text', :name=>'basePath'}
|
108
|
-
%br/
|
109
|
-
%input{:type => 'submit', :value => 'Assembly'}
|
115
|
+
%input{:type => 'submit', :value => 'Assembly'}
|
110
116
|
|
111
117
|
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
= partial :_others_samples
|
118
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
119
|
+
%p
|
120
|
+
#{(defined? file_name) ? "<a href='/downloads/#{file_name}'>Download converted file</a>" : ''}
|
121
|
+
#{(defined? iframe) ? iframe : ''}
|
118
122
|
|
123
|
+
= partial :_others_samples
|
119
124
|
|
120
|
-
:javascript
|
121
|
-
$(function($){
|
122
125
|
|
123
|
-
|
124
|
-
|
125
|
-
$('.
|
126
|
-
|
127
|
-
|
128
|
-
|
126
|
+
:javascript
|
127
|
+
$(function($){
|
128
|
+
$('.guid_radio input').change(function(){
|
129
|
+
var elementIndex = $(this).parent().children('input').index($(this));
|
130
|
+
$('.guid_field').hide();
|
131
|
+
$('.guid_field').eq(elementIndex).show();
|
132
|
+
});
|
133
|
+
});
|
@@ -1,52 +1,58 @@
|
|
1
|
-
%
|
2
|
-
%
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
%
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
You entered:
|
14
|
-
%p
|
15
|
-
UserId = #{(defined? userId) ? userId : ''}
|
16
|
-
%p
|
17
|
-
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
18
|
-
%p
|
19
|
-
FileId = #{(defined? fileId) ? fileId : ''}
|
20
|
-
%p
|
21
|
-
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
22
|
-
%br/
|
23
|
-
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
24
|
-
%p Enter data for request and press "Make request" button
|
25
|
-
%form{:action => '/sample28', :method => 'post'}
|
26
|
-
%label{:for => 'clientId'} GroupDocs ClientID
|
27
|
-
%br/
|
28
|
-
%input{:type=>'text', :name=>'clientId'}
|
29
|
-
%br/
|
30
|
-
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
31
|
-
%br/
|
32
|
-
%input{:type=>'text', :name=>'privateKey'}
|
33
|
-
%br/
|
34
|
-
%label{:for => 'file_id'} GroupDocs FileID
|
35
|
-
%br/
|
36
|
-
%input{:type=>'text', :name=>'fileId'}
|
37
|
-
%br/
|
38
|
-
%label{:for => 'basePath'} Base Path
|
39
|
-
%span{:class => 'optional'} (Optional)
|
40
|
-
%br/
|
41
|
-
%input{:type=>'text', :name=>'basePath'}
|
42
|
-
%br/
|
43
|
-
%br/
|
44
|
-
%input{:type => 'submit', :value => 'Delete all annotations'}/
|
45
|
-
%div{:style => 'padding:20px; border:1px solid black;'}
|
46
|
-
Results:
|
1
|
+
%head
|
2
|
+
%title Sample 28 - How to delete all annotations from document
|
3
|
+
%link(rel="stylesheet" type="text/css" href="/css/style.css")
|
4
|
+
%script{:src=>'//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'}
|
5
|
+
%body
|
6
|
+
%h3{:style => 'text-align:center;'}
|
7
|
+
%a{:href => '/'} GroupDocs Ruby SDK Samples
|
8
|
+
%br/
|
9
|
+
Sample 28 - How to delete all annotations from document
|
10
|
+
.samplecontent{:style => 'padding:10px;'}
|
11
|
+
%i This sample will show how to delete all annotations from document using Ruby SDK
|
12
|
+
%br/
|
47
13
|
%br/
|
48
|
-
%span
|
49
|
-
|
14
|
+
%span.documentation
|
15
|
+
%a{:href => '/docs/sample28.html'} Builtin documentation for this sample
|
50
16
|
%br/
|
17
|
+
%br/
|
18
|
+
%p
|
19
|
+
You entered:
|
20
|
+
%p
|
21
|
+
UserId = #{(defined? userId) ? userId : ''}
|
22
|
+
%p
|
23
|
+
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
24
|
+
%p
|
25
|
+
FileId = #{(defined? fileId) ? fileId : ''}
|
26
|
+
%p
|
27
|
+
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
28
|
+
%br/
|
29
|
+
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
30
|
+
%p Enter data for request and press "Make request" button
|
31
|
+
%form{:action => '/sample-28-how-to-delete-all-annotations-from-document', :method => 'post'}
|
32
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
33
|
+
%br/
|
34
|
+
%input{:type=>'text', :name=>'clientId'}
|
35
|
+
%br/
|
36
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
37
|
+
%br/
|
38
|
+
%input{:type=>'text', :name=>'privateKey'}
|
39
|
+
%br/
|
40
|
+
%label{:for => 'file_id'} GroupDocs FileID
|
41
|
+
%br/
|
42
|
+
%input{:type=>'text', :name=>'fileId'}
|
43
|
+
%br/
|
44
|
+
%label{:for => 'basePath'} Base Path
|
45
|
+
%span{:class => 'optional'} (Optional)
|
46
|
+
%br/
|
47
|
+
%input{:type=>'text', :name=>'basePath'}
|
48
|
+
%br/
|
49
|
+
%br/
|
50
|
+
%input{:type => 'submit', :value => 'Delete all annotations'}/
|
51
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
52
|
+
Results:
|
53
|
+
%br/
|
54
|
+
%span{:style => 'color:green'}#{(defined? messages) ? messages : ''}
|
55
|
+
#{(defined? iframe) ? iframe : ''}
|
56
|
+
%br/
|
51
57
|
|
52
|
-
= partial :_others_samples
|
58
|
+
= partial :_others_samples
|