Bug 56467 - Formula exported to svg result in formula loss
Summary: Formula exported to svg result in formula loss
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version: 3.6.2.2 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
QA Contact: Jorendc
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-27 17:22 UTC by Heinrichmeyer
Modified: 2013-06-27 20:49 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
correctly exported formula with pdf option (workaround) (20.93 KB, application/pdf)
2012-10-27 17:22 UTC, Heinrichmeyer
Details
SVG file with missing formula elements (12.81 KB, image/svg+xml)
2012-10-27 17:23 UTC, Heinrichmeyer
Details
sample file (13.46 KB, application/vnd.oasis.opendocument.graphics)
2013-06-27 20:47 UTC, Jorendc
Details

Description Heinrichmeyer 2012-10-27 17:22:04 UTC
Created attachment 69158 [details]
correctly exported formula with pdf option (workaround)

i try to insert a formula in a webpage for an epub document. My Idea:

Write formula with writer, copy it to draw, export to svg. It works, but some elements are missing in svg file.

[Workaround]: export to pdf, read with inkscape, store from inkscape, insert inkscape in html file.

Attached is the pdf-file from workaround method, i also will atach the svg file. The workaround has an additional rectangle as my first idea was to avoid the error by providing an additional surrounding box, but it made no difference.
Comment 1 Heinrichmeyer 2012-10-27 17:23:50 UTC
Created attachment 69159 [details]
SVG file with missing formula elements
Comment 2 bfoman 2013-03-04 13:48:55 UTC
(In reply to comment #0)
> Write formula with writer, copy it to draw, export to svg. It works, but
> some elements are missing in svg file.

Could you attach original LibreOffice document to allow others to check on different system/build?

BTW: you can create formulas directly in Draw.
Comment 3 Jorendc 2013-06-27 20:47:06 UTC
I can confirm this using Mac OSX 10.8.4 with LibreOffice Version: 4.1.0.1
Build ID: 1b3956717a60d6ac35b133d7b0a0f5eb55e9155

It is even worse, no formula is exported in SVG. No need to copy from writer or so.

What I did:
* Open Draw
* Insert > Object > Formula
* type a formula like: {bla over bla} = {rho over rho} = sqrt(test)
* File > Export > as SVG

Opening file using Safari, Firefox and Chrome result in an empty page.
I'll attach a sample document.

Kind regards,
Joren
Comment 4 Jorendc 2013-06-27 20:47:43 UTC
Created attachment 81585 [details]
sample file


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.