Bug 48194 - Writer on linux doesn't export correctly some gif files to PDF and HTML
Summary: Writer on linux doesn't export correctly some gif files to PDF and HTML
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version: 3.5.1 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-02 07:12 UTC by cristi falcas
Modified: 2013-12-04 21:06 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
test document (40.10 KB, application/x-zip-compressed)
2012-04-02 07:12 UTC, cristi falcas
Details
test document (56.45 KB, application/vnd.oasis.opendocument.text)
2012-08-30 13:48 UTC, cristi falcas
Details
generatedd html (17.08 KB, application/x-zip)
2012-08-31 08:58 UTC, cristi falcas
Details

Description cristi falcas 2012-04-02 07:12:54 UTC
Created attachment 59379 [details]
test document

1. Open the attached document (Untitled 1.odt) on Linux.
2. Save as html or export to pdf.
3. The gif image is saved as only a transparent background. Pdf file is empty.

This happens only on linux: tested on Ubuntu and Fedora. 

Also I tested with Fedora libreoffice 3.5.1, 3.4.5 (32bit) and Ubuntu 3.4.5 (64bit).
Comment 1 sasha.libreoffice 2012-06-29 02:35:20 UTC
Thanks for bugreport
reproduced on Fedora 64 bit (Windows not tested)
in 3.3.4 and 3.5.4: export to PDF and saving as html works wrong
in 3.6.beta1: export to PDF has wrong image size, it is cropped, but html works correctly.
In all cases used File->Save as for producing HTML
Comment 2 cristi falcas 2012-08-30 13:48:15 UTC
Created attachment 66338 [details]
test document

new doc with new problems in version 3.6.1
Comment 3 cristi falcas 2012-08-30 13:48:31 UTC
tested with 3.6.1.2 on fedora and I got the same result.

But now there are new problems also:
- text is centered in html (not in the original document)
- text color is orange (black in original document)

I have attached a new document with some text.

The documents (both Untitled 1.odt and Untitled 2.odt) where generated by LibreOfiice from a doc made in word.
Comment 4 sasha.libreoffice 2012-08-31 05:54:02 UTC
reproduced with second attachment using File->Save as and selecting html
in 3.3.4, 3.5.5, 3.6.1 on Fedora 64 bit

when use File->Export and select html, then text looking correctly, but Firefox and Konqueror can not open picture
Comment 5 cristi falcas 2012-08-31 08:58:14 UTC
Created attachment 66391 [details]
generatedd html

attached output generated by the command:

/opt/libreoffice3.6/program/soffice --convert-to "html:HTML (StarWriter)"  --outdir ./ Untitled\ 2.odt
Comment 6 cristi falcas 2012-08-31 09:01:00 UTC
I was mistaken, the generated image is now visible, but I forgot about another, older bug: in the html file all images paths are prepanded with "../", which will make them inaccessible.

But the problem with the font color/alignment is a new one: html have this css definition:

P { margin-bottom: 0in; direction: ltr; color: #ff9900; line-height: 119%; text-align: center; widows: 2; orphans: 2 }

color=ff9900, text-align=center

I will open another bug for this

I think this one can be closed


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.