To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=116283
                 Issue #|116283
                 Summary|"fit to printable page" prints with wrong origin
               Component|Drawing
                 Version|DEV300m96
                Platform|PC
                     URL|
              OS/Version|Windows XP
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|printing
             Assigned to|graphicsneedsconfirm
             Reported by|regina





------- Additional comments from reg...@openoffice.org Sun Jan  2 23:27:40 
+0000 2011 -------
The attached documents contain a outer rectangle in page size and a smaller
inner rectangle.
Print the attached documents with the setting "fit to printable page".
On my HP Color LaserJet 2605 the outer rectangle is not full visible because
parts of it are in the unprintable margin of my printer.

The scaling itself is correct. You can control this with the inner rectangle.
But the whole printing has a wrong offset.

I have tested this:
In sd/source/ui/view/DocumentRenderer.cxx after line 2273
I have added

if (bScalePage)
{
     long aPatchedPageOffsetX = aPageOffset.X()/(double)aMap.GetScaleX();
     long aPatchedPageOffsetY = aPageOffset.Y()/(double)aMap.GetScaleY();
     aMap.SetOrigin(Point(aPatchedPageOffsetX,aPatchedPageOffsetY));
}

With this settings 'fit to printable page' works for Draw documents. I have
expected, that a simple shift would be enough, but the non printable margin is
scaled somewhere when printed. In addition there are a lot of places with "#if
0" disabled origin settings. So I doubt, that this is the correct place at all.

I'm not familiar with printing and have no idea whether my changes would break
something. Nevertheless, I hope my findings are useful for you.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@graphics.openoffice.org
For additional commands, e-mail: issues-h...@graphics.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to