Skip to content

Commit 8df86e0

Browse files
authored
pdftops: Use Poppler for a few old Epson laser printers (#53)
This works around documents being printed off-centre, shifted towards the top right. The printers affected are the Epson laser printers using epsoneplijs (EPL-5700L, EPL-5800L, EPL-5900L, EPL-6100L, EPL-6200L). The issue and fix was tested specifically with an EPL-6200L. epsoneplijs driver: https://github.com/lorf/epsoneplijs
1 parent 824365e commit 8df86e0

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

ppd/pdftops.c

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,28 @@ ppdFilterPDFToPS(int inputfd, // I - File descriptor input stream
546546
break;
547547
}
548548
}
549+
550+
//
551+
// Use Poppler instead of Ghostscript for old Epson laser printers based
552+
// on epsonepl(ijs) as the page ends up off-centre by about 6~7mm towards
553+
// the top right of the page.
554+
//
555+
if (make_model[0] &&
556+
!strncasecmp(make_model, "Epson", 5) &&
557+
(ptr = strcasestr(make_model, "EPL-")) &&
558+
(!strncasecmp(ptr + 4, "5700L", 5) ||
559+
!strncasecmp(ptr + 4, "5800L", 5) ||
560+
!strncasecmp(ptr + 4, "5900L", 5) ||
561+
!strncasecmp(ptr + 4, "6100L", 5) ||
562+
!strncasecmp(ptr + 4, "6200L", 5)))
563+
{
564+
if (log) log(ld, CF_LOGLEVEL_DEBUG,
565+
"ppdFilterPDFToPS: Switching to Poppler's pdftops instead of "
566+
"Ghostscript for old epsoneplijs (EPL-5700L, EPL-5800L, "
567+
"EPL-5900L, EPL-6100L, EPL-6200L) printers to work around "
568+
"off-centre printing");
569+
renderer = PDFTOPS;
570+
}
549571
}
550572

551573
//

0 commit comments

Comments
 (0)