cups rastertoepson filter always send form feed (0xC)

cups 中的 rastertoepson filter 總是在文件結尾送出 form feed (0xC) 字元,造成文件高不及紙張高時,印表機仍會自動捲到下一頁。

要解決此方法,可以修改 cups 原始檔中 filter/rastertoepson.c 的 EndPage 函式。印表機換頁是以下程式:

putchar(12); /* Form feed */

只要不執行這行就不會換頁,而是停在文件最後的位置。

至於要如何由 cups 設定…我沒找出答案。

留言

熱門文章