Bug 76500 - FILEOPEN PDFIMPORT loses font properties for files created by TeXlive
Summary: FILEOPEN PDFIMPORT loses font properties for files created by TeXlive
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
4.1.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-23 09:38 UTC by Alexandr
Modified: 2014-04-23 19:33 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
An example pdf file (11.83 KB, application/pdf)
2014-03-23 09:38 UTC, Alexandr
Details
Screenshot of the file imported by LO4.3 daily(2014-03-22) (34.93 KB, image/png)
2014-03-23 09:41 UTC, Alexandr
Details
TeX source of the example (202 bytes, text/x-tex)
2014-03-23 09:42 UTC, Alexandr
Details
log of the pdf creation (13.22 KB, text/x-log)
2014-03-23 09:44 UTC, Alexandr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr 2014-03-23 09:38:29 UTC
Created attachment 96228 [details]
An example pdf file

LibreOffice Draw loses font properties (bold, italic, …) when it imports pdf created by TeXlive.

Steps to reproduce:
1. Create a TeX file using \bf or\it or \sl for boldface, italic or slanted text.
2. Convert it to dvi using latex
3. Convert the dvi to ps using dvips
4 Convert the ps to pdf using ps2pdf
5 Open the pdf in LO Draw

Normal, bold, italic and slanted text are the same. Font properties are not imported

I reproduce this with LibreOffice 4.1.4.2 and 4.3.0.0.alpha0+ Build ID: 926435ef5ab26e647c09887d471bde25b24e1c16 TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time: 2014-03-22_00:09:10 on Debian x86_64

I attach an example pdf file, a sreenshot with LO Draw, a TeX source of the file and a log of its creation.
Comment 1 Alexandr 2014-03-23 09:41:13 UTC
Created attachment 96229 [details]
Screenshot of the file imported by LO4.3 daily(2014-03-22)
Comment 2 Alexandr 2014-03-23 09:42:53 UTC
Created attachment 96230 [details]
TeX source of the example
Comment 3 Alexandr 2014-03-23 09:44:09 UTC
Created attachment 96231 [details]
log of the pdf creation
Comment 4 Alexandr 2014-04-20 08:31:40 UTC
Vort, could you please look at this bug?
Comment 5 vvort 2014-04-20 15:33:35 UTC
I think that there almost nothing to fix
It's not bold properties (for example) of font - it's just different fonts
install cmbx10, cmr10, cmti10 and cmsl10 fonts
( http://www.ctan.org/tex-archive/fonts/cm/ps-type1/bakoma/ )
and the file will look as it should
Comment 6 Thomas Hackert 2014-04-21 13:36:11 UTC
Hello Alexandr, *,
I cannot confirm your bug with LO Version: 4.1.6.1 Build ID: a59ce81388f477fc89db57f0c27f222f31884eb, Version: 4.2.3.3 Build-ID: 882f8a0a489bc99a9e60c7905a60226254cb6ff0, Version: 4.2.4.1 Build ID: d4c441391e20647b3d2e8dde4d20aa868e77e515 (all three versions parallel installed, following the instructions from https://wiki.documentfoundation.org/Installing_in_parallel, and with Germanophone lang- as well as helppack) nor with LO Version: 4.3.0.0.alpha0+ Build ID: 7f62b44458fb27f8aca652436aeafb5e033264bd TinderBox: Linux-rpm_deb-x86@45-TDF, Branch:master, Time: 2014-04-19_22:51:48 (also parallel installed, but this one with en_US lang- as well as helppack) under Debian Testing i686, if I use your attached TeX file, convert it via "texi2pdf font_properties.tex" and open the resulting PDF in Draw. If I use your attached font_properties.pdf, I see the same problem as in your screenshot here ... :( If I use "file /path/to/your/pdf", I get
<quote>
font_properties.pdf: PDF document, version 1.4
</quote>
. If I do the same with my own created PDF, I get
<quote>
font_properties.pdf: PDF document, version 1.5
</quote>
. Could it be, that you have used a different way to convert your TeX file to PDF? Or could it be, that you need to install additional fonts (as vvort has mentinoned in comment 5) or something else?
Sorry, that I cannot be of any further help here ... :(
Thomas.
Comment 7 Alexandr 2014-04-23 19:24:50 UTC
Thank you for attention to my problem.

Vort,
Thank you for your great pdfimport improvements. Yes, the problem was with the fonts. These fonts have “Computer modern” family, but in the example every variant has its own font family. A solution I found is to create new fonts with necessary font families by fontforge. 

Thomas,
the way of pdf creation is essential. That's why I describe it so detailed in the initial message. If I use pdflatex to the convertion? The font family is “Computer modern” for every string.

I still have problem with slanted text but it is another bug. I mark this report as NOTABUG