save-as eps loosing one edge of some rectangle objects

Bug #794919 reported by KalleMP
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

After rotation some (from different rectangles) lines are missing in the EPS save-as but not in the pdf.

I have a map that I build from data and manual edit and it looks good.
I need to rotate it to place it sideways in a published book
The only reliable option was inserting a .EPS image into Word
The legacy vectors spill outside the page boundaries so I have to have the page defined accurately.

It saves-as to PDF and EPS fine before I rotate it.

If I build a new simple file with a simple rectangle it does not show the symptoms, the scale entity is a group

Everything is in layers in the original but gets flattened to one when I have to group it for rotation

I stripped out everything except the affected elements and before rotation eps is ok, after the same lines are missing.

inkscape 0.48.1.0
Windows 2000
Cairo dunno
eps viewer Word 2003

Perhaps related to the following in some way with inline XML data being corrupt and affecting the eps output.

HOWEVER I have not seen any other bugs that report only ONE part of a rectangle object missing.

#471869 text-on-path moves when ungrouped == transfor is doubled inside text-on-path elements
#534679 Cairo-based export not exporting all elements == 0pix text size element added
#645256 Incomplete picture when saving in eps == perhaps replated

3 more files to follow

Tags: exporting eps
Revision history for this message
KalleMP (kallemp) wrote :
Revision history for this message
KalleMP (kallemp) wrote :

Next file

Revision history for this message
KalleMP (kallemp) wrote :

Next file

Revision history for this message
KalleMP (kallemp) wrote :

Last file

Revision history for this message
KalleMP (kallemp) wrote :

Something that may or may not be relevant.

I have to UNgroup the elements after rotation so that I can select the frame (other vectors fall outside that I don't want in the eps) so that I can reset the page boundaries to the selected frame element)

UN grouping causes the text-on-path bug to show up but that has a workaround.

I cannot test if this causes the problem as both of the rectangles would be out side the landscape page layout

su_v (suv-lp)
tags: added: exporting
removed: save-as
Revision history for this message
su_v (suv-lp) wrote :

> Everything is in layers in the original but gets flattened
> to one when I have to group it for rotation

Note that you can rotate the content without flattening the layers:
1) unlock all layers
2) 'Edit > Select all in all Layers'
3) 'Object > Transforms… > Rotate' (do not apply the rotation to each object separately)

> I have to UNgroup the elements after rotation

You can select objects within a group without ungrouping it:
<http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Groups.html>

> before rotation eps is ok, after the same lines are missing.

Can you provide a screenshot showing which lines are missing in MS Words? Does this only affect edges of the surrounding border? (Viewing the eps files in various Postscript viewers on Mac OS X doesn't reveal obvious differences, nor does importing the two EPS files into a LibreOffice 3.3.2 document - see attached screenshot).

If your issue only affects some edges at the border of the EPS file:
Based on the slightly different bbox dimensions (in pt) of the attached EPS files:

test2.eps:
%%Creator: cairo 1.8.8 (http://cairographics.org)
%%BoundingBox: 0 0 439 277

test3.eps:
%%Creator: cairo 1.8.8 (http://cairographics.org)
%%BoundingBox: 0 0 276 440

it could the same issue as or related to
Bug #545221 “--export-eps ignores stroke thickness and clips rightmost and bottom objects for --export-area-drawing”

Revision history for this message
KalleMP (kallemp) wrote :

Hi,

Nope, Ny missing lines are on the internal elements.

The good EPS sample in Word has a thinner Right frame edge because the frame and bounding box were manually alligned (I think). The broken EPS has a a good frame because I set it in File->Document properties->Resize to selection and hence the size will martch the frame better than the first pic.

I read instructions on rotating multiple elements and grouping was put forward, I prefer your method, just tested it and it leaves the items in the existing layers, thanks a lot for that. ALSO the text-on-path transform after ungrouping bug is not triggered so thanks double for that, this tip should also be added to #471869 bug report as this is where people will see it.

I was not aware that one could select an item individually in a group and this is also a sollution to my text-on-path problem should they have to be in a group for osome other reason. This should also be moved to the other bug report.

I just cut the enlarged details (500% in Word) to show that the incomplete rectangles sides have the rounded terminals and are not cropped at a raster level in Word but may still be a word rendering issue. Though how Word knows it must remove only one edge is a puzzle to me.

I tried the eps export after rotating without grouping and ungrouping the objects and the same lines still failed.

Word displays a very poor copy on screen and this is broken, the good quality it prints out is ALSO broken. I'm not sure if the EPS has a Raster thumbnail or is Word also does that.

I have an old copy of Corel Draw 8.232 that I cannot use for this project but I loaded the -BROKEN- EPS file in Corel (looked good) and exported it again in Corel and placed in Word the boxes display and print correctly so the interaction is with the way InkSkape saves it and Word renders it.

Revision history for this message
KalleMP (kallemp) wrote :

Here is the broken EPS file loaded in Corel and saved without any edits back as EPS

Revision history for this message
su_v (suv-lp) wrote :

> Nope, Ny missing lines are on the internal elements.

AFAICT this seems a problem of MS Word, not of Inkscape's cairo-based export to EPS.

Revision history for this message
KalleMP (kallemp) wrote :

It seems obvious now that Word is responsible for not rendering correctly but equally obvious is that Inkscape is not exporting the same after I rotate the objects where as before it exported fine.

Libre Office renders correctly, also after resaving with Corel Draw Word renders correctly so the badly exported data is not lost, just incorrectly rendered by Word.

I would still prefer to use InkScape (with Word this time) and this is a problem. Using Corel to re-export files is silly long term and not appropriate for this project where the point was to demonstrate the power of editing the graphics and compatibility with free software. The text has still been done on Word as this is pretty ubiquitous but in future I may be able to make changes to that mind set as well.

Also it looks like Corel increased the file size by 400% or 80kb so InkScape is more compact.

I just remembered that the problem first showed up with Word 2007 at the client site and also on unknown version at the print shop where the pages were proofed so not isolated to Word 2003 that I'm using.

If someone who can parse the EPS files easily could see how they are changed it could shed light on a weakness in the Cairo routines on exporting rectangles that have been rotated.

Apologies for the many typos, it is very cold here this week.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.