Bug 108002 - SVG Export to Inkscape Problems
Summary: SVG Export to Inkscape Problems
Status: CLOSED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
5.2.6.2 release
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: SVG-Save
  Show dependency treegraph
 
Reported: 2017-05-22 16:28 UTC by Hermann Rochholz
Modified: 2019-10-30 17:41 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
2-page output from inkscape when drawing a line in LO Draw and writing text (1.80 KB, application/pdf)
2017-05-22 21:31 UTC, Hermann Rochholz
Details
zip-file with all relevant LO, svg and pdf/tex-documents (78.77 KB, application/x-zip-compressed)
2017-06-03 16:04 UTC, Hermann Rochholz
Details
pdf screenshot out of LaTeX - detailed description within picture (65.81 KB, image/jpeg)
2018-04-02 11:58 UTC, Hermann Rochholz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hermann Rochholz 2017-05-22 16:28:17 UTC
I do not know if it's a Draw or an inkscape problem.

Windows 7 64 bit.



Deleting text in LO Draw provides a single-sided pdf when exported from inkscape. And a nice figure in LaTeX.
Writing text within Inkscape works perfect, too.

It can be also an inkscape bug in the filter - I don't know.

Easy Reproduction:
- Draw in LO"Draw" a figure (a single line is enough) and a text box. 
- Export SVG
- Read SVG by inkscape (newest version 0.92) 
- Write out pdf and tex (save to pdf: there's always a 
                   dialog where is the choice)
-> pdf is consisting of 2 pages. 1st page is empty.
(Try to put into LaTeX nothing is displayed (or LaTeX crashes).)
-> If svg does not contain text there is no problem. 

It seems that there is a "grouping" problem in LO Draw - 
but I cannot confirm this.  
Also in "Dia" the Draw-SVGs are screwed up. 

(Point is: I have many sketches in LO Draw 
and I want to put them in a large
LaTeX document. Now I have to delete 
the whole text and write it again)

Kind regards
Hermann
Comment 1 Regina Henschel 2017-05-22 21:13:22 UTC
I cannot confirm it. The export from 1 page in Draw gives a svg file with exactly this content. If opens fine in Inkscape and in browser "Seamonkey".

LibreOffice exports the drawing to pdf correctly.

I see no option in LibreOffice to export a drawing to LaTeX.

I use LibreOffice Version: 5.4.0.0.alpha1+
Build ID: 965494c544dd8f35ae83b7cf38549009da06c367
CPU threads: 4; OS: Windows 6.1; UI render: default; 
TinderBox: Win-x86@62-TDF, Branch:MASTER, Time: 2017-05-10_23:06:27
Locale: de-DE (de_DE); Calc: group

