Apache OpenOffice (AOO) Bugzilla – Issue 66970
Printing/PDF export does not support raster op XOR
Last modified: 2013-07-30 02:22:06 UTC
Metafile images containing a closed shape with color/gradient inside, will printed/exported without cliping the color/gradient. See attached documents: 1. Drawing of image. 2. Metafile image to place in text, created from (1). 3. Text file with placed image. 4. PDF export from (3), print out looks same.
Created attachment 37465 [details] Drawing of image
Created attachment 37466 [details] Exported metafile from dawing
Created attachment 37467 [details] Text with placed image
Created attachment 37468 [details] Exported PDF from text file
I checked with "2.0.2 German version WIN XP: [680m5(Build9011)]" and can confirm the problem also with testfiles attached by nicosch and also with my own testfiles. I also see the problem with bitmap filling. But: Print is ok with HO Officejet 6110
I also see the problem completely in 1.1.4 and with .emf created from 1.1.4 DRAW. It's not only a WRITER probem, I also see the problem when I export a document to PDF containing those bitmap or gradient .emf images from CALC and DRAW. So I change Component. Currently I was only able to test with .emf files created with OOo. It would be interesting to know whether the mistake also happens with gradient .emf images from other draw applications; unfortunately I can not find an applicable image.
Same Problem with .wmf images created from 2.0.2 DRAW (other versions not tested)
@nicosch: pls. contribute information concerning your printer / printer driver!
pl->thb: please have a look
This is because the emf contains XOR operations, which are impossible on a printer/PDF device. Therefore, adapted title & issue type (it has always been like this - workarounding it is possible, though imposes some effort, as all regions covered by an XOR operation would have to be pre-rasterized into a bitmap).
In fact, this happens on all platforms (being a general shortcoming).
Print out from Writer to Adobe PDF Writer, and Ghostscript/PdfCreator shows wrong cliping. OO PDF Export from Drawing is correct!
I confirm, it's not only a problem with native OOo PDF export. I tried with FREE_PDF (no idea what of my various GS in uses, I believe 8.13), and I saw the same bad rectangle result for form in text.odt as with OOo PDF export. No idea whether that's included in Summary "... raster op XOR" or whether we have to open a new issue for this @nicosch: You really get a correct OOo PDF export result if you insert 'form.emf' to a new DRAW document? It's hard for me to believe that.
@rainerbielefeld I get a wrong result if I include the EMF in Draw and export it. But you get a right result if you perform direct PDF export from the original drawing (first attached file).
@nicosch: you get a correct result with the original file, either way (both printing and pdf export), because OOo 'knows' that it's now printing/exporting, and avoids the problematic XOR actions. But since XOR _is_ a legal action in emf/wmf/svm, both OOo-generated and external metafiles will contain and trigger this bug.
Reset assignee on issues not touched by assignee in more than 2000 days.