Commit Diff


commit - 90b9b68968799799b3bc17b7a4a22e34bd993133
commit + aded37ad86d0f32120068643147415c158458857
blob - d9c74e2ea62cfd2e7e981ed8cd75b39c464a473a
blob + 17787b8e05991c59a17705620cb85583734743e5
--- pdf.c
+++ pdf.c
@@ -249,7 +249,6 @@ typedef struct TextEntry_S {
 		};
 		struct textarray    tarray;	/* text contained in an array object */
 	};
-	const HParsedToken *obj;
 } TextEntry;  // text object entries
 
 
@@ -1426,7 +1425,6 @@ act_Tc_op(const HParseResult *p, void *u)
 
 
 	txte->type  = TS_Tc;
-	txte->obj   = NULL;
 
 	assert(tval->token_type == TT_DOUBLE);
 	txte->value   = tval->dbl;
@@ -1450,7 +1448,6 @@ act_Tw_op(const HParseResult *p, void *u)
 
 
 	txte->type  = TS_Tw;
-	txte->obj   = NULL;
 	txte->value = H_FIELD_DOUBLE(0);
 
 	// associate the text with the current state
@@ -1473,7 +1470,6 @@ act_Tz_op(const HParseResult *p, void *u)
 
 
 	txte->type  = TS_Tz;
-	txte->obj   = NULL;
 	txte->value = H_FIELD_DOUBLE(0);
 
 	// associate the text with the current state
@@ -1496,7 +1492,6 @@ act_TL_op(const HParseResult *p, void *u)
 
 
 	txte->type  = TS_TL;
-	txte->obj   = NULL;
 	txte->value = H_FIELD_DOUBLE(0);
 
 	// associate the text with the current state
@@ -1520,7 +1515,6 @@ act_Tf_op(const HParseResult *p, void *u)
 	const HParsedToken *fn_token = H_FIELD_TOKEN(0);
 
 	txte->type  = TS_Tf;
-	txte->obj   = NULL;
 
 	txte->fref.fontname = fn_token->bytes.token;
 	txte->fref.namelen  = fn_token->bytes.len;
@@ -1565,7 +1559,6 @@ act_Tr_op(const HParseResult *p, void *u)
 
 
 	txte->type  = TS_Tr;
-	txte->obj   = NULL;
 	txte->mode  = H_FIELD_UINT(0);
 
 	// associate the text with the current state
@@ -1587,7 +1580,6 @@ act_Ts_op(const HParseResult *p, void *u)
 
 
 	txte->type  = TS_Ts;
-	txte->obj   = NULL;
 	txte->value = H_FIELD_DOUBLE(0);
 
 	// associate the text with the current state
@@ -1616,7 +1608,6 @@ act_Td_op(const HParseResult *p, void *u)
 
 
 	txte->type   = TP_Td;
-	txte->obj    = NULL;
 	txte->pos.tx = H_FIELD_DOUBLE(0);
 	txte->pos.ty = H_FIELD_DOUBLE(1);
 
@@ -1642,7 +1633,6 @@ act_TD_op(const HParseResult *p, void *u)
 
 
 	txte->type   = TP_TD;
-	txte->obj    = NULL;
 	txte->pos.tx = H_FIELD_DOUBLE(0);
 	txte->pos.ty = H_FIELD_DOUBLE(1);
 
@@ -1665,7 +1655,6 @@ act_Tm_op(const HParseResult *p, void *u)
 
 
 	txte->type  = TP_Tm;
-	txte->obj   = NULL;
 
 	assert((p->ast->token_type == TT_SEQUENCE) &&
 	    (p->ast->seq->elements[0]->token_type == TT_SEQUENCE) &&
@@ -1691,7 +1680,6 @@ act_Tstar_op(const HParseResult *p, void *u)
 	struct Env         *aux    = (struct Env*)u;
 
 	txte->type  = TP_Tstar;
-	txte->obj   = NULL;
 	txte->value = 0;
 
 	// associate the text with the current state
@@ -1721,7 +1709,6 @@ act_Tj_op(const HParseResult *p, void *u)
 
 
 	txte->type  = TW_Tj;
-	txte->obj   = NULL;
 
 	txte->tstr.text   = (uint8_t *)tstr->bytes.token;
 	txte->tstr.nchars = tstr->bytes.len;
@@ -1746,7 +1733,6 @@ act_TsingleQ_op(const HParseResult *p, void *u)
 
 
 	txte->type  = TW_Tq;
-	txte->obj   = NULL;
 
 	txte->tstr.text   = (uint8_t *)tstr->bytes.token;
 	txte->tstr.nchars = tstr->bytes.len;
@@ -1774,7 +1760,6 @@ act_TdoubleQ_op(const HParseResult *p, void *u)
 
 
 	txte->type  = TW_Tqq;
-	txte->obj   = NULL;
 
 	txte->aw          = aw->dbl;
 	txte->ac          = ac->dbl;
@@ -1803,7 +1788,6 @@ act_TJ_op(const HParseResult *p, void *u)
 
 
 	txte->type  = TW_TJ;
-	txte->obj   = NULL;
 
 
 	// associate the text wth the current font
@@ -2098,7 +2082,6 @@ act_txtobj(const HParseResult *p, void *u)
 	node->ts.curr_pos.ty  = *py;
 
 	txtobj->type         = TW_Tj;
-	txtobj->obj          = opstream;
 	txtobj->tstr.text    = tstr;
 	txtobj->tstr.nchars  = textlen;
 	if (textlen)