| line |
true |
false |
branch |
|
24
|
0 |
33 |
if (dict.kind != PDFMAKE_DICT) return dict; |
|
69
|
8 |
0 |
if (!doc || !contents) return 0; |
|
|
0 |
8 |
if (!doc || !contents) return 0; |
|
70
|
0 |
8 |
if (icon > PDFMAKE_ANNOT_ICON_INSERT) return 0; |
|
75
|
0 |
8 |
if (dict.kind != PDFMAKE_DICT) return 0; |
|
116
|
0 |
0 |
if (!doc || !quads || quad_count == 0) return 0; |
|
|
0 |
0 |
if (!doc || !quads || quad_count == 0) return 0; |
|
|
0 |
0 |
if (!doc || !quads || quad_count == 0) return 0; |
|
117
|
0 |
0 |
if (type > PDFMAKE_MARKUP_STRIKEOUT) return 0; |
|
122
|
0 |
0 |
if (dict.kind != PDFMAKE_DICT) return 0; |
|
129
|
0 |
0 |
for (i = 0; i < num_values; i++) { |
|
135
|
0 |
0 |
if (color) { |
|
172
|
5 |
0 |
if (!doc || !uri) return 0; |
|
|
0 |
5 |
if (!doc || !uri) return 0; |
|
177
|
0 |
5 |
if (dict.kind != PDFMAKE_DICT) return 0; |
|
214
|
0 |
15 |
if (!doc) return 0; |
|
215
|
0 |
15 |
if (dest_page >= pdfmake_doc_page_count(doc)) return 0; |
|
220
|
0 |
15 |
if (dict.kind != PDFMAKE_DICT) return 0; |
|
228
|
15 |
0 |
if (page && page->page_num > 0) { |
|
|
0 |
15 |
if (page && page->page_num > 0) { |
|
277
|
0 |
5 |
if (!doc) return 0; |
|
278
|
0 |
5 |
if (type > PDFMAKE_STAMP_FORCOMMENT) return 0; |
|
283
|
0 |
5 |
if (dict.kind != PDFMAKE_DICT) return 0; |
|
317
|
0 |
0 |
if (!doc || !paths || !path_counts || num_paths == 0) return 0; |
|
|
0 |
0 |
if (!doc || !paths || !path_counts || num_paths == 0) return 0; |
|
|
0 |
0 |
if (!doc || !paths || !path_counts || num_paths == 0) return 0; |
|
|
0 |
0 |
if (!doc || !paths || !path_counts || num_paths == 0) return 0; |
|
322
|
0 |
0 |
if (dict.kind != PDFMAKE_DICT) return 0; |
|
328
|
0 |
0 |
for (p = 0; p < num_paths; p++) { |
|
331
|
0 |
0 |
for (i = 0; i < num_coords; i++) { |
|
339
|
0 |
0 |
if (color) { |
|
349
|
0 |
0 |
if (width > 0) { |
|
368
|
70 |
0 |
if (!page || annot_num == 0) return PDFMAKE_EINVAL; |
|
|
0 |
70 |
if (!page || annot_num == 0) return PDFMAKE_EINVAL; |
|
371
|
28 |
42 |
if (page->annot_count >= page->annot_cap) { |
|
372
|
2 |
26 |
new_cap = page->annot_cap ? page->annot_cap * 2 : 8; |
|
374
|
0 |
28 |
if (!new_arr) return PDFMAKE_ENOMEM; |