-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.html
223 lines (212 loc) · 10.3 KB
/
main.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<title>Title of the document</title>
<link rel="stylesheet" href="./css/main.css">
<link rel="stylesheet" href="index.css">
</head>
<body>
<div class="header" style="background-color: #EDF3FB;;">
<div class="nav-container">
<div class="logo">
<a href="index.html"><img src="assets/logo.svg"></a>
</div>
<div class="nav-item font-small">
<a href="main.html">Документация</a>
</div>
<div class="nav-item font-small">
<a href="">Тарифы</a>
</div>
<div class="nav-item font-small">
<a href="">Частые вопросы</a>
</div>
</div>
<div>
<button class="nav-btn font-small">Войти</button>
</div>
</div>
<div class="header-api">
EazyDocs API</div>
<div class="header-context">EazyDocs API can help you to create word and pdf templates, documents from json file.
Each line of the
document should be described properly
according to rules shown below.
</div>
<div class="print-word">Print Word/PDF</div>
<div class="word-template">create word/pdf template - by defining each line of the document you can create a
word/pdf
document. </div>
<div class="http">HTTP</div>
<div class="curl">
<div class="curl-text">
<div class="text-api">curl -i -X POST <span
style="color: #EB825E;">"https://eazydocs.com/api/print-word"</span></div>
</div>
</div>
<div class="curl" style="margin-top: 6%;">
<div class="curl-text">
<div class="text-api">curl -i -X POST <span
style="color: #EB825E;">"https://eazydocs.com/api/print-pdf"</span></div>
</div>
</div>
<div class="curl-body">
Body raw (json)
</div>
<div class="curl-json">
<div class="curl-json-rectangle">
<div style="margin-left: 5px;">{<br>
<div style="margin-left:10px;"><span class="text">"documentLines:</span> [
<div style="margin-left:20px">{<br>
<div style="margin-left:10px"><span class="text">"line_type"</span>: <span
class="text">"table"</span>,<br>
<span class="text">"order"</span>: <span class="text">2</span><br>
<span class="text">"data"</span>: [ <br>
<div style="margin-left: 15px;">
<span class="text">"row1col1"</span>,<br>
<span class="text">"row1col2"</span>,<br>
<span class="text">"row1col3"</span><br>
</div>
],<br>
<span class="text">"column_size":</span> [ <br>
<div style="margin-left: 15px;">
<span class="text">20</span>,<br>
<span class="text">30</span>,<br>
<span class="text">5</span><br>
</div>
]
</div>
},
<div>{
<div style="margin-left:10px"><span class="text">"line_type"</span>: <span
class="text">"record"</span>,<br>
<span class="text">"order": 2</span>,<br>
<span class="text">"title"</span>: <span class="text">"title"</span>,<br>
<span class="text">"field"</span>: <span class="text">"field"</span>,<br>
<span class="text">"substring"</span>: <span class="text">"substring", </span><br>
<span class="text">"title_settings" </span>: {
<div style="margin-left: 10px;">
<span class="text">"font"</span>: <span class="text">12</span>,<br>
<span class="text">"alignment"</span>: <span class="text">"L"</span>,<br>
<span class="text">"size_type"</span>: <span class="text">"content"</span>,<br>
<span class="text">"percent_size"</span>: <span class="text">12</span>,<br>
<span class="text">"text_type"</span>: <span class="text">""</span>
</div>
},<br>
<span class="text">"field_settings"</span>: {
<div style="margin-left: 10px;">
<span class="text">"font": 12</span>,<br>
<span class="text">"alignment"</span>: <span class="text">"L"</span>,<br>
<span class="text">"size_type"</span>: <span class="text">"content"</span>,<br>
<span class="text">"percent_size"</span>: <span class="text">12</span>,<br>
<span class="text">"text_type"</span>: <span class="text">""</span>
</div>
},<br>
<span class="text">"substring_settings"</span>: {
<div style="margin-left: 10px;"><span class="text">"font"</span>: <span
class="text">12</span><br>
</div>
}
</div>
</div>
}
</div>
]
</div>
}
</div>
</div>
</div>
<div class="fields">Fields</div>
<div class="fields-description">
<span class="text"><strong>line type</strong></span> - it may have only two values: record or table,<br>
<span class="text"><strong>order</strong></span> - required, order of the line,<br>
<span class="text"><strong>data</strong></span> - required for tables, data for filling the table,<br>
<span class="text"><strong>column size</strong></span> - optional for tables, size of columns in percent.
The
default value table will be
equally divided
according to column number.<br>
<span class="text"><strong>title</strong></span> - required for records, each line consists of title and
optional field. Title carries
information about
the field. For instance, “name”, “date” etc.<br>
<span class="text"><strong>field</strong></span> - optional, some value which is described in title. If not
defined line will be
printed,<br>
<span class="text"><strong>substring</strong></span> - optional, it is printed under the field line, usually
used in templates<br><br>
<span class="text"><strong>title_settings</strong></span> – required object for defining font and size of
the
title. <br>
<ul>
<li><span class="text"><strong>size_type</strong></span> – text of title is inside cell of the table, so
the
size
can be different from the length of the text. By default it’s equal, but it can be changed. It have
3
options:
content which is default value, endLine and percent.</li>
<ul>
<li><span class="text"><strong>endLine</strong></span> – extends the cell of the title until the end
of the
line.</li>
<li><span class="text"><strong>percent</strong></span> – width of the paper is considered as 100%
(excluding
the
margins). Needs an optional field value by
which the size of the cell will be calculated. </li>
</ul>
<li><span class="text"><strong>font</strong></span> – by default 12. </li>
<li><span class="text"><strong>percent_size</strong></span> – size of title cell in percent. Required
when
the
size_type is percent. </li>
<li><span class="text"><strong>alignment </strong></span>– alignment of the text, by default L (left) it
can
be
left, right or center. Value options: L,R,C</li>
</ul>
<span class="text"><strong>field_settings</strong></span> – object for defining font and size of the field.
Same
options as for title settings.<br><br>
<span class="text"><strong>substring_settings</strong></span> – object for defining font and size of the
substring.
<ul>
<li><span class="text"><strong>font</strong></span> – by default 8.</li>
<li><span class="text"><strong>alignment</strong></span> - alignment of the text, by default L (left) it
can
be
left, right or center. Value options: L,R,C</li>
</ul>
</div>
<div class="footer" style="position:absolute;top: 2140px;">
<div class="logo">
<img src="assets/logo.svg">
</div>
<div class="navs">
<div class="nav-item font-small">
<a href="">Terms</a>
</div>
<div class="nav-item font-small">
<a href="">Privacy</a>
</div>
<div class="nav-item font-small">
<a href="">Cookies</a>
</div>
</div>
<div class="logos">
<div class="footer-icon">
<img src="assets/icon1.svg">
</div>
<div class="footer-icon">
<img src="assets/icon2.svg">
</div>
<div class="footer-icon">
<img src="assets/icon3.svg">
</div>
</div>
</div>
</body>
</html>