And I have used Inkscape 0.48 and 0.91.
Comment 2 Hermann Rochholz 2017-05-22 21:31:34 UTC
Created attachment 133463 [details]
2-page output from inkscape when drawing a line in LO Draw and writing text
Comment 3 Buovjaga 2017-06-03 10:57:05 UTC
(In reply to Hermann Rochholz from comment #0)
> - Draw in LO"Draw" a figure (a single line is enough) and a text box. 

As there seems to be trouble reproducing, please attach such an example file.

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the document.
Comment 4 Hermann Rochholz 2017-06-03 16:04:44 UTC
Created attachment 133827 [details]
zip-file with all relevant LO, svg and pdf/tex-documents


I provide the original LO-Draw-document.
It is exported with and without text as an svg.
(to reproduce simply delete the text)

Load into inkscape and write out as pdf.
A menue appears-also delivered as a screenshot in zip. 
Translated it means: 
"Leave away text and write into a separate TeX-file".

Both versions produce two files: 
a pdf and a tex needed (both attached) 
to include the picture into (La)TeX. 

The point is: The version with text ALWAYS 
produces pdf-files with two or more pages. 
This causes Latex to crash or a hangup. 

If one adds text within inkscape - no problem- one page.
Only when text comes from LO-2 pages. 

----------
Again: 
I do not know if it's a LO or a inkscape-problem. 
Both use svg, but they seem not to be fully compatible.  
---
Thank you for your attention.
Comment 5 Buovjaga 2017-06-04 10:16:02 UTC
Ok, I confirm.

Arch Linux 64-bit, KDE Plasma 5
Version: 5.5.0.0.alpha0+
Build ID: c855400e9686ddd8bcba5691393f839f6f52c966
CPU threads: 8; OS: Linux 4.11; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on June 2nd 2017

Inkscape 0.92.1
Comment 6 Hermann Rochholz 2017-08-08 16:44:36 UTC Comment hidden (no-value)
Comment 7 Hermann Rochholz 2018-03-29 15:42:14 UTC
Hallo!

Is there any progress or root cause evaluation?
Some days ago I tested it with actual version and
the same thing happened.

Or is there something I can do?
Hermann


(In reply to Buovjaga from comment #5)
> Ok, I confirm.
>...
> Inkscape 0.92.1
Comment 8 Buovjaga 2018-03-29 16:35:39 UTC
(In reply to Hermann Rochholz from comment #7)
> Or is there something I can do?
> Hermann

If you do not want to learn C++, you have to just wait patiently. Or hire some developer to work on it.
Comment 9 Christina Rossmanith 2018-03-31 16:09:15 UTC
Could reproduce the bug with inkscape 0.91 but not with 0.92.3
Comment 10 Buovjaga 2018-04-01 14:20:41 UTC
(In reply to Christina Rossmanith from comment #9)
> Could reproduce the bug with inkscape 0.91 but not with 0.92.3

Hermann: can you test again with the very latest Inkscape?
Comment 11 Hermann Rochholz 2018-04-01 17:29:37 UTC
Could reproduce the bug with inkscape 0.92.2 but not with 0.92.3
(quick shot). 
Bug seems to be removed. I have to test carefully again and confirm.


(In reply to Christina Rossmanith from comment #9)
> Could reproduce the bug with inkscape 0.91 but not with 0.92.3
Comment 12 Hermann Rochholz 2018-04-02 11:56:53 UTC
It's better - the error has changed:
Text is icluded, but not at the
correct place.
Anyway there is no more crash.

I attach a picture which is out of LO, but 
one text is included in Inkscape.

Hermann
Comment 13 Hermann Rochholz 2018-04-02 11:58:37 UTC
Created attachment 141023 [details]
pdf screenshot out of LaTeX - detailed description within picture
Comment 14 Hermann Rochholz 2018-04-02 13:47:37 UTC
After hours of testing I solved the problem in an easier way:

Exporting svg out of LODraw, 
Importing into Inkscape, 
exporting into eps
and then using the package epstopdf in LaTeX.
Text and everything is at the right place. 

Direct export of LODraw pics into eps is not very nice,
because Bounding Box always provides the full page. 

Hermann
Comment 15 Buovjaga 2018-04-02 14:01:05 UTC
Ok, as you are happy now and the "guilty party" was a bit unclear to start with, let's close.
Comment 16 Hermann Rochholz 2018-04-02 15:09:20 UTC
Yes, I propose to close, too.

My first sentence was: 
"I do not know if it's a Draw or an inkscape problem."

Any specification is not satisfied fully - I do not know which one.
Since svg(LO) -> SVG (ISc) -> eps (ISc) works now it seems 
to be the Inkscape export filter to pdf.

There is no guilt. 
There is only quality assurance.

Hermann
Comment 17 Hermann Rochholz 2019-10-30 17:41:42 UTC
I have found now a reason- it seems to be inkscape:

Some documents exported by LO DRAW (very latest version), 
imported in Inkscape and exportet in tex/pdf provide a pdf-output of multiple (!) pages. 
If there is a standard pdf output it's only one.

There seems to be the reason that it is in several layers. 
And there are sometimes more than 2 pages. 

I do NOT know in which way SVG export is handled in LO Draw.
Does it export in 1 layer or multiple layers? 

OK-Objects have to be on top of each other. 
But this can be in 1 layer or multiple layers I think. 

I don't know how SVG is specified. 

Kind regards
Hermann