| line |
true |
false |
branch |
|
23
|
0 |
19653 |
if (len < 0) return PDFMAKE_EINVAL; |
|
30
|
0 |
1251 |
if (pdfmake_buf_append_byte(buf, '/') != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
49
|
0 |
13451 |
if (pdfmake_buf_append_cstr(buf, op) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
58
|
0 |
1236 |
if (pdfmake_buf_append_byte(buf, '(') != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
60
|
80691 |
1236 |
for (i = 0; i < len; i++) { |
|
66
|
0 |
2 |
if (pdfmake_buf_append_byte(buf, '\\') != PDFMAKE_OK) |
|
68
|
0 |
2 |
if (pdfmake_buf_append_byte(buf, ch) != PDFMAKE_OK) |
|
72
|
0 |
0 |
if (pdfmake_buf_append_cstr(buf, "\\n") != PDFMAKE_OK) |
|
76
|
0 |
0 |
if (pdfmake_buf_append_cstr(buf, "\\r") != PDFMAKE_OK) |
|
80
|
0 |
0 |
if (pdfmake_buf_append_cstr(buf, "\\t") != PDFMAKE_OK) |
|
84
|
0 |
80689 |
if (pdfmake_buf_append_byte(buf, ch) != PDFMAKE_OK) |
|
99
|
0 |
332 |
if (!arena) return NULL; |
|
102
|
0 |
332 |
if (!c) return NULL; |
|
105
|
0 |
332 |
if (pdfmake_buf_init(&c->buf) != PDFMAKE_OK) { |
|
115
|
0 |
332 |
if (!c) return; |
|
122
|
0 |
296 |
if (!c) return NULL; |
|
124
|
0 |
296 |
if (pdfmake_buf_append_byte(&c->buf, '\0') != PDFMAKE_OK) |
|
132
|
301 |
0 |
return c ? c->buf.len : 0; |
|
137
|
41 |
0 |
if (c) pdfmake_buf_clear(&c->buf); |
|
146
|
0 |
125 |
if (!c) return PDFMAKE_EINVAL; |
|
152
|
0 |
125 |
if (!c) return PDFMAKE_EINVAL; |
|
161
|
0 |
23 |
if (!c) return PDFMAKE_EINVAL; |
|
164
|
0 |
23 |
if (append_number(buf, a) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
165
|
0 |
23 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
166
|
0 |
23 |
if (append_number(buf, b) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
167
|
0 |
23 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
168
|
0 |
23 |
if (append_number(buf, c_) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
169
|
0 |
23 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
170
|
0 |
23 |
if (append_number(buf, d) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
171
|
0 |
23 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
172
|
0 |
23 |
if (append_number(buf, e) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
173
|
0 |
23 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
174
|
0 |
23 |
if (append_number(buf, f) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
175
|
0 |
23 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
182
|
0 |
62 |
if (!c) return PDFMAKE_EINVAL; |
|
185
|
0 |
62 |
if (append_number(buf, width) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
186
|
0 |
62 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
193
|
0 |
18 |
if (!c) return PDFMAKE_EINVAL; |
|
201
|
0 |
3 |
if (!c) return PDFMAKE_EINVAL; |
|
209
|
0 |
3 |
if (!c) return PDFMAKE_EINVAL; |
|
212
|
0 |
3 |
if (append_number(buf, limit) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
213
|
0 |
3 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
223
|
0 |
8 |
if (!c) return PDFMAKE_EINVAL; |
|
226
|
0 |
8 |
if (pdfmake_buf_append_byte(buf, '[') != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
227
|
16 |
8 |
for (i = 0; i < count; i++) { |
|
228
|
8 |
8 |
if (i > 0 && append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
|
0 |
8 |
if (i > 0 && append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
229
|
0 |
16 |
if (append_number(buf, array[i]) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
231
|
0 |
8 |
if (pdfmake_buf_append_cstr(buf, "] ") != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
232
|
0 |
8 |
if (append_number(buf, phase) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
233
|
0 |
8 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
240
|
1 |
0 |
if (!c || !intent) return PDFMAKE_EINVAL; |
|
|
0 |
1 |
if (!c || !intent) return PDFMAKE_EINVAL; |
|
243
|
0 |
1 |
if (append_name(buf, intent) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
244
|
0 |
1 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
251
|
0 |
1 |
if (!c) return PDFMAKE_EINVAL; |
|
254
|
0 |
1 |
if (append_number(buf, flatness) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
255
|
0 |
1 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
262
|
1 |
0 |
if (!c || !name) return PDFMAKE_EINVAL; |
|
|
0 |
1 |
if (!c || !name) return PDFMAKE_EINVAL; |
|
265
|
0 |
1 |
if (append_name(buf, name) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
266
|
0 |
1 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
277
|
0 |
1839 |
if (!c) return PDFMAKE_EINVAL; |
|
280
|
0 |
1839 |
if (append_number(buf, x) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
281
|
0 |
1839 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
282
|
0 |
1839 |
if (append_number(buf, y) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
283
|
0 |
1839 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
290
|
0 |
1837 |
if (!c) return PDFMAKE_EINVAL; |
|
293
|
0 |
1837 |
if (append_number(buf, x) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
294
|
0 |
1837 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
295
|
0 |
1837 |
if (append_number(buf, y) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
296
|
0 |
1837 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
306
|
0 |
13 |
if (!c) return PDFMAKE_EINVAL; |
|
309
|
0 |
13 |
if (append_number(buf, x1) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
310
|
0 |
13 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
311
|
0 |
13 |
if (append_number(buf, y1) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
312
|
0 |
13 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
313
|
0 |
13 |
if (append_number(buf, x2) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
314
|
0 |
13 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
315
|
0 |
13 |
if (append_number(buf, y2) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
316
|
0 |
13 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
317
|
0 |
13 |
if (append_number(buf, x3) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
318
|
0 |
13 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
319
|
0 |
13 |
if (append_number(buf, y3) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
320
|
0 |
13 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
329
|
0 |
1 |
if (!c) return PDFMAKE_EINVAL; |
|
332
|
0 |
1 |
if (append_number(buf, x2) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
333
|
0 |
1 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
334
|
0 |
1 |
if (append_number(buf, y2) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
335
|
0 |
1 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
336
|
0 |
1 |
if (append_number(buf, x3) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
337
|
0 |
1 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
338
|
0 |
1 |
if (append_number(buf, y3) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
339
|
0 |
1 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
348
|
0 |
1 |
if (!c) return PDFMAKE_EINVAL; |
|
351
|
0 |
1 |
if (append_number(buf, x1) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
352
|
0 |
1 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
353
|
0 |
1 |
if (append_number(buf, y1) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
354
|
0 |
1 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
355
|
0 |
1 |
if (append_number(buf, x3) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
356
|
0 |
1 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
357
|
0 |
1 |
if (append_number(buf, y3) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
358
|
0 |
1 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
367
|
0 |
82 |
if (!c) return PDFMAKE_EINVAL; |
|
370
|
0 |
82 |
if (append_number(buf, x) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
371
|
0 |
82 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
372
|
0 |
82 |
if (append_number(buf, y) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
373
|
0 |
82 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
374
|
0 |
82 |
if (append_number(buf, width) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
375
|
0 |
82 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
376
|
0 |
82 |
if (append_number(buf, height) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
377
|
0 |
82 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
383
|
0 |
2 |
if (!c) return PDFMAKE_EINVAL; |
|
393
|
0 |
1870 |
if (!c) return PDFMAKE_EINVAL; |
|
399
|
0 |
2 |
if (!c) return PDFMAKE_EINVAL; |
|
405
|
0 |
51 |
if (!c) return PDFMAKE_EINVAL; |
|
411
|
0 |
1 |
if (!c) return PDFMAKE_EINVAL; |
|
417
|
0 |
4 |
if (!c) return PDFMAKE_EINVAL; |
|
423
|
0 |
1 |
if (!c) return PDFMAKE_EINVAL; |
|
429
|
0 |
1 |
if (!c) return PDFMAKE_EINVAL; |
|
435
|
0 |
1 |
if (!c) return PDFMAKE_EINVAL; |
|
441
|
0 |
2 |
if (!c) return PDFMAKE_EINVAL; |
|
451
|
0 |
1 |
if (!c) return PDFMAKE_EINVAL; |
|
457
|
0 |
1 |
if (!c) return PDFMAKE_EINVAL; |
|
468
|
1 |
0 |
if (!c || !name) return PDFMAKE_EINVAL; |
|
|
0 |
1 |
if (!c || !name) return PDFMAKE_EINVAL; |
|
471
|
0 |
1 |
if (append_name(buf, name) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
472
|
0 |
1 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
479
|
1 |
0 |
if (!c || !name) return PDFMAKE_EINVAL; |
|
|
0 |
1 |
if (!c || !name) return PDFMAKE_EINVAL; |
|
482
|
0 |
1 |
if (append_name(buf, name) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
483
|
0 |
1 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
492
|
0 |
0 |
if (!c || !components || count == 0) return PDFMAKE_EINVAL; |
|
|
0 |
0 |
if (!c || !components || count == 0) return PDFMAKE_EINVAL; |
|
|
0 |
0 |
if (!c || !components || count == 0) return PDFMAKE_EINVAL; |
|
495
|
0 |
0 |
for (i = 0; i < count; i++) { |
|
496
|
0 |
0 |
if (append_number(buf, components[i]) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
497
|
0 |
0 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
507
|
0 |
0 |
if (!c || !components || count == 0) return PDFMAKE_EINVAL; |
|
|
0 |
0 |
if (!c || !components || count == 0) return PDFMAKE_EINVAL; |
|
|
0 |
0 |
if (!c || !components || count == 0) return PDFMAKE_EINVAL; |
|
510
|
0 |
0 |
for (i = 0; i < count; i++) { |
|
511
|
0 |
0 |
if (append_number(buf, components[i]) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
512
|
0 |
0 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
523
|
0 |
0 |
if (!c) return PDFMAKE_EINVAL; |
|
526
|
0 |
0 |
if (components && count > 0) { |
|
|
0 |
0 |
if (components && count > 0) { |
|
527
|
0 |
0 |
for (i = 0; i < count; i++) { |
|
528
|
0 |
0 |
if (append_number(buf, components[i]) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
529
|
0 |
0 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
532
|
0 |
0 |
if (name) { |
|
533
|
0 |
0 |
if (append_name(buf, name) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
534
|
0 |
0 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
545
|
0 |
0 |
if (!c) return PDFMAKE_EINVAL; |
|
548
|
0 |
0 |
if (components && count > 0) { |
|
|
0 |
0 |
if (components && count > 0) { |
|
549
|
0 |
0 |
for (i = 0; i < count; i++) { |
|
550
|
0 |
0 |
if (append_number(buf, components[i]) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
551
|
0 |
0 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
554
|
0 |
0 |
if (name) { |
|
555
|
0 |
0 |
if (append_name(buf, name) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
556
|
0 |
0 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
564
|
0 |
4 |
if (!c) return PDFMAKE_EINVAL; |
|
567
|
0 |
4 |
if (append_number(buf, gray) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
568
|
0 |
4 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
575
|
0 |
3 |
if (!c) return PDFMAKE_EINVAL; |
|
578
|
0 |
3 |
if (append_number(buf, gray) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
579
|
0 |
3 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
587
|
0 |
60 |
if (!c) return PDFMAKE_EINVAL; |
|
590
|
0 |
60 |
if (append_number(buf, r) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
591
|
0 |
60 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
592
|
0 |
60 |
if (append_number(buf, g) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
593
|
0 |
60 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
594
|
0 |
60 |
if (append_number(buf, b) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
595
|
0 |
60 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
603
|
0 |
1149 |
if (!c) return PDFMAKE_EINVAL; |
|
606
|
0 |
1149 |
if (append_number(buf, r) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
607
|
0 |
1149 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
608
|
0 |
1149 |
if (append_number(buf, g) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
609
|
0 |
1149 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
610
|
0 |
1149 |
if (append_number(buf, b) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
611
|
0 |
1149 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
619
|
0 |
3 |
if (!c) return PDFMAKE_EINVAL; |
|
622
|
0 |
3 |
if (append_number(buf, c_) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
623
|
0 |
3 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
624
|
0 |
3 |
if (append_number(buf, m) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
625
|
0 |
3 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
626
|
0 |
3 |
if (append_number(buf, y) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
627
|
0 |
3 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
628
|
0 |
3 |
if (append_number(buf, k) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
629
|
0 |
3 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
637
|
0 |
3 |
if (!c) return PDFMAKE_EINVAL; |
|
640
|
0 |
3 |
if (append_number(buf, c_) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
641
|
0 |
3 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
642
|
0 |
3 |
if (append_number(buf, m) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
643
|
0 |
3 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
644
|
0 |
3 |
if (append_number(buf, y) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
645
|
0 |
3 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
646
|
0 |
3 |
if (append_number(buf, k) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
647
|
0 |
3 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
657
|
0 |
1223 |
if (!c) return PDFMAKE_EINVAL; |
|
663
|
0 |
1223 |
if (!c) return PDFMAKE_EINVAL; |
|
674
|
0 |
1 |
if (!c) return PDFMAKE_EINVAL; |
|
677
|
0 |
1 |
if (append_number(buf, spacing) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
678
|
0 |
1 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
685
|
0 |
1 |
if (!c) return PDFMAKE_EINVAL; |
|
688
|
0 |
1 |
if (append_number(buf, spacing) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
689
|
0 |
1 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
696
|
0 |
1 |
if (!c) return PDFMAKE_EINVAL; |
|
699
|
0 |
1 |
if (append_number(buf, scale) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
700
|
0 |
1 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
707
|
0 |
4 |
if (!c) return PDFMAKE_EINVAL; |
|
710
|
0 |
4 |
if (append_number(buf, leading) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
711
|
0 |
4 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
719
|
1212 |
0 |
if (!c || !font_name) return PDFMAKE_EINVAL; |
|
|
0 |
1212 |
if (!c || !font_name) return PDFMAKE_EINVAL; |
|
722
|
0 |
1212 |
if (append_name(buf, font_name) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
723
|
0 |
1212 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
724
|
0 |
1212 |
if (append_number(buf, size) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
725
|
0 |
1212 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
732
|
0 |
3 |
if (!c) return PDFMAKE_EINVAL; |
|
740
|
0 |
3 |
if (!c) return PDFMAKE_EINVAL; |
|
743
|
0 |
3 |
if (append_number(buf, rise) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
744
|
0 |
3 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
755
|
0 |
149 |
if (!c) return PDFMAKE_EINVAL; |
|
758
|
0 |
149 |
if (append_number(buf, tx) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
759
|
0 |
149 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
760
|
0 |
149 |
if (append_number(buf, ty) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
761
|
0 |
149 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
768
|
0 |
1 |
if (!c) return PDFMAKE_EINVAL; |
|
771
|
0 |
1 |
if (append_number(buf, tx) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
772
|
0 |
1 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
773
|
0 |
1 |
if (append_number(buf, ty) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
774
|
0 |
1 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
783
|
0 |
1079 |
if (!c) return PDFMAKE_EINVAL; |
|
786
|
0 |
1079 |
if (append_number(buf, a) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
787
|
0 |
1079 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
788
|
0 |
1079 |
if (append_number(buf, b) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
789
|
0 |
1079 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
790
|
0 |
1079 |
if (append_number(buf, c_) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
791
|
0 |
1079 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
792
|
0 |
1079 |
if (append_number(buf, d) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
793
|
0 |
1079 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
794
|
0 |
1079 |
if (append_number(buf, e) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
795
|
0 |
1079 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
796
|
0 |
1079 |
if (append_number(buf, f) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
797
|
0 |
1079 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
803
|
0 |
2 |
if (!c) return PDFMAKE_EINVAL; |
|
815
|
1229 |
0 |
if (!c || !str) return PDFMAKE_EINVAL; |
|
|
0 |
1229 |
if (!c || !str) return PDFMAKE_EINVAL; |
|
818
|
0 |
1229 |
if (append_string(buf, str, len) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
819
|
0 |
1229 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
825
|
0 |
0 |
if (!str) return PDFMAKE_EINVAL; |
|
834
|
2 |
0 |
if (!c || !array) return PDFMAKE_EINVAL; |
|
|
0 |
2 |
if (!c || !array) return PDFMAKE_EINVAL; |
|
835
|
0 |
2 |
if (array->kind != PDFMAKE_ARRAY) return PDFMAKE_EINVAL; |
|
839
|
0 |
2 |
if (pdfmake_buf_append_byte(buf, '[') != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
842
|
8 |
2 |
for (i = 0; i < len; i++) { |
|
844
|
0 |
8 |
if (!elem) continue; |
|
846
|
5 |
3 |
if (elem->kind == PDFMAKE_STR) { |
|
847
|
0 |
5 |
if (append_string(buf, elem->as.str.bytes, elem->as.str.len) |
|
849
|
0 |
3 |
} else if (elem->kind == PDFMAKE_INT) { |
|
852
|
0 |
0 |
if (pdfmake_buf_append_cstr(buf, tmp) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
853
|
3 |
0 |
} else if (elem->kind == PDFMAKE_REAL) { |
|
854
|
0 |
3 |
if (append_number(buf, elem->as.r) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
858
|
0 |
2 |
if (pdfmake_buf_append_cstr(buf, "] TJ\n") != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
866
|
1 |
0 |
if (!c || !str) return PDFMAKE_EINVAL; |
|
|
0 |
1 |
if (!c || !str) return PDFMAKE_EINVAL; |
|
869
|
0 |
1 |
if (append_string(buf, str, len) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
870
|
0 |
1 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
879
|
1 |
0 |
if (!c || !str) return PDFMAKE_EINVAL; |
|
|
0 |
1 |
if (!c || !str) return PDFMAKE_EINVAL; |
|
882
|
0 |
1 |
if (append_number(buf, aw) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
883
|
0 |
1 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
884
|
0 |
1 |
if (append_number(buf, ac) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
885
|
0 |
1 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
886
|
0 |
1 |
if (append_string(buf, str, len) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
887
|
0 |
1 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
898
|
19 |
0 |
if (!c || !name) return PDFMAKE_EINVAL; |
|
|
0 |
19 |
if (!c || !name) return PDFMAKE_EINVAL; |
|
901
|
0 |
19 |
if (append_name(buf, name) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
902
|
0 |
19 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
913
|
0 |
0 |
if (!c || !tag) return PDFMAKE_EINVAL; |
|
|
0 |
0 |
if (!c || !tag) return PDFMAKE_EINVAL; |
|
916
|
0 |
0 |
if (append_name(buf, tag) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
917
|
0 |
0 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
925
|
0 |
0 |
if (!c || !tag || !props) return PDFMAKE_EINVAL; |
|
|
0 |
0 |
if (!c || !tag || !props) return PDFMAKE_EINVAL; |
|
|
0 |
0 |
if (!c || !tag || !props) return PDFMAKE_EINVAL; |
|
928
|
0 |
0 |
if (append_name(buf, tag) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
929
|
0 |
0 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
930
|
0 |
0 |
if (append_name(buf, props) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
931
|
0 |
0 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
938
|
1 |
0 |
if (!c || !tag) return PDFMAKE_EINVAL; |
|
|
0 |
1 |
if (!c || !tag) return PDFMAKE_EINVAL; |
|
941
|
0 |
1 |
if (append_name(buf, tag) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
942
|
0 |
1 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
950
|
7 |
0 |
if (!c || !tag || !props) return PDFMAKE_EINVAL; |
|
|
7 |
0 |
if (!c || !tag || !props) return PDFMAKE_EINVAL; |
|
|
0 |
7 |
if (!c || !tag || !props) return PDFMAKE_EINVAL; |
|
953
|
0 |
7 |
if (append_name(buf, tag) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
954
|
0 |
7 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
955
|
0 |
7 |
if (append_name(buf, props) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
956
|
0 |
7 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
962
|
0 |
8 |
if (!c) return PDFMAKE_EINVAL; |
|
973
|
1 |
0 |
if (!c || !name) return PDFMAKE_EINVAL; |
|
|
0 |
1 |
if (!c || !name) return PDFMAKE_EINVAL; |
|
976
|
0 |
1 |
if (append_name(buf, name) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
977
|
0 |
1 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
987
|
0 |
0 |
if (!c) return PDFMAKE_EINVAL; |
|
995
|
0 |
0 |
if (!c || !key || !value) return PDFMAKE_EINVAL; |
|
|
0 |
0 |
if (!c || !key || !value) return PDFMAKE_EINVAL; |
|
|
0 |
0 |
if (!c || !key || !value) return PDFMAKE_EINVAL; |
|
998
|
0 |
0 |
if (append_name(buf, key) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
999
|
0 |
0 |
if (append_space(buf) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
1001
|
0 |
0 |
if (pdfmake_buf_append_cstr(buf, value) != PDFMAKE_OK) return PDFMAKE_EINVAL; |
|
1007
|
0 |
0 |
if (!c) return PDFMAKE_EINVAL; |
|
1015
|
0 |
0 |
if (!c || !data) return PDFMAKE_EINVAL; |
|
|
0 |
0 |
if (!c || !data) return PDFMAKE_EINVAL; |
|
1021
|
0 |
0 |
if (!c) return PDFMAKE_EINVAL; |
|
1032
|
0 |
1 |
if (!c) return PDFMAKE_EINVAL; |
|
1038
|
0 |
1 |
if (!c) return PDFMAKE_EINVAL; |