ref: 0adf9d27e05f8a4b3a82c84feeb8cc858d0ce652
parent: 3ca075372109704f25aeb9b7c8f4f60ccdcee9ce
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Fri Apr 9 10:29:16 EDT 2021
ccittfax: default width is 1728
--- a/f_ccittfax.c
+++ b/f_ccittfax.c
@@ -2,6 +2,8 @@
#include <libc.h>
#include "pdf.h"
+/* 7.4.6 CCITTFaxDecode filter */
+
enum {
Tbyte = 1,
Tascii,
@@ -91,7 +93,7 @@
return -1;
memmove(h, &bh, sizeof(bh));
parms = dictget(o, "DecodeParms");
- h->ifd.de[DImageWidth].v = dictint(parms, "Columns");
+ h->ifd.de[DImageWidth].v = dictintopt(parms, "Columns", 1728);
h->ifd.de[DImageLength].v = dictint(parms, "Rows");
h->ifd.de[DPhotometricInterpretation].v = !dictint(parms, "BlackIs1");
h->ifd.de[DRowsPerStrip].v = h->ifd.de[DImageLength].v;