1284194Sdelphij 2284194Sdelphij#------------------------------------------------------------------------------ 3284194Sdelphij# $File: printer,v 1.26 2014/04/12 14:51:52 christos Exp $ 4284194Sdelphij# printer: file(1) magic for printer-formatted files 5284194Sdelphij# 6284194Sdelphij 7284194Sdelphij# PostScript, updated by Daniel Quinlan (quinlan@yggdrasil.com) 8284194Sdelphij0 string %! PostScript document text 9284194Sdelphij!:mime application/postscript 10284194Sdelphij!:apple ASPSTEXT 11284194Sdelphij>2 string PS-Adobe- conforming 12284194Sdelphij>>11 string >\0 DSC level %.3s 13284194Sdelphij>>>15 string EPS \b, type %s 14284194Sdelphij>>>15 string Query \b, type %s 15284194Sdelphij>>>15 string ExitServer \b, type %s 16284194Sdelphij>>>15 search/1000 %%LanguageLevel:\ 17284194Sdelphij>>>>&0 string >\0 \b, Level %s 18284194Sdelphij# Some PCs have the annoying habit of adding a ^D as a document separator 19284194Sdelphij0 string \004%! PostScript document text 20284194Sdelphij!:mime application/postscript 21284194Sdelphij!:apple ASPSTEXT 22284194Sdelphij>3 string PS-Adobe- conforming 23284194Sdelphij>>12 string >\0 DSC level %.3s 24284194Sdelphij>>>16 string EPS \b, type %s 25284194Sdelphij>>>16 string Query \b, type %s 26284194Sdelphij>>>16 string ExitServer \b, type %s 27284194Sdelphij>>>16 search/1000 %%LanguageLevel:\ 28284194Sdelphij>>>>&0 string >\0 \b, Level %s 29284194Sdelphij0 string \033%-12345X%!PS PostScript document 30284194Sdelphij 31284194Sdelphij# DOS EPS Binary File Header 32284194Sdelphij# From: Ed Sznyter <ews@Black.Market.NET> 33284194Sdelphij0 belong 0xC5D0D3C6 DOS EPS Binary File 34284194Sdelphij>4 long >0 Postscript starts at byte %d 35284194Sdelphij>>8 long >0 length %d 36284194Sdelphij>>>12 long >0 Metafile starts at byte %d 37284194Sdelphij>>>>16 long >0 length %d 38284194Sdelphij>>>20 long >0 TIFF starts at byte %d 39284194Sdelphij>>>>24 long >0 length %d 40284194Sdelphij 41284194Sdelphij# Summary: Adobe's PostScript Printer Description File 42284194Sdelphij# Extension: .ppd 43284194Sdelphij# Reference: http://partners.adobe.com/public/developer/en/ps/5003.PPD_Spec_v4.3.pdf, Section 3.8 44284194Sdelphij# Submitted by: Yves Arrouye <arrouye@marin.fdn.fr> 45284194Sdelphij# 46284194Sdelphij0 string *PPD-Adobe:\x20 PPD file 47284194Sdelphij>&0 string x \b, version %s 48284194Sdelphij 49284194Sdelphij# HP Printer Job Language 50284194Sdelphij0 string \033%-12345X@PJL HP Printer Job Language data 51284194Sdelphij# HP Printer Job Language 52284194Sdelphij# The header found on Win95 HP plot files is the "Silliest Thing possible" 53284194Sdelphij# (TM) 54284194Sdelphij# Every driver puts the language at some random position, with random case 55284194Sdelphij# (LANGUAGE and Language) 56284194Sdelphij# For example the LaserJet 5L driver puts the "PJL ENTER LANGUAGE" in line 10 57284194Sdelphij# From: Uwe Bonnes <bon@elektron.ikp.physik.th-darmstadt.de> 58284194Sdelphij# 59284194Sdelphij0 string \033%-12345X@PJL HP Printer Job Language data 60284194Sdelphij>&0 string >\0 %s 61284194Sdelphij>>&0 string >\0 %s 62284194Sdelphij>>>&0 string >\0 %s 63284194Sdelphij>>>>&0 string >\0 %s 64284194Sdelphij#>15 string \ ENTER\ LANGUAGE\ = 65284194Sdelphij#>31 string PostScript PostScript 66284194Sdelphij 67284194Sdelphij# From: Stefan Thurner <thurners@nicsys.de> 68284194Sdelphij0 string \033%-12345X@PJL 69284194Sdelphij>&0 search/10000 %! PJL encapsulated PostScript document text 70284194Sdelphij 71284194Sdelphij# Rick Richardson <rickrich@gmail.com> 72284194Sdelphij 73284194Sdelphij# For Fuji-Xerox Printers - HBPL stands for Host Based Printer Language 74284194Sdelphij# For Oki Data Printers - HIPERC 75284194Sdelphij# For Konica Minolta Printers - LAVAFLOW 76284194Sdelphij# For Samsung Printers - QPDL 77284194Sdelphij# For HP Printers - ZJS stands for Zenographics ZJStream 78284194Sdelphij0 string \033%-12345X@PJL HP Printer Job Language data 79284194Sdelphij>0 search/10000 @PJL\ ENTER\ LANGUAGE=HBPL - HBPL 80284194Sdelphij>0 search/10000 @PJL\ ENTER\ LANGUAGE=HIPERC - Oki Data HIPERC 81284194Sdelphij>0 search/10000 @PJL\ ENTER\ LANGUAGE=LAVAFLOW - Konica Minolta LAVAFLOW 82284194Sdelphij>0 search/10000 @PJL\ ENTER\ LANGUAGE=QPDL - Samsung QPDL 83284194Sdelphij>0 search/10000 @PJL\ ENTER\ LANGUAGE\ =\ QPDL - Samsung QPDL 84284194Sdelphij>0 search/10000 @PJL\ ENTER\ LANGUAGE=ZJS - HP ZJS 85284194Sdelphij 86284194Sdelphij 87284194Sdelphij# HP Printer Control Language, Daniel Quinlan (quinlan@yggdrasil.com) 88284194Sdelphij0 string \033E\033 HP PCL printer data 89284194Sdelphij>3 string \&l0A - default page size 90284194Sdelphij>3 string \&l1A - US executive page size 91284194Sdelphij>3 string \&l2A - US letter page size 92284194Sdelphij>3 string \&l3A - US legal page size 93284194Sdelphij>3 string \&l26A - A4 page size 94284194Sdelphij>3 string \&l80A - Monarch envelope size 95284194Sdelphij>3 string \&l81A - No. 10 envelope size 96284194Sdelphij>3 string \&l90A - Intl. DL envelope size 97284194Sdelphij>3 string \&l91A - Intl. C5 envelope size 98284194Sdelphij>3 string \&l100A - Intl. B5 envelope size 99284194Sdelphij>3 string \&l-81A - No. 10 envelope size (landscape) 100284194Sdelphij>3 string \&l-90A - Intl. DL envelope size (landscape) 101284194Sdelphij 102284194Sdelphij# IMAGEN printer-ready files: 103284194Sdelphij0 string @document( Imagen printer 104284194Sdelphij# this only works if "language xxx" is first item in Imagen header. 105284194Sdelphij>10 string language\ impress (imPRESS data) 106284194Sdelphij>10 string language\ daisy (daisywheel text) 107284194Sdelphij>10 string language\ diablo (daisywheel text) 108284194Sdelphij>10 string language\ printer (line printer emulation) 109284194Sdelphij>10 string language\ tektronix (Tektronix 4014 emulation) 110284194Sdelphij# Add any other languages that your Imagen uses - remember 111284194Sdelphij# to keep the word `text' if the file is human-readable. 112284194Sdelphij# [GRR 950115: missing "postscript" or "ultrascript" (whatever it was called)] 113284194Sdelphij# 114284194Sdelphij# Now magic for IMAGEN font files... 115284194Sdelphij0 string Rast RST-format raster font data 116284194Sdelphij>45 string >0 face %s 117284194Sdelphij# From Jukka Ukkonen 118284194Sdelphij0 string \033[K\002\0\0\017\033(a\001\0\001\033(g Canon Bubble Jet BJC formatted data 119284194Sdelphij 120284194Sdelphij# From <mike@flyn.org> 121284194Sdelphij# These are the /etc/magic entries to decode data sent to an Epson printer. 122284194Sdelphij0 string \x1B\x40\x1B\x28\x52\x08\x00\x00REMOTE1P Epson Stylus Color 460 data 123284194Sdelphij 124284194Sdelphij 125284194Sdelphij#------------------------------------------------------------------------------ 126284194Sdelphij# zenographics: file(1) magic for Zenographics ZjStream printer data 127284194Sdelphij# Rick Richardson <rickrich@gmail.com> 128284194Sdelphij0 string JZJZ 129284194Sdelphij>0x12 string ZZ Zenographics ZjStream printer data (big-endian) 130284194Sdelphij0 string ZJZJ 131284194Sdelphij>0x12 string ZZ Zenographics ZjStream printer data (little-endian) 132284194Sdelphij 133284194Sdelphij 134284194Sdelphij#------------------------------------------------------------------------------ 135284194Sdelphij# Oak Technologies printer stream 136284194Sdelphij# Rick Richardson <rickrich@gmail.com> 137284194Sdelphij0 string OAK 138284194Sdelphij>0x07 byte 0 139284194Sdelphij>0x0b byte 0 Oak Technologies printer stream 140284194Sdelphij 141284194Sdelphij# This would otherwise be recognized as PostScript - nick@debian.org 142284194Sdelphij0 string %!VMF SunClock's Vector Map Format data 143284194Sdelphij 144284194Sdelphij#------------------------------------------------------------------------------ 145284194Sdelphij# HP LaserJet 1000 series downloadable firmware file 146284194Sdelphij0 string \xbe\xefABCDEFGH HP LaserJet 1000 series downloadable firmware 147284194Sdelphij 148284194Sdelphij# From: Paolo <oopla@users.sf.net> 149284194Sdelphij# Epson ESC/Page, ESC/PageColor 150284194Sdelphij0 string \x1b\x01@EJL Epson ESC/Page language printer data 151