Apache OpenOffice (AOO) Bugzilla – Issue 65720
Showstopper: Printing problem under linux, margin cutted
Last modified: 2006-08-02 09:53:54 UTC
Printing a screen-sized document under linux with "trim"-option leads to a smaller printed area compared to 8pp2. This is a follow up of i 57181.
Created attachment 36680 [details] EPSfile
Created attachment 36681 [details] EPSfile
Accepted.
Looks like two problems in one. 1. The fix mentioned above (issue 57181) causes the paper size being set to US letter format for some languages. The letter format is more narrow than a4, hence the smaller printable area. 2. The algorithm used for pages that do not fit the printable area uses the map mode of the printer device without changing it. Its offset is different from that under Windows. When I set the page size to a4 (by changing the LANG environment variable, the locale under Tools->Options->Language Settings, and the page size of the printer) and when I change the origin of the mape mode to (0,0) then the slide is printed correctly.
The problem was already visible in version m162.
What I found out so far: The fix for issue 57181 does not cause this bug. I reverted the affected files (those in sd) to their previous versions. No change to the printed pages. It looks like the default offset of the clip rectangle has changed and is causing the trouble. A fix that works under Windows and Solaris but not under Linux is: In ViewShell::PrintStdOrNotes() (viewshe3.cxx) where the trimmed page is printed, change the map mode origin to (0,0) (instead of the default -635,-635). A better fix (well, workaround) could adapt the map mode origin dynamically to the clip region origin (or set the clip region origin directly).
Please take over.
cc'ed myself
This should happen under all platforms
I broke that with the fix for issue 59315 - am now clipping the device clips conditionally (i.e. only for window and vdev). Fixed in CWS impress97.
@wg: Fixed in CWS impress97, please verfiy. re-open issue and reassign to wg@openoffice.org
reassign to wg@openoffice.org
reset resolution to FIXED
Verified in CWS.
Tested in m179. Closed.