Kyocera KPSL filter for CUPS licensed under the Apache License Version 2.0. See the file "LICENSE" for more information.
The reason for development is unexpected printing errors with the original driver. The problem in the non ASCII encoding of the file names for printed files.
- make it possible to build on Linux (at least on Devuan)
- add some other ppd files
- create a list of required packages
- update main readme (add requirements and manual for buiding the driver)
- improve CmakeLists (maybe not)
To build the project you need Cmake and GCC (I haven't tested that code with Clang and other compilers). Also you need CUPS and its (development) libraries. Below there is a list of package names required for buiulding in different systems.
(Note: currently there is only one entry (for Debian and Devuan), and it's not full due to the fact that I do not have a "clean" environment, e.g. I already have compilers, cmake and other stuff)
libcupsimage2-dev
libcups2-dev
- Run
cmake -B_build -H.
to generate nessesary files (Note: there are cmake variables listed at the end of the section); - Run
cmake --build _build/
to build all cmake targets, the resulting binaries are located inbin/
subdirectory. - Run
./install.sh
to install PPD files and the newly built filter.
Here is a table with cmake variables for use at the first step of instructions.
Variable | Description | Default(ON|OFF) |
---|---|---|
DEBUG | Allow debugging via GDB | OFF |
VERBOSE | Print all warnings when compiling | OFF |
- Kyocera FS-1060DN
- Kyocera_FS-1020MFP
- Kyocera_FS-1025MFP
- Kyocera_FS-1040
- Kyocera_FS-1120MFP
- Kyocera_FS-1125MFP
- The filter sources developed by: sv99
- All PPD files made by: Kyocera Document Solutions Inc.
FS-1020MFP
- PPD path: /Library/Printers/PPDs/Contents/Resources/Kyocera FS-1020MFPGDI.ppd
- Installed in the /Library/Printers/Kyocera/kpsl/rastertokpsl.app
- Full path to the filter: /Library/Printers/Kyocera/kpsl/rastertokpsl.app/Contents/MacOS/rastertokpl
convert for russian letter in the name
Problem with utf8 simbols in the job title.
Maverick 10.9.5 have cups version 1.7.2. El Capitan 10.11.4 have cups version 2.1.0 High Sierra 10.13.6 hav cups version 2.2.5
cupsctl WebInterface=on
sudo launchctl unload -w /System/Library/LaunchDaemons/org.cups.cupsd.plist
sudo launchctl list | grep cupsd
sudo launchctl load -w /System/Library/LaunchDaemons/org.cups.cupsd.plist
sudo launchctl list | grep cupsd
Debug cups filters:
cupsctl --debug-logging
cupsctl --no-debug-logging
Print to file. Use printer/foo to convert to the printer format defined by the filters in the PPD file.
/usr/sbin/cupsfilter -p Kyocera_FS-1020MFPGDI_RE.ppd -m printer/foo data/d001.pdf -e > t.kpsl
Debian pages:
Dissecting and Debugging the CUPS Printing System
./install.sh
On the El Capitan original driver not installed with error - Not found software for install.
Need copy kpsl/ to the /Library/Printers/Kyocera/. Installation with warning - printer worked!!
Used CLion and IdaPro
OSX version have image symbols
Used JBIG-KIT 2.0 - link in the resources.
Filter read raster stream and write pages in the stdout.
Based on the existing realisation filters in the cups source: rastertohp.c and rastertoepson.c.
Use ConvertUTF.c for UTF8 -> UTF16 conversion.
Direct call filters without cupsfilter. Used for developments and testing.
pdftoraster.sh - make raster file from pdf.
rastertokpsl.sh - convert raster file to the kpsl, using original filter.
rastertokpsl-re.sh - convert raster file to the kpsl? using re filter.
Perl script - simple check two kpsl files, skip from compare user, timestamp and title field from kpsl header.
Perl script, which generates kpsl files for all pdf files in the data directory, using original rastertokpsl and rastertokpsl-re filters and compare it.
rastertokpsl-re must be properly installed.
kpsldump.pl - kpsl dumper.
Change +-100.