HP Color LaserJet 1600 :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
Problem printing PDF Files [Didn't follow directions]
Posted by: baris ()
Date: January 04, 2008 01:24PM

Hi;

I'm trying to print PDF files using GNOME Evince Document Viewer 2.20, CUPS 1.3.4 and foo2hp2600 (svn) driver. However I can't.

I don't think this is related with Evince and Cups because Evince creates .ps output of PDFs using "Print to file" function. And I can print other documents like photos with gutenprint, or from gedit, OpenOffice.org etc.

When it comes to PDF, created .ps file does not work with foo2hp2600-wrapper script. I try the following happens;
$ foo2hp2600-wrapper pdf_output.ps > output.zfs
Not a pbm file!

I have no idea which part of the script prints this but that looks like the cause of problem. Cups last message from printer is "Sent 72 bytes" for any byte long PDF file.

I want to further debug the issue, but I don't know where to start. I can mail the .ps file to those interested.



Edited 1 time(s). Last edit at 01/04/2008 03:02PM by rickrich.

Options: ReplyQuote
Re: Problem printing PDF Files
Posted by: baris ()
Date: January 04, 2008 01:36PM

Some more info about the problem:
After checking foo2hp.c, I realized that this problem is due to not giving '-c' parameter to foo2hp2600-wrapper script.

Running following command returns with success:
$ foo2hp2600-wrapper -c pdf_output.ps > output.zjs

However output.zjs file is 72 bytes.

Base64 encoded output.zjs if as following;
SlpKWgAAADQAAAAAAAAAAwAkWloAAAAMAAEBAAAAAAAAAAAMAAIBAAAAAAEAAAAMAAABAAAAAAAAAAAQAAAAAQAAAAAAAFpa

Using base64 -d would create outpu.zjs created from pdf_output.ps file.

Options: ReplyQuote
Re: Problem printing PDF Files
Posted by: rickrich ()
Date: January 04, 2008 01:37PM

$ uname -a
Linux dual.rkkda.com 2.6.23.9-85.fc8 #1 SMP Fri Dec 7 15:49:59 EST 2007 i686 i686 i386 GNU/Linux

$ rpm -qa | grep evince
evince-2.20.2-1.fc8

$ evince testpage.pdf

Works good, mono or color.

What distro and version are you using?

Did you follow my instructions or what??

Options: ReplyQuote
Re: Problem printing PDF Files
Posted by: baris ()
Date: January 04, 2008 01:43PM

I'm using Fedora 8 - Fully updated.

[draco@localhost ~]$ rpm -qa evince
evince-2.20.1-2.fc8


I can print the test page. But *most* of the pdfs I have do not work.

Can you suggest me a way to debug pdfs in order to generate correct zjs files? Something must be pushing foo2hp to create that 72 bytes long output directly.

Options: ReplyQuote
Re: Problem printing PDF Files
Posted by: rickrich ()
Date: January 04, 2008 02:32PM

Please put "pdf_output.pdf", and "pdf_output.ps" on the web.

Options: ReplyQuote
Re: Problem printing PDF Files
Posted by: baris ()
Date: January 04, 2008 02:42PM

It was color profiles. I had not icm file in /usr/share/hp2foo/icm. Would it better to report that to used either with debug or error message? So it does not look like successful print job.

Options: ReplyQuote
Re: Problem printing PDF Files
Posted by: rickrich ()
Date: January 04, 2008 03:02PM

Follow the *directions* on my site!!!!

Click the link, or cut and paste the whole command line below to download the driver.

        $ wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz

Now unpack it:

    Unpack:
        $ tar zxf foo2zjs.tar.gz
        $ cd foo2zjs

Now compile and install it. The INSTALL file contains more detailed instructions; please read it now.

    Compile:
        $ make

    Get .ICM profiles for color correction.
    Select the model number for your printer:
        $ ./getweb 2600n     # Get HP LaserJet 2600n .ICM files
        $ ./getweb 1600      # Get HP LaserJet 1600 .ICM files

    Install driver, foomatic XML files, and extra files:
        $ su		OR	$ sudo make install
        # make install

    (Optional) If you use CUPS, restart the spooler:
        # make cups		OR	$ sudo make cups



Edited 1 time(s). Last edit at 01/04/2008 03:24PM by rickrich.

Options: ReplyQuote
Re: Problem printing PDF Files
Posted by: baris ()
Date: January 04, 2008 03:49PM

I'd rather seeing "Follow the instructions" message from the application.

Seriously, I could not remember if I did run ./getweb stuff since I've installed driver on three seperate boxes. And strangely installation was working partially and I did not suspect it was related with install process.

Having a notice on this kind of things would be really helpful while debugging what problem you have. Lots of applications have "Your installation is missing" messages, so why not foo2hp?

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.