From: Mark H. <ha...@us...> - 2001-11-13 22:25:47
|
Hi Terry, Thanks for reporting the error. > I am using RedHat 7.2 with latest updates (12/11/01) using Omni 0.5.0 > and am having > printing problems. As the printer configuration system has got so messy > in RedHat 7.2 > I have simplified the problem to running ghostscript manually with the > following command: > > gs -sDEVICE=omni -sDeviceName="HP_LaserJet_III" -r300x300 > -sOutputFile=out.lj -sPAPERSIZE=a4 > > Using this command gives two errors: > > 1. A page is first emitted with a single line "@PJL ENTER LANGUAGE=PCL" > at the top. I dug up a LaserJet III to test with and it is broken. So, can you try the following: edit HP LaserJet/HP LaserJet III.xml remove line 32 that should say "<DeviceOptions type="PT_SUPPORT_PJL"/>" This should remove that from the printout. > 2. At the second page the printer stops with the message "Load Letter" > and will complete the > print if the "continue" button on the printer is pressed. The page > printed is offset off the top of the paper. Ghostscript is an application that needs to be told the papersize. Also, we need to be told the papersize. Right now, we both have different command line parameters for that. Can you add '-sproperties="form=FORM_A4"' to the command line? Hopefully, that should fix both errors. Thanks, Mark Take a look at the Linux Omni printer driver at http://www.ibm.com/linux/ltc/projects/omni/ |
From: Mark H. <ha...@us...> - 2001-11-14 21:19:42
|
Hey Terry, Thanks for catching that. I have made a lot of changes and put them in CVS. Can you extract them and try it? Mark Take a look at the Linux Omni printer driver at http://www.ibm.com/linux/ltc/projects/omni/ |
From: Terry B. <te...@be...> - 2001-11-15 11:35:24
|
Hi Mark, I've retreived the CVS tree but I susspect it is not quite up to date. I get lots of compilation errors such as: Brother_MFC_P2000.cpp: In method `void Brother_MFC_P2000::commonInit()': Brother_MFC_P2000.cpp:64: `PT_AUTO_ROTATE' is not a member of type `Brother_PCL_Instance' Terry Mark Hamzy wrote: > Hey Terry, > > Thanks for catching that. I have made a lot of changes and put them in > CVS. Can you extract them and try it? > > Mark > > Take a look at the Linux Omni printer driver at > http://www.ibm.com/linux/ltc/projects/omni/ > > _______________________________________________ > Omniprint-user mailing list > Omn...@li... > https://lists.sourceforge.net/lists/listinfo/omniprint-user -- Dr Terry Barnaby BEAM Ltd Phone: +44 1454 324512 Northavon Business Center, Dean Rd Fax: +44 1454 313172 Yate, Bristol, BS37 5NH, UK Email: te...@be... Web: www.beam.demon.co.uk BEAM for: Visually Impaired X-Terminals, Parallel Processing, Software Dev "Tandems are twice the fun !" |
From: Mark H. <ha...@us...> - 2001-11-15 17:42:19
|
Hey Terry, Sigh. I forgot to update clone LaserJet devices and it looks like there was a hole in the dependancy generation. I have updated CVS again. Mark Take a look at the Linux Omni printer driver at http://www.ibm.com/linux/ltc/projects/omni/ |
From: Terry B. <te...@be...> - 2001-11-16 16:32:31
|
Thanks for the CVS update, It compiles now bu when I try to run Ghostscipt I get the error: ----------------- <<<<<<<<<<<<<<<<<<<<<< ERROR >>>>>>>>>>>>>>>>>>>>>>> GhostscriptInterface::createDevice: g_module_error returns libHP_LaserJet_III.so: cannot open shared object file: No such file or directory GhostscriptInterface::createDevice: cDeviceName = libHP_LaserJet_III.so GhostscriptInterface::createDevice: pszDeviceName = HP_LaserJet_III Unrecoverable error: rangecheck in .putdeviceprops ----------------- To test I simply recompiled Omni and coppied all of the .so's to the directory /usr/lib/Omni where they are normally in the RedHat system. Any ideas ? Terry Mark Hamzy wrote: > Hey Terry, > > Sigh. I forgot to update clone LaserJet devices and it looks like there > was a hole in the dependancy generation. > > I have updated CVS again. > > Mark > > Take a look at the Linux Omni printer driver at > http://www.ibm.com/linux/ltc/projects/omni/ -- Dr Terry Barnaby BEAM Ltd Phone: +44 1454 324512 Northavon Business Center, Dean Rd Fax: +44 1454 313172 Yate, Bristol, BS37 5NH, UK Email: te...@be... Web: www.beam.demon.co.uk BEAM for: Visually Impaired X-Terminals, Parallel Processing, Software Dev "Tandems are twice the fun !" |
From: Mark H. <ha...@us...> - 2001-11-16 21:23:26
|
Hey Terry, Thanks for the patience. It appears that Red Hat patches Omni to load devices in /usr/lib/Omni and that patch is not in cvs. I have now updated cvs to include that patch. After you compile make sure that you copy libomni.so over to /usr/lib/Omni as well. Mark Take a look at the Linux Omni printer driver at http://www.ibm.com/linux/ltc/projects/omni/ |
From: Terry B. <te...@be...> - 2001-11-19 10:31:26
|
Hi Mark, Success ! The current CVS tree builds, installs and the printer prints ! Thanks for the help. One little thing remains: The printed page is not aligned correctly. I am using the command: gs -sDEVICE=omni -sDeviceName="HP_LaserJet_III" -sproperties="form=FORM_A4" -r300x300 -sOutputFile=out.lj -sPAPERSIZE=a4 -q - I have tried to change the hardCopyCap values in "HP LaserJet III Forms.xml". These don't seem to have any effect. (Also what units are these in, the documentation says hundreths of mm but the values in the file are in the order 4000-9000 which does not seem to make much sense.) Any pointers ? Cheers Terry PS: The use of spaces in file names is awkward for us old time command line users ! and also casues problems when writing automated scripts :(. Terry Mark Hamzy wrote: > Hey Terry, > > Thanks for the patience. It appears that Red Hat patches Omni to load > devices in /usr/lib/Omni and that patch is > not in cvs. I have now updated cvs to include that patch. After you > compile make sure that you copy libomni.so > over to /usr/lib/Omni as well. > > Mark > > Take a look at the Linux Omni printer driver at > http://www.ibm.com/linux/ltc/projects/omni/ > > _______________________________________________ > Omniprint-user mailing list > Omn...@li... > https://lists.sourceforge.net/lists/listinfo/omniprint-user -- Dr Terry Barnaby BEAM Ltd Phone: +44 1454 324512 Northavon Business Center, Dean Rd Fax: +44 1454 313172 Yate, Bristol, BS37 5NH, UK Email: te...@be... Web: www.beam.demon.co.uk BEAM for: Visually Impaired X-Terminals, Parallel Processing, Software Dev "Tandems are twice the fun !" |
From: Mark H. <ha...@us...> - 2001-11-20 15:57:06
|
Hey Terry, The values in the hard copy caps used to be in hundredths of a millimeter but were later expanded to be in thousandths of a millimeter to avoid conversion losses between inches and millimeters in form sizes. I have just updated docs/HowToCreateADevice. Hopefully, that was the last place which referenced the old unit size. You are on the right track. Please be aware of the DeviceTester program. If you call it as follows: DeviceTester drawbox driver libHP_LaserJet_III.so cout output1.prn cerr output1.err && cp output1.prn /dev/lp0 It will draw a box around the printable area of the page. The right and bottom sides will have incremental lines to help determine how many pels are missing from the sides. Yeah, I know the spaces in file names causes problems, but I think that the advantages outweigh the disadvantages. I wish they would fix the bugs in the command line programs because space is a valid filename character. Mark Take a look at the Linux Omni printer driver at http://www.ibm.com/linux/ltc/projects/omni/ |
From: Terry B. <te...@be...> - 2001-11-22 13:44:12
|
Hi Mark, I've tried changing hardCopyCapLeft but this only seems to alter the clipping of the page on the right. No shift of the page is performed. The hardCopyCapBottom parameter does move the print up from the bottom of the page. On our printer a shift to the left of about 6mm is required. Does this need to be done within Ghostscript ? Any Ideas ? I would call the command line use of spaces as separators a feature and the allowing of space in file names a bug :) It is not only the shell but most unix tools such as make, sed, awk, grep etc that use the space character as a separator allowing a single string to contain a list of elements. As a matter of interest what are the advantages of using spaces in file names ? Cheers Terry Mark Hamzy wrote: > Hey Terry, > > The values in the hard copy caps used to be in hundredths of a millimeter > but were later expanded to be in > thousandths of a millimeter to avoid conversion losses between inches and > millimeters in form sizes. > I have just updated docs/HowToCreateADevice. Hopefully, that was the last > place which referenced the old > unit size. > > You are on the right track. Please be aware of the DeviceTester program. > If you call it as follows: > DeviceTester drawbox driver libHP_LaserJet_III.so cout output1.prn > cerr output1.err && cp output1.prn /dev/lp0 > > It will draw a box around the printable area of the page. The right and > bottom sides will have incremental lines > to help determine how many pels are missing from the sides. > > Yeah, I know the spaces in file names causes problems, but I think that the > advantages outweigh the disadvantages. > I wish they would fix the bugs in the command line programs because space > is a valid filename character. > > Mark > > Take a look at the Linux Omni printer driver at > http://www.ibm.com/linux/ltc/projects/omni/ > > _______________________________________________ > Omniprint-user mailing list > Omn...@li... > https://lists.sourceforge.net/lists/listinfo/omniprint-user -- Dr Terry Barnaby BEAM Ltd Phone: +44 1454 324512 Northavon Business Center, Dean Rd Fax: +44 1454 313172 Yate, Bristol, BS37 5NH, UK Email: te...@be... Web: www.beam.demon.co.uk BEAM for: Visually Impaired X-Terminals, Parallel Processing, Software Dev "Tandems are twice the fun !" |
From: Mark H. <ha...@us...> - 2001-11-26 21:24:20
|
Hey Terry, Sorry about the delay for Thanksgiving. If you take a look at "HP LaserJet PCL Instance.cpp", at line 179, it calculates the vertical offset. It uses it at line 375. The second parameter is the x offset in the units of measurement (UOM) which is hardcoded to 0. Try changing that value. Some reasons to have spaces in the filenames are that it is more natural (that is a one to one mapping of the device name to the file name) and to tell the difference between an actual file (that has spaces) and a build-generated file (that has underscores). Mark Take a look at the Linux Omni printer driver at http://www.ibm.com/linux/ltc/projects/omni/ |
From: Terry B. <te...@be...> - 2001-11-29 17:01:47
|
Hi Mark, Thanks for the info, changing the hardcoded value worked when it was positive but not when negative (we needed to shift the page to the left). However, we can live with the shift (amout 5mm). Thanks for the help. By the way, we are developers of X-Windows accessability software for visually impaired people (screen magnification and screen reading with speach and braille support). We are looking to port this software to Linux. I know IBM is getting involved in Linux, is there anyone at IBM who may be interested in this, perhaps with funding ? Some info is on http://www.beam.ltd.uk/xvil Terry Mark Hamzy wrote: > Hey Terry, > > Sorry about the delay for Thanksgiving. > > If you take a look at "HP LaserJet PCL Instance.cpp", at line 179, it > calculates the vertical offset. It uses > it at line 375. The second parameter is the x offset in the units of > measurement (UOM) which is hardcoded > to 0. Try changing that value. > > Some reasons to have spaces in the filenames are that it is more natural > (that is a one to one mapping of > the device name to the file name) and to tell the difference between an > actual file (that has spaces) and > a build-generated file (that has underscores). > > Mark > > Take a look at the Linux Omni printer driver at > http://www.ibm.com/linux/ltc/projects/omni/ > > _______________________________________________ > Omniprint-user mailing list > Omn...@li... > https://lists.sourceforge.net/lists/listinfo/omniprint-user -- Dr Terry Barnaby BEAM Ltd Phone: +44 1454 324512 Northavon Business Center, Dean Rd Fax: +44 1454 313172 Yate, Bristol, BS37 5NH, UK Email: te...@be... Web: www.beam.demon.co.uk BEAM for: Visually Impaired X-Terminals, Parallel Processing, Software Dev "Tandems are twice the fun !" |