Weird Printing Issue - Ubuntu

This is a discussion on Weird Printing Issue - Ubuntu ; I'm having a problem with printing in some software that I'm developing that's a little weird and so far I haven't been able to find a solution. For reference, my software uses Qt 4.4.3 as the API. I'm not sure ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Weird Printing Issue

  1. Weird Printing Issue

    I'm having a problem with printing in some software that I'm developing
    that's a little weird and so far I haven't been able to find a solution.

    For reference, my software uses Qt 4.4.3 as the API. I'm not sure if this
    is an OS level problem or a QT API specific problem however I can
    influence the problem by changing printer driver settings on the OS level.

    Problem is as follows:

    When printing to a regular printer, tested on two completely different
    model printers (One is a color inkjet, other is a laser, both are HP
    models) margins are incorrect. With portrait orientation the page will be
    reported too long and with landscape orientation things totally go down
    the drain. The origin is shifted so far to the left that it is off the
    paper by about an inch.

    Looking at the margin and paper size values reported by QT in the
    debugger however, everything is reported correctly.

    However, I usually print to PDF when testing and when printing to PDF,
    everything is 100% correct. This is why I'm not sure if the problem is
    on the QT level or OS level because with two drivers the problem exists
    but it doesn't exist with the PDF driver. The only thing the two real
    printers have in common is that they are both windows shared printers.
    Unfortunately I don't have a way of hooking up a printer directly to my
    machine right now to see if the problem is with the windows sharing.

    When running the app from Windows, there aren't any problems at all.

    For the fun of it I just did a test. I printed my documents to a PDF
    where they appear correctly and then printed that PDF to the printer.
    Same problem with the margin occurs. So I think that puts the problem
    somewhere at the OS level or printer driver level.

    Any thoughts?

    Thanks,

    --
    Stephan
    1986 Pontiac Fiero GT

    君の事思い出す日なんてないのは
    君の事忘れたときがないから

  2. Re: Weird Printing Issue

    Oh and I just thought I'd add, yes paper size is set to letter. =)

    --
    Stephan
    1986 Pontiac Fiero GT

    君の事思い出す日なんてないのは
    君の事忘れたときがないから

  3. Re: Weird Printing Issue

    Update:

    Found a solution to the problem. Went into the driver and switched it to
    Postscript, problem goes completely away.

    Seems to be that the Foomatic/hpijs, hpijs 2.8.2 driver has a problem
    somewhere.

    --
    Stephan
    1986 Pontiac Fiero GT

    君の事思い出す日なんてないのは
    君の事忘れたときがないから

+ Reply to Thread