### Install and configure foo2zjs with CUPS Source: https://context7.com/koenkooi/foo2zjs/llms.txt Complete workflow for compiling the driver, downloading firmware, installing system components, and configuring printers via CUPS. ```bash # Download and extract wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz tar zxf foo2zjs.tar.gz cd foo2zjs # Compile make # Download firmware and ICM profiles for your printer ./getweb 1020 # Example: HP LaserJet 1020 ./getweb 2600n # Example: HP Color LaserJet 2600n # Install (as root) sudo make install # Install hotplug for firmware-requiring printers sudo make install-hotplug # Restart CUPS sudo make cups # Create printer using CUPS command line sudo lpadmin -p hp1020 -v "usb://HP/LaserJet%201020" -E \ -P /usr/share/cups/model/HP-LaserJet_1020.ppd.gz # Set as default printer sudo lpadmin -d hp1020 # Create networked printer (JetDirect) sudo lpadmin -p km2300dl -v "socket://192.168.1.100:9100" -E \ -P /usr/share/cups/model/KONICA_MINOLTA-magicolor_2300_DL.ppd.gz # Test printing echo "Test page" | lpr -P hp1020 ``` -------------------------------- ### Firmware and ICM Profile Downloading Source: https://context7.com/koenkooi/foo2zjs/llms.txt Commands to download necessary firmware and color profiles using the getweb utility. ```bash ./getweb 1000 ./getweb 1005 ./getweb 1018 ./getweb 1020 ./getweb P1005 ./getweb P1006 ./getweb P1505 ``` -------------------------------- ### Print documents using foo2zjs-wrapper Source: https://context7.com/koenkooi/foo2zjs/llms.txt Use the high-level wrapper script to handle the full print pipeline, including paper size detection and color management. ```bash # Basic monochrome printing foo2zjs-wrapper -p 1 -r 1200x600 document.ps > output.prn # Color printing with ICC color profile foo2zjs-wrapper -c -C 10 -G hpclj2600n-0.icm -p 9 -r 1200x600 document.ps > output.prn # Duplex printing (long edge binding) foo2zjs-wrapper -d 2 -p 1 document.ps > output.prn # N-up printing (4 pages per sheet, landscape) foo2zjs-wrapper -4 -ol -p 1 document.ps > output.prn # Draft mode with specific media type foo2zjs-wrapper -t -m 2 -p 1 document.ps > output.prn # Options: # -c Print in color (else monochrome) # -C colormode 1=Photos, 2=Photo+text, 3=Graphics+text, 10=ICM profile # -d duplex 1=off, 2=longedge, 3=shortedge # -m media Media type code # -p paper Paper size code # -n copies Number of copies # -r XxY Resolution # -s source Paper source tray # -t Draft mode (50% toner usage) # -G profile.icm Use ICC color profile for color correction # -I intent 0=Perceptual, 1=Colorimetric, 2=Saturation, 3=Absolute # -2/-4/-6/-8... N-up printing # -o orient N-up orientation: -op (portrait), -ol (landscape) # -z model Printer model selection ``` -------------------------------- ### foo2zjs-wrapper Script Source: https://context7.com/koenkooi/foo2zjs/llms.txt A high-level Foomatic-compatible wrapper script that manages the full print pipeline from PostScript to printer output. ```APIDOC ## foo2zjs-wrapper ### Description Handles the complete print pipeline including Ghostscript conversion and color management. ### Parameters - **-c** (flag) - Print in color - **-C** (int) - Color mode: 1=Photos, 2=Photo+text, 3=Graphics+text, 10=ICM profile - **-d** (int) - Duplex mode: 1=off, 2=longedge, 3=shortedge - **-G** (string) - Path to ICC color profile - **-I** (int) - Rendering intent: 0=Perceptual, 1=Colorimetric, 2=Saturation, 3=Absolute - **-t** (flag) - Draft mode (50% toner usage) - **-o** (string) - N-up orientation: -op (portrait), -ol (landscape) ``` -------------------------------- ### Print with foo2lava for LAVAFLOW protocol Source: https://context7.com/koenkooi/foo2zjs/llms.txt Execute print jobs for Konica Minolta and Xerox printers supporting the LAVAFLOW or OPL stream protocols. ```bash # Konica Minolta magicolor 2530 DL foo2lava-wrapper -c -C 10 -G km2530_0.icm -p 9 -r 1200x600 document.ps > output.prn ``` -------------------------------- ### Convert PostScript to ZjStream with foo2zjs Source: https://context7.com/koenkooi/foo2zjs/llms.txt Directly pipe Ghostscript output into the foo2zjs driver to generate printer-ready files for supported HP and Konica Minolta models. ```bash # Monochrome printing - HP LaserJet 1020 gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE \ -sPAPERSIZE=letter -r1200x600 -sDEVICE=pbmraw \ -sOutputFile=- - < document.ps \ | foo2zjs -r1200x600 -g10200x6600 -p1 -P -z1 -L0 > output.prn # Color printing - Konica Minolta 2300 DL gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE \ -sPAPERSIZE=letter -g10200x6600 -r1200x600 -sDEVICE=bitcmyk \ -sOutputFile=- - < document.ps \ | foo2zjs -r1200x600 -g10200x6600 -p1 > output.prn # Common options: # -c Force color mode # -d duplex 1=off, 2=longedge, 3=shortedge # -g WxH Page dimensions in pixels # -m media 1=standard, 2=transparency, 3=glossy, 257=envelope # -p paper 1=letter, 5=legal, 9=A4, 11=A5, 20=env#10 # -n copies Number of copies # -r XxY Resolution in DPI (e.g., 1200x600) # -s source 1=upper, 2=lower, 4=manual, 7=auto # -z model 0=KM2300DL, 1=HP1020, 2=HP Pro P1102, 3=HP Pro CP1025nw # -P Disable START_PLANE codes (for B/W printers) # -L mask Logical clipping: 0=no, 1=Y, 2=X, 3=XY ``` -------------------------------- ### foo2qpdl - Samsung QPDL Protocol Driver Source: https://context7.com/koenkooi/foo2zjs/llms.txt Handles Samsung and Xerox printers using the QPDL protocol. Supports color adjustment and media type selection. ```APIDOC ## foo2qpdl-wrapper ### Description Driver for Samsung CLP/CLX and Xerox Phaser printers using the QPDL protocol. ### Parameters #### Options - **-z** (int) - Required - Model selection: 0=CLP-300/CLX-2160/3160, 1=CLP-600, 2=CLP-310/315/610/CLX-3175, 3=CLP-620/360/365 - **-m** (int) - Optional - Media type: 0=plain, 1=thick, 2=thin, 3=bond, 4=color, 5=card, 6=labels, 7=envelope - **-a** (string) - Optional - Color adjust (b,c,s,cr,mg,yb = 0-100) ### Request Example foo2qpdl-wrapper -c -z 2 -C 10 -G samclp315-argyll-0.icm -p 2 -r 1200x600 document.ps > output.prn ``` -------------------------------- ### Download ICC color profiles Source: https://context7.com/koenkooi/foo2zjs/llms.txt Use the getweb script to download specific printer ICM files or update the software. ```bash ./getweb 2600n # HP Color LaserJet 2600n ICM files ./getweb 1215 # HP Color LaserJet CP1215 ICM files ./getweb 1025 # HP LaserJet Pro CP1025nw ICM files ./getweb 2430 # Konica Minolta magicolor 2430 DL ICM files ./getweb 2530 # Konica Minolta magicolor 2530 DL ICM files ./getweb 300 # Samsung CLP-300 ICM files ./getweb 315 # Samsung CLP-315 ICM files ./getweb 3400 # Oki C3400 ICM files ./getweb 5600 # Oki C5600 ICM files # Download everything ./getweb all # Update foo2zjs software ./getweb update ``` -------------------------------- ### getweb - Firmware and ICM Profile Downloader Source: https://context7.com/koenkooi/foo2zjs/llms.txt Downloads necessary firmware files for HP LaserJet printers and ICC/ICM color profiles. ```APIDOC ## getweb ### Description Downloads firmware files for HP LaserJet printers that require firmware upload on power-up. ### Parameters #### Arguments - **model** (string) - Required - The model identifier (e.g., 1000, 1005, P1005, P1006) ### Request Example ./getweb P1006 ``` -------------------------------- ### Konica Minolta magicolor 1600W Printing Source: https://context7.com/koenkooi/foo2zjs/llms.txt Use the foo2lava-wrapper to convert PostScript documents for the Konica Minolta magicolor 1600W series. ```bash foo2lava-wrapper -c -z 1 -p 1 -r 600x600 document.ps > output.prn ``` -------------------------------- ### foo2hiperc - Oki HIPERC Protocol Driver Source: https://context7.com/koenkooi/foo2zjs/llms.txt Supports Oki printers using the HIPERC protocol with options for paper source and media type. ```APIDOC ## foo2hiperc-wrapper ### Description Driver for Oki C-series printers using the HIPERC protocol. ### Parameters #### Options - **-p** (int) - Optional - Paper size: 1=A4, 2=letter, 3=legal, 5=A5, 6=B5, 7=A6 - **-m** (int) - Optional - Media type: 0=plain, 1=labels, 2=transparency - **-s** (int) - Optional - Source: 0=auto, 1=tray1, 2=tray2, 3=multi, 4=manual - **-Z** (int) - Optional - Compression: 0=uncompressed, 1=compressed ### Request Example foo2hiperc-wrapper -c -m 0 -p 1 -r 600x600 document.ps > output.prn ``` -------------------------------- ### Configure HP Color LaserJet printing with foo2hp Source: https://context7.com/koenkooi/foo2zjs/llms.txt Utilize the foo2hp driver for printers requiring enhanced color support and 2-bit-per-pixel capability. ```bash # HP Color LaserJet 2600n - Color printing gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE \ -sPAPERSIZE=letter -g10200x6600 -r1200x600 -sDEVICE=bitcmyk \ -sOutputFile=- - < document.ps \ | foo2hp -r1200x600 -g10200x6600 -p1 > output.prn # HP Color LaserJet CP1215 with 2-bit color depth foo2hp2600-wrapper -c -b 2 -C 10 -G hp1215-argyll-0.icm \ -p 1 -r 600x600 document.ps > output.prn # Options specific to foo2hp: # -b bits Bits per plane: 1 or 2 [1] # -z model 0=HP CLJ 1600/2600n, 1=HP CLJ CP1215 ``` -------------------------------- ### HP XQX Protocol Printing Source: https://context7.com/koenkooi/foo2zjs/llms.txt Commands for printing to HP LaserJet printers using the foo2xqx-wrapper. ```bash foo2xqx-wrapper -p 1 -r 1200x600 document.ps > output.prn ``` ```bash foo2xqx-wrapper -p 9 -r 600x600 document.ps > output.prn ``` -------------------------------- ### Convert ICC profiles with foo2zjs-icc2ps Source: https://context7.com/koenkooi/foo2zjs/llms.txt Convert ICC/ICM profiles to PostScript CRD or CSA formats with optional black point compensation and precision settings. ```bash # Generate Color Rendering Dictionary from ICC profile foo2zjs-icc2ps -o hpclj2600n-0.icm -t 0 > colorprofile.crd # Generate with black point compensation foo2zjs-icc2ps -o profile.icm -t 0 -b > colorprofile.crd # Generate high-resolution CRD foo2zjs-icc2ps -o profile.icm -t 0 -c 2 > colorprofile.crd ``` -------------------------------- ### Samsung QPDL Protocol Printing Source: https://context7.com/koenkooi/foo2zjs/llms.txt Commands for printing to various Samsung and Xerox printers using the foo2qpdl-wrapper. ```bash foo2qpdl-wrapper -c -C 10 -G samclp300-0.icm -p 0 -r 1200x600 document.ps > output.prn ``` ```bash foo2qpdl-wrapper -c -z 2 -C 10 -G samclp315-argyll-0.icm \ -p 2 -r 1200x600 document.ps > output.prn ``` ```bash foo2qpdl-wrapper -c -z 0 -p 2 -r 1200x600 document.ps > output.prn ``` -------------------------------- ### Lexmark SLX Protocol Printing Source: https://context7.com/koenkooi/foo2zjs/llms.txt Command for printing to Lexmark SLX-based printers using the foo2slx-wrapper. ```bash foo2slx-wrapper -c -C 10 -G lexRPCA2000.icm -p 1 -r 1200x600 document.ps > output.prn ``` -------------------------------- ### foo2zjs Driver Engine Source: https://context7.com/koenkooi/foo2zjs/llms.txt The core driver engine for converting Ghostscript output into ZjStream format for supported HP and Konica Minolta printers. ```APIDOC ## foo2zjs Driver Engine ### Description Converts Ghostscript pbmraw or bitcmyk/pksmraw output to Zenographics ZjStream format. ### Parameters - **-c** (flag) - Force color mode - **-d** (int) - Duplex mode: 1=off, 2=longedge, 3=shortedge - **-g** (string) - Page dimensions in pixels (WxH) - **-m** (int) - Media type: 1=standard, 2=transparency, 3=glossy, 257=envelope - **-p** (int) - Paper size: 1=letter, 5=legal, 9=A4, 11=A5, 20=env#10 - **-n** (int) - Number of copies - **-r** (string) - Resolution in DPI (e.g., 1200x600) - **-s** (int) - Paper source: 1=upper, 2=lower, 4=manual, 7=auto - **-z** (int) - Model: 0=KM2300DL, 1=HP1020, 2=HP Pro P1102, 3=HP Pro CP1025nw - **-P** (flag) - Disable START_PLANE codes - **-L** (int) - Logical clipping: 0=no, 1=Y, 2=X, 3=XY ``` -------------------------------- ### HBPL2 Protocol Printing Source: https://context7.com/koenkooi/foo2zjs/llms.txt Commands for printing to Dell, Epson, Fuji Xerox, and Xerox printers using the foo2hbpl2-wrapper. ```bash foo2hbpl2-wrapper -c -p 1 -r 600x600 document.ps > output.prn ``` ```bash foo2hbpl2-wrapper -c -p 9 -r 600x600 document.ps > output.prn ``` -------------------------------- ### Oki HIPERC Protocol Printing Source: https://context7.com/koenkooi/foo2zjs/llms.txt Commands for printing to Oki printers using the foo2hiperc-wrapper. ```bash foo2hiperc-wrapper -c -C 10 -G OK5600L1.icm -p 2 -r 1200x600 document.ps > output.prn ``` ```bash foo2hiperc-wrapper -c -m 0 -p 1 -r 600x600 document.ps > output.prn ``` -------------------------------- ### Oak/Zoran OAKT Protocol Printing Source: https://context7.com/koenkooi/foo2zjs/llms.txt Commands for printing to HP and Kyocera printers using the foo2oak-wrapper. ```bash foo2oak-wrapper -c -p 1 -r 600x600 document.ps > output.prn ``` ```bash foo2oak-wrapper -p 9 -r 600x600 document.ps > output.prn ``` -------------------------------- ### ZjStream Decoding Source: https://context7.com/koenkooi/foo2zjs/llms.txt Utilities for decoding ZjStream printer data and extracting raw planes or PBM images. ```bash zjsdecode < printjob.prn ``` ```bash zjsdecode -r rawplane < printjob.prn ``` ```bash zjsdecode -d decoded < printjob.prn ``` ```bash zjsdecode -o < printjob.prn ``` ```bash zjsdecode -h < printjob.prn ``` -------------------------------- ### zjsdecode - ZjStream Decoder Utility Source: https://context7.com/koenkooi/foo2zjs/llms.txt Utility to decode ZjStream printer data for debugging, reverse engineering, or extracting raw planes and PBM images. ```APIDOC ## zjsdecode ### Description Decodes ZjStream printer data into human-readable format or extracts image data. ### Parameters #### Options - **-d** (string) - Optional - Save decompressed planes as .pbm files with given basename - **-r** (string) - Optional - Save raw JBIG planes as .jbg files with given basename - **-o** (flag) - Optional - Print decimal file offsets - **-h** (flag) - Optional - Print hexadecimal file offsets ### Request Example zjsdecode -r rawplane < printjob.prn ``` -------------------------------- ### foo2hp Driver Engine Source: https://context7.com/koenkooi/foo2zjs/llms.txt Driver engine specifically for HP Color LaserJet printers using ZjStream with enhanced color support. ```APIDOC ## foo2hp ### Description Supports HP Color LaserJet 1500/1600/2600n/CP1215 printers. ### Parameters - **-b** (int) - Bits per plane: 1 or 2 - **-z** (int) - Model: 0=HP CLJ 1600/2600n, 1=HP CLJ CP1215 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.