groupdocs 1.5.7 → 1.5.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +51 -0
- data/examples/api-samples/Gemfile +1 -1
- data/examples/api-samples/Gemfile.lock +43 -0
- data/examples/api-samples/public/docs/{sample2.html → sample01.html} +39 -19
- data/examples/api-samples/public/docs/{sample3.html → sample02.html} +28 -22
- data/examples/api-samples/public/docs/sample03.html +285 -0
- data/examples/api-samples/public/docs/{sample4.html → sample04.html} +30 -36
- data/examples/api-samples/public/docs/{sample5.html → sample05.html} +68 -31
- data/examples/api-samples/public/docs/sample06.html +299 -0
- data/examples/api-samples/public/docs/{sample7.html → sample07.html} +53 -18
- data/examples/api-samples/public/docs/{sample8.html → sample08.html} +64 -41
- data/examples/api-samples/public/docs/sample09.html +260 -0
- data/examples/api-samples/public/docs/sample10.html +67 -28
- data/examples/api-samples/public/docs/sample11.html +171 -55
- data/examples/api-samples/public/docs/sample12.html +53 -17
- data/examples/api-samples/public/docs/sample13.html +52 -16
- data/examples/api-samples/public/docs/sample14.html +51 -8
- data/examples/api-samples/public/docs/sample15.html +46 -10
- data/examples/api-samples/public/docs/sample16.html +81 -7
- data/examples/api-samples/public/docs/sample17.html +103 -15
- data/examples/api-samples/public/docs/sample18.html +117 -41
- data/examples/api-samples/public/docs/sample19.html +410 -36
- data/examples/api-samples/public/docs/sample20.html +46 -10
- data/examples/api-samples/public/docs/sample21.html +504 -45
- data/examples/api-samples/public/docs/sample22.html +166 -28
- data/examples/api-samples/public/docs/sample23.html +61 -25
- data/examples/api-samples/public/docs/sample24.html +100 -12
- data/examples/api-samples/public/docs/sample25.html +123 -49
- data/examples/api-samples/public/docs/sample26.html +41 -8
- data/examples/api-samples/public/docs/sample27.html +125 -50
- data/examples/api-samples/public/docs/sample28.html +27 -9
- data/examples/api-samples/public/docs/sample29.html +10 -10
- data/examples/api-samples/public/docs/sample30.html +70 -14
- data/examples/api-samples/public/docs/sample31.html +108 -67
- data/examples/api-samples/public/docs/sample32.html +71 -99
- data/examples/api-samples/public/docs/sample33.html +107 -32
- data/examples/api-samples/public/docs/{sample1.html → sample34.html} +58 -18
- data/examples/api-samples/public/docs/sample35.html +666 -0
- data/examples/api-samples/public/docs/{sample6.html → sample36.html} +56 -37
- data/examples/api-samples/public/docs/sample37.html +815 -0
- data/examples/api-samples/public/docs/sample38.html +508 -0
- data/examples/api-samples/public/docs/sample39.html +921 -0
- data/examples/api-samples/public/docs/sample40.html +510 -0
- data/examples/api-samples/public/docs/sample41.html +452 -0
- data/examples/api-samples/public/docs/sample42.html +311 -0
- data/examples/api-samples/public/templates/test_all_fields2.pdf +0 -0
- data/examples/api-samples/samples/sample01.rb +37 -0
- data/examples/api-samples/samples/sample02.rb +41 -0
- data/examples/api-samples/samples/sample03.rb +73 -0
- data/examples/api-samples/samples/sample04.rb +47 -0
- data/examples/api-samples/samples/{sample5.rb → sample05.rb} +26 -14
- data/examples/api-samples/samples/sample06.rb +80 -0
- data/examples/api-samples/samples/sample07.rb +52 -0
- data/examples/api-samples/samples/sample08.rb +69 -0
- data/examples/api-samples/samples/sample09.rb +83 -0
- data/examples/api-samples/samples/sample10.rb +29 -15
- data/examples/api-samples/samples/sample11.rb +89 -37
- data/examples/api-samples/samples/sample12.rb +22 -11
- data/examples/api-samples/samples/sample13.rb +22 -10
- data/examples/api-samples/samples/sample14.rb +23 -5
- data/examples/api-samples/samples/sample15.rb +18 -7
- data/examples/api-samples/samples/sample16.rb +28 -4
- data/examples/api-samples/samples/sample17.rb +31 -5
- data/examples/api-samples/samples/sample18.rb +36 -8
- data/examples/api-samples/samples/sample19.rb +138 -18
- data/examples/api-samples/samples/sample20.rb +14 -3
- data/examples/api-samples/samples/sample21.rb +162 -23
- data/examples/api-samples/samples/sample22.rb +73 -22
- data/examples/api-samples/samples/sample23.rb +17 -6
- data/examples/api-samples/samples/sample24.rb +34 -7
- data/examples/api-samples/samples/sample25.rb +37 -12
- data/examples/api-samples/samples/sample26.rb +12 -5
- data/examples/api-samples/samples/sample27.rb +38 -12
- data/examples/api-samples/samples/sample28.rb +25 -6
- data/examples/api-samples/samples/sample29.rb +12 -12
- data/examples/api-samples/samples/sample30.rb +27 -15
- data/examples/api-samples/samples/sample31.rb +44 -33
- data/examples/api-samples/samples/sample32.rb +43 -41
- data/examples/api-samples/samples/sample33.rb +42 -14
- data/examples/api-samples/samples/sample34.rb +40 -0
- data/examples/api-samples/samples/sample35.rb +224 -0
- data/examples/api-samples/samples/sample36.rb +58 -0
- data/examples/api-samples/samples/sample37.rb +229 -0
- data/examples/api-samples/samples/sample38.rb +128 -0
- data/examples/api-samples/samples/sample39.rb +252 -0
- data/examples/api-samples/samples/sample40.rb +164 -0
- data/examples/api-samples/samples/sample41.rb +118 -0
- data/examples/api-samples/samples/sample42.rb +97 -0
- data/examples/api-samples/views/_others_samples.haml +25 -11
- data/examples/api-samples/views/index.haml +23 -11
- data/examples/api-samples/views/popup.haml +32 -0
- data/examples/api-samples/views/{sample1.haml → sample01.haml} +12 -7
- data/examples/api-samples/views/{sample2.haml → sample02.haml} +20 -15
- data/examples/api-samples/views/sample03.haml +83 -0
- data/examples/api-samples/views/sample04.haml +49 -0
- data/examples/api-samples/views/{sample5.haml → sample05.haml} +19 -14
- data/examples/api-samples/views/sample06.haml +53 -0
- data/examples/api-samples/views/sample07.haml +47 -0
- data/examples/api-samples/views/{sample8.haml → sample08.haml} +17 -12
- data/examples/api-samples/views/{sample9.haml → sample09.haml} +19 -4
- data/examples/api-samples/views/sample10.haml +18 -13
- data/examples/api-samples/views/sample11.haml +48 -19
- data/examples/api-samples/views/sample12.haml +26 -21
- data/examples/api-samples/views/sample13.haml +18 -12
- data/examples/api-samples/views/sample14.haml +21 -15
- data/examples/api-samples/views/sample15.haml +16 -9
- data/examples/api-samples/views/sample16.haml +18 -5
- data/examples/api-samples/views/sample17.haml +14 -9
- data/examples/api-samples/views/sample18.haml +13 -7
- data/examples/api-samples/views/sample19.haml +37 -8
- data/examples/api-samples/views/sample20.haml +13 -8
- data/examples/api-samples/views/sample21.haml +71 -13
- data/examples/api-samples/views/sample22.haml +53 -16
- data/examples/api-samples/views/sample23.haml +9 -4
- data/examples/api-samples/views/sample24.haml +9 -4
- data/examples/api-samples/views/sample25.haml +18 -13
- data/examples/api-samples/views/sample26.haml +8 -3
- data/examples/api-samples/views/sample27.haml +20 -14
- data/examples/api-samples/views/sample28.haml +16 -10
- data/examples/api-samples/views/sample29.haml +4 -4
- data/examples/api-samples/views/sample30.haml +16 -10
- data/examples/api-samples/views/sample31.haml +39 -32
- data/examples/api-samples/views/sample32.haml +25 -36
- data/examples/api-samples/views/sample33.haml +14 -17
- data/examples/api-samples/views/sample34.haml +48 -0
- data/examples/api-samples/views/sample35.haml +95 -0
- data/examples/api-samples/views/sample36.haml +64 -0
- data/examples/api-samples/views/sample37.haml +124 -0
- data/examples/api-samples/views/sample38.haml +115 -0
- data/examples/api-samples/views/sample39.haml +236 -0
- data/examples/api-samples/views/sample40.haml +95 -0
- data/examples/api-samples/views/{sample4.haml → sample41.haml} +90 -72
- data/examples/api-samples/views/sample42.haml +59 -0
- data/lib/groupdocs/api/helpers/rest_helper.rb +13 -1
- data/lib/groupdocs/datasource.rb +2 -1
- data/lib/groupdocs/document.rb +101 -13
- data/lib/groupdocs/document/annotation.rb +28 -13
- data/lib/groupdocs/document/annotation/marker.rb +18 -0
- data/lib/groupdocs/document/annotation/reply.rb +9 -2
- data/lib/groupdocs/document/field.rb +5 -1
- data/lib/groupdocs/job.rb +12 -2
- data/lib/groupdocs/questionnaire.rb +174 -4
- data/lib/groupdocs/questionnaire/collector.rb +21 -0
- data/lib/groupdocs/questionnaire/question.rb +19 -0
- data/lib/groupdocs/questionnaire/question/answer.rb +5 -0
- data/lib/groupdocs/questionnaire/question/conditions.rb +20 -0
- data/lib/groupdocs/signature.rb +36 -308
- data/lib/groupdocs/signature/envelope.rb +146 -4
- data/lib/groupdocs/signature/field.rb +20 -1
- data/lib/groupdocs/signature/field/location.rb +18 -7
- data/lib/groupdocs/signature/form.rb +199 -10
- data/lib/groupdocs/signature/shared/document_methods.rb +38 -0
- data/lib/groupdocs/signature/shared/entity_methods.rb +0 -1
- data/lib/groupdocs/signature/shared/field_methods.rb +13 -38
- data/lib/groupdocs/signature/shared/recipient_methods.rb +8 -0
- data/lib/groupdocs/signature/template.rb +3 -1
- data/lib/groupdocs/storage.rb +4 -1
- data/lib/groupdocs/storage/file.rb +18 -1
- data/lib/groupdocs/subscription.rb +8 -3
- data/lib/groupdocs/user.rb +8 -0
- data/lib/groupdocs/version.rb +1 -1
- data/spec/groupdocs/document/annotation_spec.rb +1 -14
- data/spec/groupdocs/subscription_spec.rb +2 -2
- metadata +86 -32
- checksums.yaml +0 -15
- data/examples/api-samples/public/docs/sample9.html +0 -200
- data/examples/api-samples/samples/sample1.rb +0 -25
- data/examples/api-samples/samples/sample2.rb +0 -29
- data/examples/api-samples/samples/sample3.rb +0 -33
- data/examples/api-samples/samples/sample4.rb +0 -51
- data/examples/api-samples/samples/sample6.rb +0 -49
- data/examples/api-samples/samples/sample7.rb +0 -42
- data/examples/api-samples/samples/sample8.rb +0 -61
- data/examples/api-samples/samples/sample9.rb +0 -48
- data/examples/api-samples/views/sample3.haml +0 -44
- data/examples/api-samples/views/sample6.haml +0 -49
- data/examples/api-samples/views/sample7.haml +0 -42
@@ -21,18 +21,23 @@
|
|
21
21
|
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
22
22
|
%p Enter data for request and press "Upload" button
|
23
23
|
%form{:action => '/sample24', :enctype => 'multipart/form-data', :method => 'post'}
|
24
|
-
%label{:for => '
|
24
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
25
25
|
%br/
|
26
|
-
%input{:type=>'text', :name=>'
|
26
|
+
%input{:type=>'text', :name=>'clientId'}
|
27
27
|
%br/
|
28
|
-
%label{:for => '
|
28
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
29
29
|
%br/
|
30
|
-
%input{:type=>'text', :name=>'
|
30
|
+
%input{:type=>'text', :name=>'privateKey'}
|
31
31
|
%br/
|
32
32
|
%label{:for => 'url'} File Url
|
33
33
|
%br/
|
34
34
|
%input{:name => 'url', :type => 'text'}/
|
35
35
|
%br/
|
36
|
+
%label{:for => 'basePath'} Base Path
|
37
|
+
%span{:class => 'optional'} (Optional)
|
38
|
+
%br/
|
39
|
+
%input{:type=>'text', :name=>'basePath'}
|
40
|
+
%br/
|
36
41
|
%br/
|
37
42
|
%input{:type => 'submit', :value => 'Upload'}/
|
38
43
|
%div{:style => 'padding:20px; border:1px solid black;'}
|
@@ -29,30 +29,30 @@
|
|
29
29
|
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
30
30
|
%p Enter data for request and press "Make request" button
|
31
31
|
%form{:action => '/sample25', :enctype => 'multipart/form-data', :method => 'post'}
|
32
|
-
%label{:for => '
|
32
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
33
33
|
%br/
|
34
|
-
%input{:type=>'text', :name=>'
|
34
|
+
%input{:type=>'text', :name=>'clientId'}
|
35
35
|
%br/
|
36
|
-
%label{:for => '
|
36
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
37
37
|
%br/
|
38
|
-
%input{:type=>'text', :name=>'
|
38
|
+
%input{:type=>'text', :name=>'privateKey'}
|
39
39
|
%br/
|
40
40
|
|
41
41
|
|
42
42
|
%div.guid_radio
|
43
|
-
%input{:type=>'radio', :name=>'source', :value=>'guid'
|
43
|
+
%input{:type=>'radio', :name=>'source', :value=>'guid'} File ID (GUID)
|
44
44
|
%br/
|
45
|
-
%input{:type=>'radio', :name=>'source', :value=>'local'}Upload local file
|
45
|
+
%input{:type=>'radio', :name=>'source', :value=>'local', :checked=>'checked'}Upload local file
|
46
46
|
%br/
|
47
47
|
%input{:type=>'radio', :name=>'source', :value=>'url'} Upload file from URL
|
48
48
|
%br/
|
49
49
|
|
50
|
-
%div.guid_field
|
50
|
+
%div.guid_field{:style=>'display:none;'}
|
51
51
|
%label{:for=>'fileId', :id=>'guid'} File ID (GUID)
|
52
52
|
%br/
|
53
53
|
%input{:type=>'text', :name=>'fileId'}
|
54
54
|
|
55
|
-
%div.guid_field
|
55
|
+
%div.guid_field
|
56
56
|
%label{:for=>'file'} Upload local file
|
57
57
|
%br/
|
58
58
|
%input{:type=>'file', :name=>'file'}
|
@@ -62,6 +62,11 @@
|
|
62
62
|
%br/
|
63
63
|
%input{:type=>'text', :name=>'url'}
|
64
64
|
|
65
|
+
%br/
|
66
|
+
%label{:for => 'basePath'} Base Path
|
67
|
+
%span{:class => 'optional'} (Optional)
|
68
|
+
%br/
|
69
|
+
%input{:type=>'text', :name=>'basePath'}
|
65
70
|
%br/
|
66
71
|
%br/
|
67
72
|
|
@@ -71,11 +76,11 @@
|
|
71
76
|
%a{:href=>'/templates/merge_feid_doc.docx'} Download sample Docx file
|
72
77
|
%br/
|
73
78
|
%br/
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
80
|
+
%p
|
81
|
+
Results:
|
82
|
+
#{(defined? fileName) ? "<a href='/downloads/#{fileName}'>Download converted file</a>" : ''}
|
83
|
+
#{(defined? iframe) ? iframe : ''}
|
79
84
|
|
80
85
|
= partial :_others_samples
|
81
86
|
|
@@ -41,13 +41,18 @@
|
|
41
41
|
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
42
42
|
%p Enter data for request and press "Make request" button
|
43
43
|
%form{:action => '/sample26', :enctype => 'multipart/form-data', :method => 'post'}
|
44
|
-
%label{:for => '
|
44
|
+
%label{:for => 'login'} Login
|
45
45
|
%br/
|
46
|
-
%input{:type=>'text', :name=>'
|
46
|
+
%input{:type=>'text', :name=>'login'}
|
47
47
|
%br/
|
48
48
|
%label{:for => 'password'} Password
|
49
49
|
%br/
|
50
|
-
%input{:type=>'
|
50
|
+
%input{:type=>'password', :name=>'password'}
|
51
|
+
%br/
|
52
|
+
%label{:for => 'basePath'} Base Path
|
53
|
+
%span{:class => 'optional'} (Optional)
|
54
|
+
%br/
|
55
|
+
%input{:type=>'text', :name=>'basePath'}
|
51
56
|
%br/
|
52
57
|
%input{:type => 'submit', :value => 'Make Request'}
|
53
58
|
|
@@ -39,30 +39,30 @@
|
|
39
39
|
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
40
40
|
%p Enter data for request and press "Assembly" button
|
41
41
|
%form{:action => '/sample27', :enctype => 'multipart/form-data', :method => 'post'}
|
42
|
-
%label{:for => '
|
42
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
43
43
|
%br/
|
44
|
-
%input{:type=>'text', :name=>'
|
44
|
+
%input{:type=>'text', :name=>'clientId'}
|
45
45
|
%br/
|
46
|
-
%label{:for => '
|
46
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
47
47
|
%br/
|
48
|
-
%input{:type=>'text', :name=>'
|
48
|
+
%input{:type=>'text', :name=>'privateKey'}
|
49
49
|
%br/
|
50
50
|
|
51
51
|
|
52
52
|
%div.guid_radio
|
53
|
-
%input{:type=>'radio', :name=>'source', :value=>'guid'
|
53
|
+
%input{:type=>'radio', :name=>'source', :value=>'guid'} File ID (GUID)
|
54
54
|
%br/
|
55
|
-
%input{:type=>'radio', :name=>'source', :value=>'local'}Upload local file
|
55
|
+
%input{:type=>'radio', :name=>'source', :value=>'local', :checked=>'checked'}Upload local file
|
56
56
|
%br/
|
57
57
|
%input{:type=>'radio', :name=>'source', :value=>'url'}Upload file from URL
|
58
58
|
%br/
|
59
59
|
|
60
|
-
%div.guid_field
|
60
|
+
%div.guid_field{:style=>'display:none;'}
|
61
61
|
%label{:for=>'fileId', :id=>'guid'} File ID (GUID)
|
62
62
|
%br/
|
63
63
|
%input{:type=>'text', :name=>'fileId'}
|
64
64
|
|
65
|
-
%div.guid_field
|
65
|
+
%div.guid_field
|
66
66
|
%label{:for=>'file'} Upload local file
|
67
67
|
%br/
|
68
68
|
%input{:type=>'file', :name=>'file'}
|
@@ -87,7 +87,7 @@
|
|
87
87
|
%option{:value=>'No'}No
|
88
88
|
%br/
|
89
89
|
%br/
|
90
|
-
%label{:for=>'sunrise'} Do you
|
90
|
+
%label{:for=>'sunrise'} Do you like sunrise?
|
91
91
|
%select{:name=>'sunrise'}
|
92
92
|
%option{:value=>'Yes'}Yes
|
93
93
|
%option{:value=>'No'}No
|
@@ -100,13 +100,19 @@
|
|
100
100
|
%option{:value=>'DOC'}DOC
|
101
101
|
%option{:value=>'DOCX'}DOCX
|
102
102
|
%option{:value=>'PDF'}PDF
|
103
|
-
|
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'}
|
104
110
|
|
105
111
|
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
112
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
113
|
+
%p
|
114
|
+
#{(defined? file_name) ? "<a href='/downloads/#{file_name}'>Download converted file</a>" : ''}
|
115
|
+
#{(defined? iframe) ? iframe : ''}
|
110
116
|
|
111
117
|
= partial :_others_samples
|
112
118
|
|
@@ -23,25 +23,31 @@
|
|
23
23
|
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
24
24
|
%p Enter data for request and press "Make request" button
|
25
25
|
%form{:action => '/sample28', :method => 'post'}
|
26
|
-
%label{:for => '
|
26
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
27
27
|
%br/
|
28
|
-
%input{:type=>'text', :name=>'
|
28
|
+
%input{:type=>'text', :name=>'clientId'}
|
29
29
|
%br/
|
30
|
-
%label{:for => '
|
30
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
31
31
|
%br/
|
32
|
-
%input{:type=>'text', :name=>'
|
32
|
+
%input{:type=>'text', :name=>'privateKey'}
|
33
33
|
%br/
|
34
34
|
%label{:for => 'file_id'} GroupDocs FileID
|
35
35
|
%br/
|
36
36
|
%input{:type=>'text', :name=>'fileId'}
|
37
37
|
%br/
|
38
|
+
%label{:for => 'basePath'} Base Path
|
39
|
+
%span{:class => 'optional'} (Optional)
|
40
|
+
%br/
|
41
|
+
%input{:type=>'text', :name=>'basePath'}
|
42
|
+
%br/
|
38
43
|
%br/
|
39
44
|
%input{:type => 'submit', :value => 'Delete all annotations'}/
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
45
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
46
|
+
%p
|
47
|
+
Results:
|
48
|
+
%br/
|
49
|
+
%font{:color => 'green'}#{(defined? messages) ? messages : ''}
|
50
|
+
#{(defined? iframe) ? iframe : ''}
|
51
|
+
%br/
|
46
52
|
|
47
53
|
= partial :_others_samples
|
@@ -17,13 +17,13 @@
|
|
17
17
|
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
18
18
|
%p Click "Pick file" to select file which will be uploaded and shown in iframe
|
19
19
|
%form{:name => 'gdform', :action => '/sample29', :enctype => 'multipart/form-data', :method => 'post'}
|
20
|
-
%label{:for => '
|
20
|
+
%label{:for => 'clientId'} GroupDocs Client ID
|
21
21
|
%br/
|
22
|
-
%input{:type=>'text', :name=>'
|
22
|
+
%input{:type=>'text', :name=>'clientId'}
|
23
23
|
%br/
|
24
|
-
%label{:for => '
|
24
|
+
%label{:for => 'serverType'} Base path
|
25
25
|
%br/
|
26
|
-
%input{:type=>'text', :name=>'
|
26
|
+
%input{:type=>'text', :name=>'serverType', :id => 'server_type'}
|
27
27
|
%br/
|
28
28
|
%input{:id => 'gdButton', :type => 'filepicker', :data => {'fp-store-access' => "public", 'fp-apikey' => "AjhtkJk6rRLWQxanzZAFVz", 'fp-store-path' => "files/"}, :value => 'Upload file', :onChange => "upload(event.fpfile.url)", :style => 'display: block'}
|
29
29
|
%span{:id => 'results_status', :style => 'color:red;display:none;' } (Please wait for ajax response)
|
@@ -23,24 +23,30 @@
|
|
23
23
|
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
24
24
|
%p Enter data for request and press "Make request" button
|
25
25
|
%form{:action => '/sample30', :method => 'post'}
|
26
|
-
%label{:for => '
|
26
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
27
27
|
%br/
|
28
|
-
%input{:type=>'text', :name=>'
|
28
|
+
%input{:type=>'text', :name=>'clientId'}
|
29
29
|
%br/
|
30
|
-
%label{:for => '
|
30
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
31
31
|
%br/
|
32
|
-
%input{:type=>'text', :name=>'
|
32
|
+
%input{:type=>'text', :name=>'privateKey'}
|
33
33
|
%br/
|
34
|
-
%label{:for => '
|
34
|
+
%label{:for => 'fileName'} GroupDocs File Name
|
35
35
|
%br/
|
36
|
-
%input{:type=>'text', :name=>'
|
36
|
+
%input{:type=>'text', :name=>'fileName'}
|
37
37
|
%br/
|
38
|
+
%label{:for => 'basePath'} Base Path
|
39
|
+
%span{:class => 'optional'} (Optional)
|
38
40
|
%br/
|
39
|
-
%input{:type
|
40
|
-
%div{:style => 'padding:20px; border:1px solid black;'}
|
41
|
-
%p Results:
|
41
|
+
%input{:type=>'text', :name=>'basePath'}
|
42
42
|
%br/
|
43
|
-
%font{:color => 'green'}#{(defined? message) ? message : ''}
|
44
43
|
%br/
|
44
|
+
%input{:type => 'submit', :value => 'Delete'}/
|
45
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
46
|
+
%p Results:
|
47
|
+
%br/
|
48
|
+
%p
|
49
|
+
%span{:style=>"color: red"}#{(defined? message) ? message : ''}
|
50
|
+
%br/
|
45
51
|
|
46
52
|
= partial :_others_samples
|
@@ -35,41 +35,43 @@
|
|
35
35
|
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
36
36
|
%p Enter data for request and press "Make request" button
|
37
37
|
%form{:action => '/sample31', :enctype => 'multipart/form-data', :method => 'post'}
|
38
|
-
%label{:for => '
|
38
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
39
39
|
%br/
|
40
|
-
%input{:type=>'text', :name=>'
|
40
|
+
%input{:type=>'text', :name=>'clientId'}
|
41
41
|
%br/
|
42
|
-
%label{:for => '
|
42
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
43
43
|
%br/
|
44
|
-
%input{:type=>'text', :name=>'
|
44
|
+
%input{:type=>'text', :name=>'privateKey'}
|
45
45
|
%br/
|
46
|
-
%label{:for => '
|
46
|
+
%label{:for => 'templateGuid'} Template file GUID
|
47
47
|
%br/
|
48
|
-
%input{:type=>'text', :name=>'
|
48
|
+
%input{:type=>'text', :name=>'templateGuid'}
|
49
49
|
%br/
|
50
|
-
%label{:for => 'email'} Email
|
51
50
|
%br/
|
52
|
-
%
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
51
|
+
%div{:style => 'background-color:#e5e5e5;border:3px double gray;width:700px;padding:20px;font-size:10pt;'}
|
52
|
+
%label{:for => 'email'} What is your email?
|
53
|
+
%input{:type=>'text', :name=>'email'}
|
54
|
+
%br/
|
55
|
+
%br/
|
56
|
+
%label{:for => 'name'} What is your name?
|
57
|
+
%input{:type=>'text', :name=>'name'}
|
58
|
+
%br/
|
59
|
+
%br/
|
60
|
+
%label{:for => 'lastName'} What is your last name?
|
61
|
+
%input{:type=>'text', :name=>'lastName'}
|
62
|
+
%br/
|
63
|
+
%br/
|
64
|
+
%label{:for => 'country'} What is your country?
|
65
|
+
%input{:type=>'text', :name=>'country'}
|
66
|
+
%br/
|
67
|
+
%br/
|
68
|
+
%label{:for => 'city'} What is your city?
|
69
|
+
%input{:type=>'text', :name=>'city'}
|
70
|
+
%br/
|
71
|
+
%br/
|
72
|
+
%label{:for => 'street'} What is your street?
|
73
|
+
%input{:type=>'text', :name=>'street'}
|
74
|
+
%br/
|
73
75
|
%br/
|
74
76
|
%label{:for=>'callback'}
|
75
77
|
Callback URL
|
@@ -78,6 +80,11 @@
|
|
78
80
|
%font{:color=>'grey'} (For test Callback you can use this URL: http://groupdocs-ruby-samples.herokuapp.com/sample31/callback)
|
79
81
|
%input{:type=>'text', :size=>'70', :value=>"#{(defined? callback) ? callback : ''}", :name=>'callback'}
|
80
82
|
|
83
|
+
%br/
|
84
|
+
%label{:for => 'basePath'} Base Path
|
85
|
+
%span{:class => 'optional'} (Optional)
|
86
|
+
%br/
|
87
|
+
%input{:type=>'text', :name=>'basePath'}
|
81
88
|
%br/
|
82
89
|
%br/
|
83
90
|
|
@@ -87,10 +94,10 @@
|
|
87
94
|
%a{:href=>'/templates/merge_feid2_doc.docx'} Download sample Docx file
|
88
95
|
%br/
|
89
96
|
%br/
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
97
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
98
|
+
%p Results:
|
99
|
+
%iframe{:id=>'downloadframe', :style=>'display:none'}
|
100
|
+
#{(defined? iframe) ? iframe : ''}
|
94
101
|
|
95
102
|
= partial :_others_samples
|
96
103
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
.samplecontent{:style => 'padding:10px;'}
|
5
5
|
%span.description
|
6
6
|
%i
|
7
|
-
This sample will show how to create signature form, publish it and configure notification
|
7
|
+
This sample will show how to create signature form, publish it and configure notification when it was signed using Ruby SDK
|
8
8
|
%br/
|
9
9
|
%br/
|
10
10
|
/
|
@@ -21,39 +21,41 @@
|
|
21
21
|
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
22
22
|
%p
|
23
23
|
Email = #{(defined? email) ? email : ''}
|
24
|
+
%p
|
25
|
+
Callback = #{(defined? callback) ? callback : ''}
|
24
26
|
%p
|
25
27
|
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
26
28
|
%br/
|
27
29
|
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
28
30
|
%p Enter data for request and press "Make request" button
|
29
31
|
%form{:action => '/sample32', :enctype => 'multipart/form-data', :method => 'post'}
|
30
|
-
%label{:for => '
|
32
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
31
33
|
%br/
|
32
|
-
%input{:type=>'text', :name=>'
|
34
|
+
%input{:type=>'text', :name=>'clientId'}
|
33
35
|
%br/
|
34
|
-
%label{:for => '
|
36
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
35
37
|
%br/
|
36
|
-
%input{:type=>'text', :name=>'
|
38
|
+
%input{:type=>'text', :name=>'privateKey'}
|
37
39
|
%br/
|
38
40
|
|
39
41
|
|
40
42
|
%div.guid_radio
|
41
|
-
%input{:type=>'radio', :name=>'source', :value=>'form'
|
43
|
+
%input{:type=>'radio', :name=>'source', :value=>'form'} Form GUID
|
42
44
|
%br/
|
43
|
-
%input{:type=>'radio', :name=>'source', :value=>'template'} Template GUID
|
45
|
+
%input{:type=>'radio', :name=>'source', :value=>'template', :checked=>'checked'} Template GUID
|
44
46
|
%br/
|
45
47
|
|
46
|
-
%div.guid_field
|
48
|
+
%div.guid_field{:style=>'display:none;'}
|
47
49
|
%label{:for=>'form', :id=>'form'} Form GUID
|
48
50
|
%br/
|
49
|
-
%input{:type=>'text', :name=>'
|
51
|
+
%input{:type=>'text', :name=>'formGuid'}
|
50
52
|
|
51
|
-
%div.guid_field
|
53
|
+
%div.guid_field
|
52
54
|
%label{:for=>'template'} Template GUID
|
53
55
|
%br/
|
54
|
-
%input{:type=>'text', :name=>'
|
56
|
+
%input{:type=>'text', :name=>'templateGuid'}
|
55
57
|
|
56
|
-
%label{:for=>'email'
|
58
|
+
%label{:for=>'email'} Email for notification
|
57
59
|
%br/
|
58
60
|
%input{:type=>'text', :name=>'email'}
|
59
61
|
%br/
|
@@ -62,22 +64,25 @@
|
|
62
64
|
%span.optional (Optional)
|
63
65
|
%br/
|
64
66
|
%font{:color=>'grey'} (For test Callback you can use this URL: http://groupdocs-ruby-samples.herokuapp.com/sample32/callback)
|
65
|
-
%input{:type=>'text', :size=>'70', :value=>"#{(defined? callback) ? callback : ''}", :name=>'
|
67
|
+
%input{:type=>'text', :size=>'70', :value=>"#{(defined? callback) ? callback : ''}", :name=>'callbackUrl'}
|
68
|
+
%br/
|
69
|
+
%label{:for => 'basePath'} Base Path
|
70
|
+
%span{:class => 'optional'} (Optional)
|
71
|
+
%br/
|
72
|
+
%input{:type=>'text', :name=>'basePath', :id=>'basePath'}
|
66
73
|
%br/
|
67
74
|
%br/
|
68
75
|
|
69
|
-
%input{:type => 'submit', :value => '
|
70
|
-
|
71
|
-
|
76
|
+
%input{:type => 'submit', :value => 'Publish form'}
|
72
77
|
|
73
78
|
%br/
|
74
79
|
%a{:href=>'/templates/merge_feid_doc.docx'} Download sample Docx file
|
75
80
|
%br/
|
76
81
|
%br/
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
82
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
83
|
+
%p
|
84
|
+
Results:
|
85
|
+
#{(defined? iframe) ? iframe : ''}
|
81
86
|
|
82
87
|
= partial :_others_samples
|
83
88
|
|
@@ -92,19 +97,3 @@
|
|
92
97
|
});
|
93
98
|
});
|
94
99
|
|
95
|
-
function check() {
|
96
|
-
$.get('/sample32/check', function(data) {
|
97
|
-
$('#results_status').fadeOut("slow");
|
98
|
-
$('#downloadframe').attr("src", "/sample32/downloads/" + data);
|
99
|
-
}, 'text');
|
100
|
-
}
|
101
|
-
|
102
|
-
$(function($){
|
103
|
-
callbackUrl = $("input[name=callback]").val();
|
104
|
-
|
105
|
-
if(callbackUrl !== "") {
|
106
|
-
$('#results_status').fadeIn("slow");
|
107
|
-
setTimeout(check, 5000)
|
108
|
-
}
|
109
|
-
|
110
|
-
});
|