
On 2013-05-08 17:39 +0100, Johan Vromans wrote:
Hi,
I'm using Inkscape 0.48.4 on Fedora 17.
I have a drawing that I save in SVG format that I want to embed in an OpenOffice (LibreOffice) text document.
When imported in OpenOffice, I get a black rectangle covering part of the drawing. It does not matter whether I save in Inkscape SVG or plain SVG.
When I use display (from ImageMagick) to show the SVGs, I also get the black rectangle. In FireFox, both SVGs show fine.
When I save in OpenOffice Draw (ODG) format I loose all texts in the image.
Help is appreciated.
You can find the drawing and sample dislay in http://www.squirrel.nl/pub/xfer/uploads/3C1j41IOGG39BYF99PyBAiaw.zip
1) Flowed text There are two empty 'Flowed text' elements in your drawing (with no text content). The frame of such 'Flowed text' objects may be rendered as black rects (unset fill) in some SVG renderers (flowed text is not part of the current SVG 1.1 specification).
Since the flowed text objects contain no actual text, they do not render visibly in Inkscape, and thus cannot be easiyl spotted, selected and deleted.
This aspect of the issue with flowed text is tracked in - Bug #485269 “Invisible and unselectable flow region in image” https://bugs.launchpad.net/inkscape/+bug/485269
To avoid creating such invisible text frames, be careful when using the text tool to not create frames (for flowed text) inadvertently by click+dragging on the canvas (to create regular text, click once, and enter the text right away).
For general issues with flowed text, please read: - Inkscape FAQ: What about flowed text? http://wiki.inkscape.org/wiki/index.php/FAQ#What_about_flowed_text.3F and the section in the manual about flowed text: - http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Text-Creating.html#Text-Enter-Flow
Attached is an 'Inkscape SVG' version of 'opstelling.svg' which has those invisible flowed-text objects deleted. It should import in LibreOffice without unexpected black rectangles, and render correctly in ImageMagick's 'display' (uses librsvg).
2) Missing text in exported ODG The problem with missing text when saving as ODG in Inkscape and opening the exported file in LibreOffice is tracked for Inkscape here (fixed for next major release 0.49):
- Bug #168268 “Exporting to OpenOffice format (odg) fails with text” https://bugs.launchpad.net/inkscape/+bug/168268
hth, ~suv