Apache OpenOffice (AOO) Bugzilla – Issue 10737
Cropping EPS files does not work
Last modified: 2013-08-07 14:41:36 UTC
In a writer document, I added an EPS file created by Adobe Illustrator 10. Everything looks ok, and can print ok. If I use the cropping tools to crop the image, the image shows croped on the page, and stuff is reformatted. When I print the file, the image is not cropped, and the whole image is printed.
Chuck, thank you for using and supporting OOo. Does this problem still exist in 1.1 Beta 2? If so, could you attach the necessary files for us to consistently reproduce the issue?
Created attachment 6977 [details] Sample eps cropping problem
I tested this, and it still happens. The image appears cropped in the document, but when you print to a PS printer, it prints the full image and not the cropped one. It seems that cropping bitmapped based images is working, because if I print to my PCL based printer (It seems that EPS files will only print on a PS printer, otherwise it prints the preview instead of the actual image) it prints the preview cropped correctly. I have attached a sample that displays this property. Thank you for such a great program, and looking into this bug.
HI->SSA: Also reproducible in current version.
SSA->THB: Please, have a look. Seems to be DrawEPS related.
Yeah, looks like somehow we don't get the clipping right. Will have a look.
Now, this is kinda funny. The bug is Windows-only, Linux and Solaris work just right in this case. The problem is, for the *nix platforms, we use our own PostScript backend, whereas for Windows, we must rely on GDI doing things properly. Which, obviously, it doesn't in this case. I'm currently checking whether there are any known workarounds for that problem (we _do_ set a proper clipping, only that GDI ignores it).
.
Fixed by manually adding the relevant PostScript code to the POSTSCRIPT_PASSTHROUGH, which is performed anyway. Note that the current fix will not work for complex clip regions (polygons etc.), but there's currently no codepath in the office that would make use of this feature (i.e. the current fix is sufficient for now).
Fixed, please verify.
Sorry, wrong owner. Reassinged to HI.
Fixed in cws: impress9ea1
Set to verified
Verified with integrated 680m41_8786 = ok