Scaled group doesn't print right

This is NOT a support forum. You are welcome to discuss software issues here, but all issues should be reported on Launchpad if you want them fixed.
User avatar
Kjohrf
Posts: 170
Joined: Tue Oct 27, 2009 11:42 am
Location: US
Contact:

Scaled group doesn't print right

Postby Kjohrf » Wed Aug 25, 2010 2:22 am

I'm sure this is similar to other bugs, but a little searching on launchpad didn't find anything.

First, my document's only layer does NOT have a transform element.

I make a few paths, combine some of them (but not all) and put them all in a group.

I duplicate the group, move it down the page to the bottom, and shrink it's size a bit.
The group now has a transform element - something like (0,676).

Now I print, directly from Inkscape. The duplicated group appears in the wrong
place on the page. Some other text on the page that is not in a group and does
not have a transform element also prints in the wrong place on the page.

Of course, when I try to duplicate this in a simple test file, it prints fine.

User avatar
Kjohrf
Posts: 170
Joined: Tue Oct 27, 2009 11:42 am
Location: US
Contact:

Re: Scaled group doesn't print right

Postby Kjohrf » Wed Aug 25, 2010 2:42 am

PS Sometimes when I do things like this, when I print 5 or more pages come out of the printer. Some are blank and some have symbol characters on them at the top of the page.

User avatar
Kjohrf
Posts: 170
Joined: Tue Oct 27, 2009 11:42 am
Location: US
Contact:

Re: Scaled group doesn't print right

Postby Kjohrf » Wed Aug 25, 2010 2:45 am

PPS If I save to PDF it looks fine there, and prints fine.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Scaled group doesn't print right

Postby ~suv » Wed Aug 25, 2010 4:39 am

Kjohrf wrote:(…) First, my document's only layer does NOT have a transform element.

I make a few paths, combine some of them (but not all) and put them all in a group.

I duplicate the group, move it down the page to the bottom, and shrink it's size a bit.
The group now has a transform element - something like (0,676).

Now I print, directly from Inkscape. The duplicated group appears in the wrong
place on the page. Some other text on the page that is not in a group and does
not have a transform element also prints in the wrong place on the page.

Of course, when I try to duplicate this in a simple test file, it prints fine.

Does the file in question have a 'viewBox' attribute for the top-level <svg> element?
Last edited by ~suv on Wed Aug 25, 2010 4:42 am, edited 1 time in total.

User avatar
Kjohrf
Posts: 170
Joined: Tue Oct 27, 2009 11:42 am
Location: US
Contact:

Re: Scaled group doesn't print right

Postby Kjohrf » Wed Aug 25, 2010 4:41 am

~suv wrote:Does the file in question have a 'viewBox' attribute for the top-level <svg> element?


No. Only height, width, version, id, inkscape:version and sodipodi:docname.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Scaled group doesn't print right

Postby ~suv » Wed Aug 25, 2010 4:46 am

Kjohrf wrote:I duplicate the group, move it down the page to the bottom, and shrink it's size a bit.
The group now has a transform element - something like (0,676).

'(0,676)' is not scaling the group - it is moving (translating) it down by 676 px.

Scaling would create a transform attribute like

Code: Select all

matrix(0.76470588,0,0,0.72727273,21.176471,103.63636)
Are you sure you scaled ("shrink it's size a bit") and not just moved the group in the file you tried to print? Or can you attach the file?

User avatar
Kjohrf
Posts: 170
Joined: Tue Oct 27, 2009 11:42 am
Location: US
Contact:

Re: Scaled group doesn't print right

Postby Kjohrf » Wed Aug 25, 2010 5:49 am

Attached is a version that prints wrong. It doesn't print 5 pages, but the path and text print too high.
Hope this helps... Thanks for looking!
Attachments
scaledGroup.svg
(7.55 KiB) Downloaded 233 times

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Scaled group doesn't print right

Postby ~suv » Wed Aug 25, 2010 6:26 am

Tested in all (limited) print variants I have available (Inkscape 0.48 on OS X 10.5.8):
  • B&W Laser printer (brother HL-2035)
    • vector backend
    • bitmap backend
  • Print to file > PDF
  • Print to file > PostScript
With each of the 4 options listed above: The objects and groups are scaled and positioned to each other exactly as rendered by Inkscape on-canvas.
The only and minor (known) issue I encountered is when printing with the bitmap backend (complete page is offset by about -5mm,5mm relative to the lower left corner).

Nothing in the file is unusual AFAICT - this seems to be an issue specific to either the GTK+ port for Windows (provides the print dialog basics) or the exchange between Inkscape's print output (PostScript) and your specific printer driver. Maybe someone with a similar configuration (platform, printer) can test your file?

User avatar
Kjohrf
Posts: 170
Joined: Tue Oct 27, 2009 11:42 am
Location: US
Contact:

Re: Scaled group doesn't print right

Postby Kjohrf » Wed Aug 25, 2010 6:44 am

Thanks - only have one Windows XP system I run Inkscape on.

Interesting... My problems were on a hp LaserJet 1200 (B/W).

I just tried it on my color hp deskjet 940c and it printed fine.

Guess it's a driver issue then?

Thanks again!

User avatar
Kjohrf
Posts: 170
Joined: Tue Oct 27, 2009 11:42 am
Location: US
Contact:

Re: Scaled group doesn't print right

Postby Kjohrf » Wed Aug 25, 2010 8:14 am

Woo-ah. I downloaded the hp PCL 6 driver (that's from 2002)
and I think that fixed the problem!


Return to “Discuss Software Issues”