SVG Import from libreoffice problem output pdf

Bug #1653808 reported by Hermann Rochholz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
Medium
Unassigned

Bug Description

Maybe this is connected to bug ​#167551 or #167646.

Windows 7 64 bit.
Libreoffice Draw: Export SVG,
SVG import by inkscape (0.91 newest version)and then
saving a pdf with tex output provides problems only(!) when Libreoffice contains text.

Result is that the pdf-output always has 2 pages and in Latex nothing is displayed.
(or lateX crashes).

Deleting text in LO provides a nice figure in LaTeX.
Writing text within Inkscape works perfect, too.

It can be also a LO bug in the output - I don't know.
But only inkscape people can check it out, sorry.

reproduction:
- draw LO "Draw" figure with text
- Export SVG
- Read SVG by inkscape
- Write out pdf and tex
-> pdf is consisting of 2 pages.

"Cleaning" svg or saving into an optimized svg
does NOT work- I've tried every option. Output always 2 pdf-pages.

(Point is: I have many drawings in LO 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

jazzynico (jazzynico)
tags: added: exporting pdf
Revision history for this message
jazzynico (jazzynico) wrote :

Thanks for taking the time to write a report!

Bug confirmed on Windows XP (32-bit), Inkscape 0.92.
Test files attached (note the error messages in the pdf_tex file).

Exporting to PDF *without* tex works correctly.

Changed in inkscape:
importance: Undecided → Medium
status: New → Triaged
tags: added: latex
Revision history for this message
jazzynico (jazzynico) wrote :
Revision history for this message
jazzynico (jazzynico) wrote :
Revision history for this message
jazzynico (jazzynico) wrote :
Revision history for this message
jazzynico (jazzynico) wrote :
Revision history for this message
Hermann Rochholz (arminius) wrote :

Or the pdf is multiple times exported. And this as many times plus 1
as text fields are in the SVG exported by LO.

A snippet of the file "machine_top.svg_tex":
-----------
   \begin{picture}(1,0.74045606)%
    \put(0,0){\includegraphics[width=\unitlength,page=1]{machine_top.pdf}}%
    \put(-0.48466991,1.23614314){\makebox(0,0)[lb]{\smash{Wind- Richtung}}}%
    \put(0,0){\includegraphics[width=\unitlength,page=2]{machine_top.pdf}}%
    \put(-0.48466991,1.23614314){\makebox(0,0)[lb]{\smash{Seitlicher Anströmwinkel}}}%
...
    \put(0,0){\includegraphics[width=\unitlength,page=5]{machine_top.pdf}}%
  \end{picture}%
-------
Bug Reports are part of Quality Assurance.

Revision history for this message
Hermann Rochholz (arminius) wrote :

In V0.92 Bug is already existent.

Sorry, I don't know how to attach 3 files for comparison.

They contain a line and a short text.
Which is well exported.
  \begin{picture}(1,0.90808857)%
    \put(0,0){\includegraphics[width=\unitlength,page=1]{test_text.pdf}}%
    \put(-1.38227829,2.17946605){\makebox(0,0)[lb]{\smash{This is TEXT in LODraw }}}%
  \end{picture}%

test_tex.pdf is the screwed-up pdf which makes from one picture two pages (providing a crash in LaTeX.
test_tex2.pdf is the "standard-exported" pdf with text.

I don't find the "newpage" in the pdf although I made a "diff" im vim.

in test_text3 there is NO text and this works.

Revision history for this message
Hermann Rochholz (arminius) wrote :
Revision history for this message
Hermann Rochholz (arminius) wrote :

%% Creator: Inkscape inkscape 0.92.1, www.inkscape.org
%% PDF/EPS/PS + LaTeX output extension by Johan Engelen, 2010
%% Accompanies image file 'test_text.pdf' (pdf, eps, ps)

I fear this filter is programmed by Johan Engelen being off.

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.