From: Andrew A. <and...@ho...> - 2004-03-31 05:50:18
|
Thanks for the reply Grottfried. I also tried explicitly naming the printer with the -P parameter, and still same result :(. I also did some further investigating and here's some of the debug spews from cups' error_log. distribution: Linux RH9 Cups installed: (used rpm -qa | grep cups) cups-1.1.20-1 ghostscript-cups-7.07.1-0 cups-libs-1.1.20-1 cups-debuginfo-1.1.20-1 cups-devel-1.1.20-1 Omni-cups-0.9.1-1 Omni Installed: (used rpm -qa | grep Omni) Omni-0.9.1-1 Omni-cups-0.9.1-1 ghostscript installed:(used rpm -qa | grep ghost) ghostscript-cups-7.07.1-0 ghostscript-fonts-5.50-9 ghostscript-7.07.1-0 Using the above environment, I installed a printer(Epson 24 pin 80 col cups+omni) using CUPS' web interface. Then configured the paper size to A5 and print(still using web interface). The output was still printed on Letter and here are some debug spews ... .... D [31/Mar/2004:13:16:28 +0900] StartJob() id = 2, file = 0/1 D [31/Mar/2004:13:16:28 +0900] job-sheets=none,none D [31/Mar/2004:13:16:28 +0900] banner_page = 0 D [31/Mar/2004:13:16:28 +0900] StartJob: argv = "EpsOmni","2","root","Test Page","1","","/var/spool/cups/d00002-001" D [31/Mar/2004:13:16:28 +0900] StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin" D [31/Mar/2004:13:16:28 +0900] StartJob: envp[1]="SOFTWARE=CUPS/1.1" D [31/Mar/2004:13:16:28 +0900] StartJob: envp[2]="USER=root" D [31/Mar/2004:13:16:28 +0900] StartJob: envp[3]="CHARSET=utf-8" D [31/Mar/2004:13:16:28 +0900] StartJob: envp[4]="LANG=en_US" D [31/Mar/2004:13:16:28 +0900] StartJob: envp[5]="TZ=Asia/Tokyo" D [31/Mar/2004:13:16:28 +0900] StartJob: envp[6]="PPD=/etc/cups/ppd/EpsOmni.ppd" D [31/Mar/2004:13:16:28 +0900] StartJob: envp[7]="CUPS_SERVERROOT=/etc/cups" D [31/Mar/2004:13:16:28 +0900] StartJob: envp[8]="RIP_MAX_CACHE=8m" D [31/Mar/2004:13:16:28 +0900] StartJob: envp[9]="TMPDIR=/var/spool/cups/tmp" D [31/Mar/2004:13:16:28 +0900] StartJob: envp[10]="CONTENT_TYPE=application/postscript" D [31/Mar/2004:13:16:28 +0900] StartJob: envp[11]="DEVICE_URI=parallel:/dev/lp0" D [31/Mar/2004:13:16:28 +0900] StartJob: envp[12]="PRINTER=EpsOmni" D [31/Mar/2004:13:16:28 +0900] StartJob: envp[13]="CUPS_DATADIR=/usr/share/cups" D [31/Mar/2004:13:16:28 +0900] StartJob: envp[14]="CUPS_FONTPATH=/usr/share/cups/fonts" D [31/Mar/2004:13:16:28 +0900] StartJob: envp[15]="CUPS_SERVER=localhost" D [31/Mar/2004:13:16:28 +0900] StartJob: envp[16]="IPP_PORT=631" ... (as seen here page = 419x595 ... or A5) D [31/Mar/2004:13:16:28 +0900] [Job 2] Page = 419x595; 0,0 to 420,539 D [31/Mar/2004:13:16:28 +0900] [Job 2] slowcollate=0, slowduplex=0, sloworder=0 D [31/Mar/2004:13:16:28 +0900] [Job 2] 0 %%BoundingBox: 0 0 612 792 D [31/Mar/2004:13:16:28 +0900] [Job 2] 0 %%Pages: 1 D [31/Mar/2004:13:16:28 +0900] [Job 2] 0 %%LanguageLevel: 1 D [31/Mar/2004:13:16:28 +0900] [Job 2] 0 %%DocumentData: Clean7Bit D [31/Mar/2004:13:16:28 +0900] [Job 2] 0 %%DocumentSuppliedResources: procset testprint/1.0 D [31/Mar/2004:13:16:28 +0900] [Job 2] 0 %%DocumentNeededResources: font Helvetica Helvetica-Bold Times-Roman D [31/Mar/2004:13:16:28 +0900] [Job 2] 0 %%Creator: Michael Sweet, Easy Software Products D [31/Mar/2004:13:16:28 +0900] [Job 2] 0 %%CreationDate: May 11, 1999 D [31/Mar/2004:13:16:28 +0900] [Job 2] 0 %%Title: Test Page D [31/Mar/2004:13:16:28 +0900] [Job 2] 0 %%EndComments D [31/Mar/2004:13:16:28 +0900] [Job 2] 0 %%BeginProlog D [31/Mar/2004:13:16:28 +0900] [Job 2] 0 %%BeginResource procset testprint 1.1 0 D [31/Mar/2004:13:16:28 +0900] [Job 2] 0 %%EndResource D [31/Mar/2004:13:16:28 +0900] [Job 2] 0 %%EndProlog D [31/Mar/2004:13:16:28 +0900] [Job 2] 0 %%Page: 1 1 D [31/Mar/2004:13:16:28 +0900] [Job 2] 0 %%Page: 1 1 D [31/Mar/2004:13:16:28 +0900] [Job 2] pw = 419.5, pl = 538.6 D [31/Mar/2004:13:16:28 +0900] [Job 2] PageLeft = 0.0, PageRight = 419.5 D [31/Mar/2004:13:16:28 +0900] [Job 2] PageTop = 538.6, PageBottom = 0.0 D [31/Mar/2004:13:16:28 +0900] [Job 2] PageWidth = 419.0, PageLength = 595.0 d [31/Mar/2004:13:16:28 +0900] WriteClient: Removing fd 7 from OutputSet... ...(several entries have these PageSize= 612 792 ... or Letter) D [31/Mar/2004:13:16:31 +0900] [Job 2] cups->ppd->flip_duplex = 0 D [31/Mar/2004:13:16:31 +0900] [Job 2] width = 850, height = 1100 D [31/Mar/2004:13:16:31 +0900] [Job 2] PageSize = [ 612 792 ], HWResolution = [ 100 100 ] D [31/Mar/2004:13:16:31 +0900] [Job 2] HWMargins = [ 0.000 0.000 0.000 0.000 ] D [31/Mar/2004:13:16:31 +0900] [Job 2] matrix = [ 1.389 0.000 0.000 -1.389 -0.000 1100.000 ] ... D [31/Mar/2004:13:16:31 +0900] [Job 2] matrix = [ 2.500 0.000 0.000 -2.500 -0.000 1838.268 ] D [31/Mar/2004:13:16:31 +0900] [Job 2] 0 %%EOF D [31/Mar/2004:13:16:31 +0900] [Job 2] Saw EOF! d [31/Mar/2004:13:16:31 +0900] PID 2245 exited with no errors. I [31/Mar/2004:13:16:31 +0900] [Job 2] CUPSToOmni: The job properties are "Copies=1 Form=na_letter_8.50x11.00in InputTray=Rear NumberUp=1X1 NumberUpPresentationDirection=TobottomToright OutputBin=Bottom Resolution=180x180 Rotation=Portrait ScalingPercentage=100 ScalingType=FitToPage Sides=OneSidedFront StitchingAngle=0 StitchingCount=0 StitchingPosition=0 StitchingReferenceEdge=Bottom StitchingType=Corner Trimming=None XMLMasterFile="/usr/share/Omni/Epson 24-pin 80 Col.xml" bidirectional=true dither=DITHER_STUCKI_DIFFUSION media=MEDIA_PLAIN printmode=PRINT_MODE_1_ANY resolution=DRE1_180_180" I [31/Mar/2004:13:16:31 +0900] [Job 2] CUPSToOmni: Begin job. D [31/Mar/2004:13:16:31 +0900] [Job 2] cups_print_chunked - flip = 0, height = 1810 d [31/Mar/2004:13:17:22 +0900] DeleteCert: removing certificate for pid 0 d [31/Mar/2004:13:17:22 +0900] AddCert: adding certificate for pid 0 ... --> as seen in the last lines of the debug spews the CUPSToOmni reports that the form passed is Letter I'm more or less a newbie to linux programming, coz I'm originally a device-driver developer for MS products. And currently I and my company would like to support linux for our printers. Hope you guys can help me out. Thanks. Andrew >From: Gottfried Scheckenbach <got...@xt...> >Reply-To: got...@xt... >To: Andrew Aguas <and...@ho...> >CC: omn...@li... >Subject: Re: [Omniprint-user] Omni and CUPS communication >Date: Wed, 24 Mar 2004 09:14:46 +0100 > >Perhaps you should specify explicitly the name of the printer - just a >try... > >Grottfried > > >Andrew Aguas wrote: >>Hello All. >> >>I'm currently trying to develop printer drivers using Omni architecture >>and >>I've ran into some trouble. >> >>With esp-ghostscript 7.07.1, I can print and modify the properties of the >>drivers (Epson 24-pin 80 Col) such as Form=A5 using the -sproperties >>parameter. >> >>But when I use CUPS, both the Web Interface and lpr command to modify the >>properties, >>It does not change, my command is something like: >> # lpr -o media=A5 test.ps >> or >> # lpoptions -o media=A5 >> # lpr test.ps >>result: >> --> test.ps is still printed using the default form/paper which is >>Letter. >> >>Am I doing something wrong here? >>Im using the following versions: >> Redhat Linux 9 >> cups 1.1.20 >> omni 0.9.1-1 >> ><< smime.p7s >> _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail |