forked from agalakhov/captdriver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request agalakhov#24 from mounaiban/0.1.3-pr
Fix LBP3000, add Toner Save Mode, multiple paper types, multiple paper sizes
- Loading branch information
Showing
8 changed files
with
900 additions
and
117 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
AC_PREREQ([2.69]) | ||
AC_INIT([captdriver], [0.1.0]) | ||
AC_INIT([captdriver], [0.1.3]) | ||
|
||
AC_CONFIG_SRCDIR([src/std.h]) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
/* | ||
* Canon CAPT LBP Printers | ||
* captdriver PPD Source File | ||
* for use with CUPS ppdc to generate PPDs | ||
* | ||
*/ | ||
#include <font.defs> | ||
#include <media.defs> | ||
|
||
#media "SISG5/SIS G5" 169mm 239mm | ||
#media "SISE5/SIS E5" 115mm 220mm | ||
#media "SAC16K/SAC 16K" 188mm 260mm | ||
#media "SAC32K/SAC 32K" 130mm 184mm | ||
|
||
Copyright "(C)2020 Moses Chong" | ||
ColorModel "Gray/Grayscale" k chunky 2 | ||
Filter application/vnd.cups-raster 1 rastertocapt | ||
*Manufacturer "Canon Inc" | ||
Version 0.1.3 | ||
{ | ||
Font * | ||
|
||
// Common Sizes | ||
*MediaSize A4 | ||
MediaSize A5 | ||
MediaSize A6 | ||
MediaSize B6 | ||
MediaSize C6 | ||
MediaSize EnvC5 | ||
MediaSize EnvC6 | ||
MediaSize EnvChou3 | ||
MediaSize EnvDL | ||
MediaSize Env10 | ||
MediaSize EnvItalian | ||
MediaSize Executive // US 7.25x10.5 inch | ||
MediaSize Folio // SE Asian F4 | ||
MediaSize Legal | ||
MediaSize Letter | ||
MediaSize SISG5 | ||
MediaSize SISE5 | ||
MediaSize SAC16K | ||
MediaSize SAC32K | ||
|
||
// Less Common Sizes | ||
/* | ||
* Sizes A6 and larger, and no wider than US Legal have | ||
* been included here. | ||
* | ||
* PROTIP: Delete this section and recompile PPD, for a | ||
* less cluttered Paper Size menu in most applications, | ||
* if you don't use these sizes. If you use any of them, | ||
* move the sizes you need from below to the section above, | ||
* then delete the rest. | ||
* | ||
* NOTE: Some of the sizes appear to be identical to | ||
* another at least in terms of width and length. There | ||
* could be other differences, and may be useful in managing | ||
* multiple trays on printers that support them. | ||
* | ||
*/ | ||
MediaSize 7x9 | ||
MediaSize 8x10 | ||
MediaSize A4Small // Same dimensions as A4 | ||
MediaSize A4Plus // Longer than Folio (F4) by just one point | ||
MediaSize A5Extra | ||
MediaSize B5 | ||
MediaSize B7 | ||
MediaSize DoublePostcard | ||
MediaSize Env9 | ||
MediaSize Env11 | ||
MediaSize Env12 | ||
MediaSize Env14 | ||
MediaSize EnvC65 | ||
MediaSize EnvChou4 | ||
MediaSize EnvISOB5 | ||
MediaSize EnvISOB6 | ||
MediaSize EnvKaku3 | ||
MediaSize EnvMonarch | ||
MediaSize EnvPersonal | ||
MediaSize EnvPRC1 | ||
MediaSize EnvPRC2 | ||
MediaSize EnvPRC3 | ||
MediaSize EnvPRC4 | ||
MediaSize EnvPRC5 | ||
MediaSize EnvPRC6 | ||
MediaSize EnvPRC7 | ||
MediaSize EnvPRC8 | ||
MediaSize EnvYou4 | ||
MediaSize FanFoldGerman | ||
MediaSize FanFoldGermanLegal | ||
MediaSize ISOB5 | ||
MediaSize ISOB5Extra | ||
MediaSize ISOB6 | ||
MediaSize ISOB7 | ||
MediaSize LetterPlus | ||
MediaSize Note // Same dimensions as Letter (US) | ||
MediaSize Postcard | ||
MediaSize PRC16K | ||
MediaSize PRC32K | ||
MediaSize PRC32KBig | ||
MediaSize Quarto | ||
MediaSize Statement | ||
// End Less Common Sizes | ||
|
||
// Paper Type B Options | ||
/* | ||
This option is wired directly to the pt2 register in the | ||
page prologue (see prn_lbp2900.c). Its exact purpose is not | ||
known, but it appears to be an adjustment to cater the printer | ||
for different paper weights. | ||
The proprietary drivers offers a 'Plain Paper L' and 'Heavy Paper H' | ||
option. The LBP 3000 manual describes Heavy Paper H as an option | ||
to 'get improved fixing properties' for thick paper and | ||
Plain Paper L as an option reduce curling on plain paper. | ||
And then there's the Transparency option for clear plastic film... | ||
*/ | ||
Option "captMediaWeight/Media Type B (Experimental)" PickOne AnySetup 11 | ||
Choice "pt2-0/0" "<</MediaWeight 0>>setpagedevice" | ||
*Choice "pt2-1/Default" "<</MediaWeight 1>>setpagedevice" | ||
Choice "pt2-2/2" "<</MediaWeight 2>>setpagedevice" | ||
|
||
// Toner Save Option | ||
Option "captTonerSave/Toner Save" Boolean AnySetup 10 | ||
*Choice False/Disabled "<</cupsCompression 0>>setpagedevice" | ||
Choice True/Enabled "<</cupsCompression 1>>setpagedevice" | ||
|
||
*Resolution k 1 70 592 0 "600dpi/600 DPI" | ||
MaxSize 215.9mm 355.6mm // US Legal | ||
MediaType 0 "Plain/Plain Paper" | ||
MediaType 1 "Thick/Thick Paper" | ||
VariablePaperSize yes | ||
{ | ||
// nearly matched to Alexey Galakhov's original 2011 specs | ||
*ModelName "LBP2900/LBP3010 r2c" | ||
FileName "Canon-LBP2900.ppd" | ||
MinSize 75mm 105mm | ||
HWmargins 4.7095835mm 4.7095835mm 4.709583mm 4.709583mm | ||
PCFileName "CNLB2K9.ppd" | ||
} | ||
|
||
{ | ||
*ModelName "LBP3000 r2c" | ||
FileName "Canon-LBP3000.ppd" | ||
HWmargins 5mm 5mm 5mm 5mm | ||
MinSize 75mm 105mm | ||
PCFileName "CNLB3K.ppd" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters