ref: ccb4d1dcbe56987eaccd49bb56d1aabe5a2dfd13
parent: 5a668f4ac1852bf92f3f0f7339bfec2db6db6175
author: Noam Preil <noam@pixelhero.dev>
date: Tue Jun 1 21:54:33 EDT 2021
ignore BDC / EMC marked-content operators
--- a/op.c
+++ b/op.c
@@ -739,6 +739,13 @@
return 0;
}
+static int
+opignore(Op *op, Page *p)
+{
+ USED(op, p);
+ return 1;
+}
+
static Op ops[] = {
/* 7.8.2 Compatibility operators */
{"BX", cobegin, 0,}, /* begin a compatilibity section */
@@ -836,6 +843,10 @@
{"d0", t3width, 2,}, /* width info */
{"d1", t3widthbb, 6,}, /* width & bounding box */
+ /* 14.6 Marked content */
+ {"BDC", opignore, 2,},
+ {"EMC", opignore, 0,},
+
/* 7.10.5.2 Operators and operands */
/* B.2 Arithmetic operators */
{"add", t4add, 2,},
@@ -885,7 +896,7 @@
{"roll", t4roll, -2,},
/* terminator */
- {nil, nil, 0},
+ {nil, nil, 0,},
};
// If an op is found at the current position in the stream, the associated Op is