From 702760014fafcaf226d5fe8de9be99b2f291f58a Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 25 Oct 2017 20:48:48 +0000 Subject: The page footer line (psmarg) is created in ps_begin(), and the last call writing to it is always ps_endline(), which ends with ps_pclose(), which prints "ET" (end text). Consequently, do not print another instance of "ET" in ps_closepage() after the footer line and before the "endstream" for the page. Fixing a PDF syntax error found while investigating the bug report from Jan Stary that also resulted in the previous commit. --- term_ps.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'term_ps.c') diff --git a/term_ps.c b/term_ps.c index d6f0c391..d59f4746 100644 --- a/term_ps.c +++ b/term_ps.c @@ -742,8 +742,6 @@ ps_closepage(struct termp *p) ps_printf(p, "%s", p->ps->psmarg); if (TERMTYPE_PS != p->type) { - ps_printf(p, "ET\n"); - len = p->ps->pdfbytes - p->ps->pdflastpg; base = p->ps->pages * 4 + p->ps->pdfbody; -- cgit