Bug 48194

Summary: Writer on linux doesn't export correctly some gif files to PDF and HTML
Product: LibreOffice Reporter: cristi falcas <cristi.falcas>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: cristi.falcas, sasha.libreoffice
Version: 3.5.1 release   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: test document
test document
generatedd html

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.