Issue 10613 - document printed wrong from writer, both to .ps file and printer
Summary: document printed wrong from writer, both to .ps file and printer
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.0.1
Hardware: PC Other OS
: P2 Trivial (vote)
Target Milestone: ---
Assignee: stefan.baltzer
QA Contact: issues@sw
URL:
Keywords:
: 4136 9180 11429 11444 13010 14322 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-01-12 13:23 UTC by mandreiana
Modified: 2013-08-07 14:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
.tgz archive with document, linked image and print screenshot (101.53 KB, application/octet-stream)
2003-01-12 13:26 UTC, mandreiana
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description mandreiana 2003-01-12 13:23:36 UTC
I was working on a 17-page document and printing it to a .ps file from time to
time. Suddenly some pages looked wrong. I've cut it to one page which doesn't
work. If the contained image is eliminated, then it does work.

I'll attach a .tgz archive which contains the document, the image and a
screenshot of what 'wrong printing' means ( portions of text are messed up ).
I've replicated this on two systems with Red Hat Linux 8.0.

I tested printing to a real printer too, looks the same like in the screenshot.
Comment 1 mandreiana 2003-01-12 13:26:11 UTC
Created attachment 4278 [details]
.tgz archive with document, linked image and print screenshot
Comment 2 h.ilter 2003-01-20 14:22:46 UTC
HI: The print on paper is like as the attached snapshot.
Comment 3 philipp.lohmann 2003-01-21 17:41:30 UTC
looks bad
Comment 4 philipp.lohmann 2003-01-31 12:34:53 UTC
*** Issue 4136 has been marked as a duplicate of this issue. ***
Comment 5 philipp.lohmann 2003-01-31 16:23:03 UTC
pl->thb: as discussed, the problem results from the two graphics that
are printed as transparent BitmapEx which Printer::GetPreparedMetafile
outputs as one large bitmap which is afterwards overlain by the real text.
Comment 6 thb 2003-01-31 16:38:43 UTC
Hm. The two bitmaps do have alpha channel, but it's all opaque. So, an easy workaround 
for the user would be to remove the alpha channel. Nevertheless, this is a bug and 
should not happen, will investigate ASAP.
Comment 7 philipp.lohmann 2003-02-03 10:53:46 UTC
I think the algorithm should be changed: currently it first gets all
transparent objects and works on the whole bound rect, then adding all
objects that intersect this bound rect. It should instead work on the
single transparent objects only adding the obects in the metafile that
intersects them thereby creating multiple transparency regions.
Comment 8 thb 2003-02-03 12:00:48 UTC
Well, the problem is that actually only a single bitmap is generated for transparent 
content (okay, it's banded for printing, but essentially it's only one bitmap). 
Thus, if for the worst case two tiny transparent icons reside top-left and bottom-right 
on a page, the whole page is rendered as a bitmap. Shudder. Have to determine all 
distinct transitive closures of intersecting objects, where at least one of them is 
transparent.
Comment 9 thb 2003-02-14 17:43:11 UTC
Fixed so far, although not yet the optimal solution. Sadly, had to increase worst-cast 
time complexity from O(n^2) to O(n^3). But I'm positive that it's possible to reduce 
that to O(n^2) when exploiting the 2D topology.
Comment 10 philipp.lohmann 2003-02-14 17:44:00 UTC
*** Issue 9180 has been marked as a duplicate of this issue. ***
Comment 11 thb 2003-02-19 11:20:39 UTC
Verifying in apps01...
Comment 12 thb 2003-02-19 11:26:32 UTC
Verified on apps01. This is a general printing bug, should maybe tested in the other 
applications, too.
Comment 13 thb 2003-02-19 11:26:56 UTC
Fixed
Comment 14 h.ilter 2003-02-19 15:31:05 UTC
Verified with 644m3s1_8536 (cws:apps01).
Comment 15 michael.bemmer 2003-03-13 11:14:58 UTC
As mentioned on the qa dev list on March 5th I will close all resolved
<wontfix/duplicate/worksforme/invalid> issues. Please see this posting for details. 
Comment 16 lohmaier 2003-04-03 22:32:54 UTC
*** Issue 11444 has been marked as a duplicate of this issue. ***
Comment 17 lohmaier 2003-04-03 22:38:03 UTC
*** Issue 13010 has been marked as a duplicate of this issue. ***
Comment 18 lohmaier 2003-04-18 21:07:53 UTC
*** Issue 11429 has been marked as a duplicate of this issue. ***
Comment 19 lohmaier 2003-05-10 11:08:27 UTC
*** Issue 14322 has been marked as a duplicate of this issue. ***