groupdocs 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,99 +1,105 @@
|
|
1
|
-
%
|
2
|
-
%
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
1
|
+
%head
|
2
|
+
%title Sample 32 - How to create signature form, publish it and configure notification via callback
|
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 32 - How to create signature form, publish it and configure notification via callback
|
10
|
+
.samplecontent{:style => 'padding:10px;'}
|
11
|
+
%span.description
|
12
|
+
%i
|
13
|
+
This sample will show how to create signature form, publish it and configure notification when it was signed using Ruby SDK
|
14
|
+
%br/
|
15
|
+
%br/
|
16
|
+
/
|
17
|
+
%span.documentation
|
18
|
+
%a{:href => '/docs/sample32.html'} Builtin documentation for this sample
|
19
|
+
|
20
|
+
%br/
|
21
|
+
%br/
|
22
|
+
%p
|
23
|
+
You entered:
|
24
|
+
%p
|
25
|
+
ClientID = #{(defined? userId) ? userId : ''}
|
26
|
+
%p
|
27
|
+
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
28
|
+
%p
|
29
|
+
Email = #{(defined? email) ? email : ''}
|
30
|
+
%p
|
31
|
+
Callback = #{(defined? callback) ? callback : ''}
|
32
|
+
%p
|
33
|
+
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
34
|
+
%br/
|
35
|
+
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
36
|
+
%p Enter data for request and press "Make request" button
|
37
|
+
%form{:action => '/sample-32-how-to-create-signature-form-publish-it-and-configure-notification-via-callback', :enctype => 'multipart/form-data', :method => 'post'}
|
38
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
39
|
+
%br/
|
40
|
+
%input{:type=>'text', :name=>'clientId'}
|
41
|
+
%br/
|
42
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
43
|
+
%br/
|
44
|
+
%input{:type=>'text', :name=>'privateKey'}
|
45
|
+
%br/
|
13
46
|
|
14
|
-
%br/
|
15
|
-
%br/
|
16
|
-
%p
|
17
|
-
You entered:
|
18
|
-
%p
|
19
|
-
ClientID = #{(defined? userId) ? userId : ''}
|
20
|
-
%p
|
21
|
-
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
22
|
-
%p
|
23
|
-
Email = #{(defined? email) ? email : ''}
|
24
|
-
%p
|
25
|
-
Callback = #{(defined? callback) ? callback : ''}
|
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 => '/sample32', :enctype => 'multipart/form-data', :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
47
|
|
48
|
+
%div.guid_radio
|
49
|
+
%input{:type=>'radio', :name=>'source', :value=>'form'} Form GUID
|
50
|
+
%br/
|
51
|
+
%input{:type=>'radio', :name=>'source', :value=>'template', :checked=>'checked'} Template GUID
|
52
|
+
%br/
|
41
53
|
|
42
|
-
|
43
|
-
|
54
|
+
%div.guid_field{:style=>'display:none;'}
|
55
|
+
%label{:for=>'form', :id=>'form'} Form GUID
|
56
|
+
%br/
|
57
|
+
%input{:type=>'text', :name=>'formGuid'}
|
58
|
+
|
59
|
+
%div.guid_field
|
60
|
+
%label{:for=>'template'} Template GUID
|
61
|
+
%br/
|
62
|
+
%input{:type=>'text', :name=>'templateGuid'}
|
63
|
+
|
64
|
+
%label{:for=>'email'} Email for notification
|
44
65
|
%br/
|
45
|
-
%input{:type=>'
|
66
|
+
%input{:type=>'text', :name=>'email'}
|
46
67
|
%br/
|
47
|
-
|
48
|
-
|
49
|
-
|
68
|
+
%label{:for=>'callback'}
|
69
|
+
Callback URL
|
70
|
+
%span.optional (Optional)
|
71
|
+
%br/
|
72
|
+
%font{:color=>'grey'} (For test Callback you can use this URL: http://groupdocs-ruby-samples.herokuapp.com/sample32/callback)
|
73
|
+
%input{:type=>'text', :size=>'70', :value=>"#{(defined? callback) ? callback : ''}", :name=>'callbackUrl'}
|
50
74
|
%br/
|
51
|
-
%
|
52
|
-
|
53
|
-
|
54
|
-
%
|
75
|
+
%label{:for => 'basePath'} Base Path
|
76
|
+
%span{:class => 'optional'} (Optional)
|
77
|
+
%br/
|
78
|
+
%input{:type=>'text', :name=>'basePath', :id=>'basePath'}
|
55
79
|
%br/
|
56
|
-
%input{:type=>'text', :name=>'templateGuid'}
|
57
|
-
|
58
|
-
%label{:for=>'email'} Email for notification
|
59
|
-
%br/
|
60
|
-
%input{:type=>'text', :name=>'email'}
|
61
|
-
%br/
|
62
|
-
%label{:for=>'callback'}
|
63
|
-
Callback URL
|
64
|
-
%span.optional (Optional)
|
65
80
|
%br/
|
66
|
-
%font{:color=>'grey'} (For test Callback you can use this URL: http://groupdocs-ruby-samples.herokuapp.com/sample32/callback)
|
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'}
|
73
|
-
%br/
|
74
|
-
%br/
|
75
81
|
|
76
|
-
|
82
|
+
%input{:type => 'submit', :value => 'Publish form'}
|
77
83
|
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
84
|
+
%br/
|
85
|
+
%a{:href=>'/templates/merge_feid_doc.docx'} Download sample Docx file
|
86
|
+
%br/
|
87
|
+
%br/
|
88
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
89
|
+
%p
|
90
|
+
Results:
|
91
|
+
#{(defined? iframe) ? iframe : ''}
|
86
92
|
|
87
|
-
= partial :_others_samples
|
93
|
+
= partial :_others_samples
|
88
94
|
|
89
|
-
%script{:src=>'//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'}
|
90
|
-
:javascript
|
91
|
-
|
95
|
+
%script{:src=>'//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'}
|
96
|
+
:javascript
|
97
|
+
$(function($){
|
92
98
|
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
99
|
+
$('.guid_radio input').change(function(){
|
100
|
+
var elementIndex = $(this).parent().children('input').index($(this));
|
101
|
+
$('.guid_field').hide();
|
102
|
+
$('.guid_field').eq(elementIndex).show();
|
103
|
+
});
|
97
104
|
});
|
98
|
-
});
|
99
105
|
|
@@ -1,60 +1,66 @@
|
|
1
|
-
%
|
2
|
-
%
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
%
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
1
|
+
%head
|
2
|
+
%title Sample 33 - How to convert and merge/combine several HTML documents into one PDF 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 33 - How to convert and merge/combine several HTML documents into one PDF Document
|
10
|
+
.samplecontent{:style => 'padding:10px;'}
|
11
|
+
%i This sample will show how to convert and to merge/combine several HTML documents into one PDF Document
|
12
|
+
%br/
|
13
|
+
%br/
|
14
|
+
%span.documentation
|
15
|
+
%a{:href => '/docs/sample33.html'} Builtin documentation for this sample
|
16
|
+
%br/
|
17
|
+
%br/
|
18
|
+
%p
|
19
|
+
You entered:
|
20
|
+
%p
|
21
|
+
UserId = #{(defined? userId) ? userId : ''}
|
22
|
+
%p
|
23
|
+
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
18
24
|
|
19
25
|
|
20
|
-
|
26
|
+
%p
|
21
27
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
28
|
+
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
29
|
+
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
30
|
+
%p Enter credentials and file URLs to any documents or HTML pages and press "Make request" button
|
31
|
+
%form{:action => '/sample-33-how-to-convert-several-html-documents-into-one-pdf-document', :enctype => 'multipart/form-data', :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 => 'url1'} 1. Document URL
|
41
|
+
%br/
|
42
|
+
%input{:type=>'text', :name=>'url1', :size=>60}
|
43
|
+
%br/
|
44
|
+
%label{:for => 'url2'} 2. Document URL
|
45
|
+
%br/
|
46
|
+
%input{:type=>'text', :name=>'url2', :size=>60}
|
47
|
+
%br/
|
48
|
+
%label{:for => 'url3'} 3. Document URL
|
49
|
+
%br/
|
50
|
+
%input{:type=>'text', :name=>'url3', :size=>60}
|
51
|
+
%br/
|
52
|
+
%label{:for => 'basePath'} Base Path
|
53
|
+
%span{:class => 'optional'} (Optional)
|
54
|
+
%br/
|
55
|
+
%input{:type=>'text', :name=>'basePath'}
|
56
|
+
%br/
|
57
|
+
%br/
|
58
|
+
%input{:type => 'submit', :value => 'Make Request'}/
|
59
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
60
|
+
%p Results:
|
61
|
+
%br/
|
62
|
+
%p #{(defined? iframe) ? iframe : ''}
|
55
63
|
%br/
|
56
|
-
%p #{(defined? iframe) ? iframe : ''}
|
57
|
-
%br/
|
58
64
|
|
59
|
-
= partial :_others_samples
|
65
|
+
= partial :_others_samples
|
60
66
|
|
@@ -1,48 +1,53 @@
|
|
1
|
-
%
|
2
|
-
%
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
%
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
%p
|
14
|
-
You entered:
|
15
|
-
%p
|
16
|
-
UserId = #{(defined? userId) ? userId : ''}
|
17
|
-
%p
|
18
|
-
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
19
|
-
%p
|
20
|
-
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
21
|
-
|
22
|
-
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
23
|
-
%p Enter data for request and press "Make request" button
|
24
|
-
%form{:action => '/sample34', :enctype => 'multipart/form-data', :method => 'post'}
|
25
|
-
%label{:for => 'clientId'} GroupDocs Client ID
|
26
|
-
%br/
|
27
|
-
%input{:type=>'text', :name=>'clientId'}
|
28
|
-
%br/
|
29
|
-
%label{:for => 'privateKey'} GroupDocs Private Key
|
30
|
-
%br/
|
31
|
-
%input{:type=>'text', :name=>'privateKey'}
|
32
|
-
%br/
|
33
|
-
%label{:for => 'path'} Folder name
|
34
|
-
%br/
|
35
|
-
%input{:type=>'text', :name=>'folder'}
|
36
|
-
%br/
|
37
|
-
%label{:for => 'basePath'} Base Path
|
38
|
-
%span{:class => 'optional'} (Optional)
|
39
|
-
%br/
|
40
|
-
%input{:type=>'text', :name=>'basePath'}
|
41
|
-
%br/
|
42
|
-
%br/
|
43
|
-
%input{:type => 'submit', :value => 'Make Request'}
|
1
|
+
%head
|
2
|
+
%title Sample 34 - How to create folder in the GroupDocs account
|
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 34 - How to create folder in the GroupDocs account
|
10
|
+
.samplecontent{:style => 'padding:10px;'}
|
11
|
+
%i This sample will show how to create folder in the GroupDocs account using Ruby SDK
|
12
|
+
%br/
|
44
13
|
%br/
|
45
|
-
%
|
46
|
-
|
14
|
+
%span.documentation
|
15
|
+
%a{:href => '/docs/sample34.html'} Builtin documentation for this sample
|
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
|
+
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
26
|
+
|
27
|
+
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
28
|
+
%p Enter data for request and press "Make request" button
|
29
|
+
%form{:action => '/sample-34-how-to-create-folder-in-the-groupdocs-account', :enctype => 'multipart/form-data', :method => 'post'}
|
30
|
+
%label{:for => 'clientId'} GroupDocs Client ID
|
31
|
+
%br/
|
32
|
+
%input{:type=>'text', :name=>'clientId'}
|
33
|
+
%br/
|
34
|
+
%label{:for => 'privateKey'} GroupDocs Private Key
|
35
|
+
%br/
|
36
|
+
%input{:type=>'text', :name=>'privateKey'}
|
37
|
+
%br/
|
38
|
+
%label{:for => 'path'} Folder name
|
39
|
+
%br/
|
40
|
+
%input{:type=>'text', :name=>'folder'}
|
41
|
+
%br/
|
42
|
+
%label{:for => 'basePath'} Base Path
|
43
|
+
%span{:class => 'optional'} (Optional)
|
44
|
+
%br/
|
45
|
+
%input{:type=>'text', :name=>'basePath'}
|
46
|
+
%br/
|
47
|
+
%br/
|
48
|
+
%input{:type => 'submit', :value => 'Make Request'}
|
49
|
+
%br/
|
50
|
+
%p Results:
|
51
|
+
%div{:style => "color:green"} #{(defined? message) ? message : ''}
|
47
52
|
|
48
|
-
= partial :_others_samples
|
53
|
+
= partial :_others_samples
|
@@ -1,94 +1,100 @@
|
|
1
|
-
%
|
2
|
-
%
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
%
|
1
|
+
%head
|
2
|
+
%title Sample 35 - How to get fields and their data from PDF file
|
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 35 - How to get fields and their data from PDF file
|
10
|
+
.samplecontent{:style => 'padding:10px;'}
|
11
|
+
%span.description
|
12
|
+
This sample will show how to get fields and their data from PDF file programmatically and dynamically create HTML form using the data about fields.
|
13
|
+
%br/
|
14
|
+
%br/
|
15
|
+
/
|
16
|
+
%span.documentation
|
17
|
+
%a{:href => '/docs/sample35.html'} Builtin documentation for this sample
|
12
18
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
19
|
+
%br/
|
20
|
+
%br/
|
21
|
+
%p
|
22
|
+
You entered:
|
23
|
+
%p
|
24
|
+
ClientID = #{(defined? userId) ? userId : ''}
|
25
|
+
%p
|
26
|
+
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
27
|
+
%p
|
28
|
+
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
29
|
+
%br/
|
30
|
+
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
31
|
+
%p Enter data for request and press "Make request" button
|
26
32
|
|
27
|
-
|
28
|
-
|
29
|
-
%br/
|
30
|
-
%input{:type=>'text', :name=>'clientId', :id=>'client_id', :value=>"#{(defined? userId) ? userId : ''}"}
|
31
|
-
%br/
|
32
|
-
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
33
|
-
%br/
|
34
|
-
%input{:type=>'text', :name=>'privateKey', :id=>'private_key', :value=>"#{(defined? privateKey) ? privateKey : ''}"}
|
35
|
-
%br/
|
36
|
-
|
37
|
-
|
38
|
-
%div.guid_radio{:style=>"#{(defined? userId) ? 'display:none' : 'display:block'}"}
|
39
|
-
%input{:type=>'radio', :name=>'source', :value=>'guid'} File ID (GUID)
|
33
|
+
%form{:action => "#{(defined? userId) ? '//sample-35-how-to-get-fields-and-their-data-from-pdf-file/check' : '//sample-35-how-to-get-fields-and-their-data-from-pdf-file'}", :enctype => 'multipart/form-data', :method => 'post', :id=>'form'}
|
34
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
40
35
|
%br/
|
41
|
-
%input{:type=>'
|
36
|
+
%input{:type=>'text', :name=>'clientId', :id=>'client_id', :value=>"#{(defined? userId) ? userId : ''}"}
|
42
37
|
%br/
|
43
|
-
%
|
38
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
39
|
+
%br/
|
40
|
+
%input{:type=>'text', :name=>'privateKey', :id=>'private_key', :value=>"#{(defined? privateKey) ? privateKey : ''}"}
|
44
41
|
%br/
|
45
42
|
|
46
|
-
%div.fields{:style=>"#{(defined? userId) ? 'display:none' : 'display:block'}"}
|
47
|
-
%div.guid_field{:style=>'display:none;'}
|
48
|
-
%label{:for=>'fileId', :id=>'guid'} File ID (GUID)
|
49
|
-
%br/
|
50
|
-
%input{:type=>'text', :name=>'fileId', :id=>'guid', :value=>"#{(defined? fileId) ? fileId : ''}"}
|
51
43
|
|
52
|
-
%div.
|
53
|
-
%
|
44
|
+
%div.guid_radio{:style=>"#{(defined? userId) ? 'display:none' : 'display:block'}"}
|
45
|
+
%input{:type=>'radio', :name=>'source', :value=>'guid'} File ID (GUID)
|
54
46
|
%br/
|
55
|
-
%input{:type=>'
|
56
|
-
|
57
|
-
|
58
|
-
%label{:for=>'url', :id=>'url'} Upload file from URL
|
47
|
+
%input{:type=>'radio', :name=>'source', :value=>'local', :checked=>'checked'}Upload local file
|
48
|
+
%br/
|
49
|
+
%input{:type=>'radio', :name=>'source', :value=>'url'} Upload file from URL
|
59
50
|
%br/
|
60
|
-
%input{:type=>'text', :name=>'url', :id=>'url'}
|
61
|
-
%label{:for => 'basePath'} Base Path
|
62
|
-
%br/
|
63
|
-
%font{:color=>'grey'} (https://stage-api-groupdocs.dynabic.com)
|
64
|
-
%br/
|
65
|
-
%input{:type=>'text', :name=>'basePath', :id=>'base_path', :value=>"#{(defined? base_path) ? base_path : ''}"}
|
66
|
-
%br/
|
67
|
-
#{(defined? html) ? "<div style='background-color:#e5e5e5;border:3px double gray;width:700px;padding:3px;font-size:10pt;>#{html}</div>" : '' }
|
68
|
-
%br/
|
69
|
-
%input{:type => 'submit', :id => 'button', :value => 'Make request'}
|
70
51
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
52
|
+
%div.fields{:style=>"#{(defined? userId) ? 'display:none' : 'display:block'}"}
|
53
|
+
%div.guid_field{:style=>'display:none;'}
|
54
|
+
%label{:for=>'fileId', :id=>'guid'} File ID (GUID)
|
55
|
+
%br/
|
56
|
+
%input{:type=>'text', :name=>'fileId', :id=>'guid', :value=>"#{(defined? fileId) ? fileId : ''}"}
|
57
|
+
|
58
|
+
%div.guid_field
|
59
|
+
%label{:for=>'file'} Upload local file
|
60
|
+
%br/
|
61
|
+
%input{:type=>'file', :name=>'file', :id=>'file'}
|
62
|
+
|
63
|
+
%div.guid_field{:style=>'display:none;'}
|
64
|
+
%label{:for=>'url', :id=>'url'} Upload file from URL
|
65
|
+
%br/
|
66
|
+
%input{:type=>'text', :name=>'url', :id=>'url'}
|
67
|
+
%label{:for => 'basePath'} Base Path
|
68
|
+
%br/
|
69
|
+
%font{:color=>'grey'} (https://stage-api-groupdocs.dynabic.com)
|
70
|
+
%br/
|
71
|
+
%input{:type=>'text', :name=>'basePath', :id=>'base_path', :value=>"#{(defined? base_path) ? base_path : ''}"}
|
72
|
+
%br/
|
73
|
+
#{(defined? html) ? "<div style='background-color:#e5e5e5;border:3px double gray;width:700px;padding:3px;font-size:10pt;>#{html}</div>" : '' }
|
74
|
+
%br/
|
75
|
+
%input{:type => 'submit', :id => 'button', :value => 'Make request'}
|
76
|
+
|
77
|
+
%br/
|
78
|
+
%a{:href=>'/templates/test_all_fields2.pdf'} Download sample Pdf file
|
79
|
+
%br/
|
80
|
+
%br/
|
81
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
82
|
+
%p
|
83
|
+
Results:
|
84
|
+
#result
|
85
|
+
#{(defined? iframe) ? iframe : ''}
|
80
86
|
|
81
|
-
= partial :_others_samples
|
82
|
-
%script{:src=>'//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'}
|
87
|
+
= partial :_others_samples
|
88
|
+
%script{:src=>'//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'}
|
83
89
|
|
84
|
-
:javascript
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
+
:javascript
|
91
|
+
$(function($){
|
92
|
+
$('.guid_radio input').change(function(){
|
93
|
+
var elementIndex = $(this).parent().children('input').index($(this));
|
94
|
+
$('.guid_field').hide();
|
95
|
+
$('.guid_field').eq(elementIndex).show();
|
96
|
+
});
|
90
97
|
});
|
91
|
-
});
|
92
98
|
|
93
99
|
|
94
100
|
|