| line |
true |
false |
branch |
|
9
|
0 |
335 |
if (!RETVAL) { |
|
24
|
0 |
22 |
if (!SvOK(obj_sv)) { |
|
27
|
8 |
14 |
else if (SvIOK(obj_sv)) { |
|
30
|
1 |
13 |
else if (SvNOK(obj_sv)) { |
|
33
|
13 |
0 |
else if (SvPOK(obj_sv)) { |
|
43
|
0 |
22 |
if (RETVAL == 0) { |
|
76
|
5 |
0 |
if (strEQ(algorithm, "RC4-40") || strEQ(algorithm, "rc4-40")) { |
|
|
0 |
5 |
if (strEQ(algorithm, "RC4-40") || strEQ(algorithm, "rc4-40")) { |
|
78
|
4 |
1 |
} else if (strEQ(algorithm, "RC4-128") || strEQ(algorithm, "rc4-128")) { |
|
|
0 |
4 |
} else if (strEQ(algorithm, "RC4-128") || strEQ(algorithm, "rc4-128")) { |
|
80
|
3 |
1 |
} else if (strEQ(algorithm, "AES-128") || strEQ(algorithm, "aes-128")) { |
|
|
0 |
3 |
} else if (strEQ(algorithm, "AES-128") || strEQ(algorithm, "aes-128")) { |
|
82
|
0 |
3 |
} else if (strEQ(algorithm, "AES-256") || strEQ(algorithm, "aes-256")) { |
|
|
0 |
0 |
} else if (strEQ(algorithm, "AES-256") || strEQ(algorithm, "aes-256")) { |
|
87
|
5 |
0 |
if (SvOK(owner_passwd)) owner = SvPV_nolen(owner_passwd); |
|
88
|
0 |
5 |
if (pdfmake_doc_set_encryption(self, algo, user_passwd, owner, |
|
98
|
0 |
56 |
if (pdfmake_buf_init(&buf) != PDFMAKE_OK) { |
|
101
|
0 |
56 |
if (pdfmake_doc_write(self, &buf) != PDFMAKE_OK) { |
|
116
|
0 |
118 |
if (pdfmake_buf_init(&buf) != PDFMAKE_OK) { |
|
119
|
0 |
118 |
if (pdfmake_doc_write(self, &buf) != PDFMAKE_OK) { |
|
125
|
1 |
117 |
if (!fp) { |
|
134
|
0 |
117 |
if (written != expected) { |
|
142
|
67 |
49 |
if (items > 1) { |
|
144
|
0 |
67 |
if (pdfmake_meta_set_title(self, val) != PDFMAKE_OK) { |
|
151
|
47 |
2 |
RETVAL = val ? newSVpv(val, 0) : &PL_sv_undef; |
|
160
|
57 |
4 |
if (items > 1) { |
|
162
|
0 |
57 |
if (pdfmake_meta_set_author(self, val) != PDFMAKE_OK) { |
|
169
|
3 |
1 |
RETVAL = val ? newSVpv(val, 0) : &PL_sv_undef; |
|
178
|
47 |
3 |
if (items > 1) { |
|
180
|
0 |
47 |
if (pdfmake_meta_set_subject(self, val) != PDFMAKE_OK) { |
|
187
|
2 |
1 |
RETVAL = val ? newSVpv(val, 0) : &PL_sv_undef; |
|
196
|
4 |
3 |
if (items > 1) { |
|
198
|
0 |
4 |
if (pdfmake_meta_set_keywords(self, val) != PDFMAKE_OK) { |
|
205
|
2 |
1 |
RETVAL = val ? newSVpv(val, 0) : &PL_sv_undef; |
|
214
|
3 |
3 |
if (items > 1) { |
|
216
|
0 |
3 |
if (pdfmake_meta_set_creator(self, val) != PDFMAKE_OK) { |
|
223
|
2 |
1 |
RETVAL = val ? newSVpv(val, 0) : &PL_sv_undef; |
|
232
|
4 |
2 |
if (items > 1) { |
|
234
|
0 |
4 |
if (pdfmake_meta_set_producer(self, val) != PDFMAKE_OK) { |
|
241
|
2 |
0 |
RETVAL = val ? newSVpv(val, 0) : &PL_sv_undef; |
|
252
|
3 |
0 |
RETVAL = val ? newSVpv(val, 0) : &PL_sv_undef; |
|
262
|
0 |
3 |
if (pdfmake_meta_set(self, key, value) != PDFMAKE_OK) { |
|
273
|
314 |
12 |
if (items > 1) width = SvNV(ST(1)); |
|
274
|
314 |
12 |
if (items > 2) height = SvNV(ST(2)); |
|
276
|
0 |
326 |
if (!RETVAL) |
|
295
|
1 |
56 |
if (!RETVAL) |
|
307
|
0 |
0 |
if (err != PDFMAKE_OK) |
|
316
|
1 |
2 |
if (err != PDFMAKE_OK) |
|
326
|
1 |
1 |
if (err != PDFMAKE_OK) |
|
346
|
0 |
4 |
if (err != PDFMAKE_OK) |
|
355
|
1 |
2 |
if (err != PDFMAKE_OK) |
|
368
|
8 |
0 |
int open = 0; |
|
370
|
7 |
1 |
if (items > 6) { |
|
372
|
3 |
4 |
if (strEQ(icon_str, "Comment")) icon = PDFMAKE_ANNOT_ICON_COMMENT; |
|
373
|
1 |
3 |
else if (strEQ(icon_str, "Key")) icon = PDFMAKE_ANNOT_ICON_KEY; |
|
374
|
0 |
3 |
else if (strEQ(icon_str, "Help")) icon = PDFMAKE_ANNOT_ICON_HELP; |
|
375
|
0 |
3 |
else if (strEQ(icon_str, "Paragraph")) icon = PDFMAKE_ANNOT_ICON_PARAGRAPH; |
|
376
|
0 |
3 |
else if (strEQ(icon_str, "NewParagraph")) icon = PDFMAKE_ANNOT_ICON_NEWPARAGRAPH; |
|
377
|
0 |
3 |
else if (strEQ(icon_str, "Insert")) icon = PDFMAKE_ANNOT_ICON_INSERT; |
|
379
|
7 |
1 |
if (items > 7) open = SvIV(ST(7)); |
|
383
|
0 |
8 |
if (RETVAL == 0) |
|
399
|
0 |
5 |
if (RETVAL == 0) |
|
415
|
0 |
15 |
if (RETVAL == 0) |
|
429
|
5 |
0 |
pdfmake_stamp_type_t type = PDFMAKE_STAMP_DRAFT; |
|
431
|
1 |
4 |
if (strEQ(stamp_type, "Approved")) type = PDFMAKE_STAMP_APPROVED; |
|
432
|
0 |
4 |
else if (strEQ(stamp_type, "Experimental")) type = PDFMAKE_STAMP_EXPERIMENTAL; |
|
433
|
0 |
4 |
else if (strEQ(stamp_type, "NotApproved")) type = PDFMAKE_STAMP_NOTAPPROVED; |
|
434
|
0 |
4 |
else if (strEQ(stamp_type, "AsIs")) type = PDFMAKE_STAMP_ASIS; |
|
435
|
0 |
4 |
else if (strEQ(stamp_type, "Expired")) type = PDFMAKE_STAMP_EXPIRED; |
|
436
|
0 |
4 |
else if (strEQ(stamp_type, "NotForPublicRelease")) type = PDFMAKE_STAMP_NOTFORPUBLICRELEASE; |
|
437
|
2 |
2 |
else if (strEQ(stamp_type, "Confidential")) type = PDFMAKE_STAMP_CONFIDENTIAL; |
|
438
|
0 |
2 |
else if (strEQ(stamp_type, "Final")) type = PDFMAKE_STAMP_FINAL; |
|
439
|
0 |
2 |
else if (strEQ(stamp_type, "Sold")) type = PDFMAKE_STAMP_SOLD; |
|
440
|
0 |
2 |
else if (strEQ(stamp_type, "Departmental")) type = PDFMAKE_STAMP_DEPARTMENTAL; |
|
441
|
0 |
2 |
else if (strEQ(stamp_type, "ForLegalReview")) type = PDFMAKE_STAMP_FORLEGALREVIEW; |
|
442
|
0 |
2 |
else if (strEQ(stamp_type, "TopSecret")) type = PDFMAKE_STAMP_TOPSECRET; |
|
443
|
0 |
2 |
else if (strEQ(stamp_type, "ForComment")) type = PDFMAKE_STAMP_FORCOMMENT; |
|
448
|
0 |
5 |
if (RETVAL == 0) |
|
472
|
1 |
16 |
if (strEQ(dest_type, "XYZ")) { |
|
475
|
15 |
1 |
else if (strEQ(dest_type, "Fit")) { |
|
478
|
1 |
0 |
else if (strEQ(dest_type, "FitH")) { |
|
481
|
0 |
0 |
else if (strEQ(dest_type, "FitV")) { |
|
484
|
0 |
0 |
else if (strEQ(dest_type, "FitB")) { |
|
487
|
0 |
0 |
else if (strEQ(dest_type, "FitBH")) { |
|
490
|
0 |
0 |
else if (strEQ(dest_type, "FitBV")) { |
|
498
|
0 |
17 |
if (!item) |
|
523
|
1 |
5 |
if (strEQ(dest_type, "XYZ")) { |
|
526
|
3 |
2 |
else if (strEQ(dest_type, "Fit")) { |
|
529
|
1 |
1 |
else if (strEQ(dest_type, "FitH")) { |
|
532
|
1 |
0 |
else if (strEQ(dest_type, "FitV")) { |
|
535
|
0 |
0 |
else if (strEQ(dest_type, "FitB")) { |
|
538
|
0 |
0 |
else if (strEQ(dest_type, "FitBH")) { |
|
541
|
0 |
0 |
else if (strEQ(dest_type, "FitBV")) { |
|
549
|
0 |
6 |
if (!RETVAL) |
|
560
|
0 |
5 |
if (!RETVAL) |
|
571
|
0 |
5 |
if (!RETVAL) |
|
582
|
0 |
2 |
if (!RETVAL) |
|
598
|
0 |
5 |
if (!RETVAL) |
|
621
|
1 |
8 |
if (strEQ(highlight, "None")) { |
|
624
|
1 |
7 |
else if (strEQ(highlight, "Outline")) { |
|
627
|
1 |
6 |
else if (strEQ(highlight, "Push")) { |
|
635
|
0 |
9 |
if (RETVAL == 0) |
|
658
|
0 |
6 |
if (strEQ(highlight, "None")) { |
|
661
|
0 |
6 |
else if (strEQ(highlight, "Outline")) { |
|
664
|
0 |
6 |
else if (strEQ(highlight, "Push")) { |
|
672
|
0 |
6 |
if (RETVAL == 0) |
|
686
|
90 |
0 |
PDFMAKE_REGISTER_META(stash, "title", pdfmake_meta_get_title, pdfmake_meta_set_title); |
|
|
90 |
0 |
PDFMAKE_REGISTER_META(stash, "title", pdfmake_meta_get_title, pdfmake_meta_set_title); |
|
687
|
90 |
0 |
PDFMAKE_REGISTER_META(stash, "author", pdfmake_meta_get_author, pdfmake_meta_set_author); |
|
|
90 |
0 |
PDFMAKE_REGISTER_META(stash, "author", pdfmake_meta_get_author, pdfmake_meta_set_author); |
|
688
|
90 |
0 |
PDFMAKE_REGISTER_META(stash, "subject", pdfmake_meta_get_subject, pdfmake_meta_set_subject); |
|
|
90 |
0 |
PDFMAKE_REGISTER_META(stash, "subject", pdfmake_meta_get_subject, pdfmake_meta_set_subject); |
|
689
|
90 |
0 |
PDFMAKE_REGISTER_META(stash, "keywords", pdfmake_meta_get_keywords, pdfmake_meta_set_keywords); |
|
|
90 |
0 |
PDFMAKE_REGISTER_META(stash, "keywords", pdfmake_meta_get_keywords, pdfmake_meta_set_keywords); |
|
690
|
90 |
0 |
PDFMAKE_REGISTER_META(stash, "creator", pdfmake_meta_get_creator, pdfmake_meta_set_creator); |
|
|
90 |
0 |
PDFMAKE_REGISTER_META(stash, "creator", pdfmake_meta_get_creator, pdfmake_meta_set_creator); |
|
691
|
90 |
0 |
PDFMAKE_REGISTER_META(stash, "producer", pdfmake_meta_get_producer, pdfmake_meta_set_producer); |
|
|
90 |
0 |
PDFMAKE_REGISTER_META(stash, "producer", pdfmake_meta_get_producer, pdfmake_meta_set_producer); |