How can I convert excel to PDF and keep all format from excel file ?

asked 2017-02-14 04:51:54 +0100

tina08 gravatar image

updated 2017-02-14 06:47:59 +0100

Hi all, Currently, I can covert from excel to pdf by command line, but I have problem about front after convert. In excel file I used Times new roman font, but after convert to pdf I found the font in PDF file is different with it. Please help me how can I fix this problem.

P/s: My excel file in Japanese language, and I'm using Libreoffice 5.0 and centos 7

Thank you very much

edit retag flag offensive close merge delete

Comments

What font do you see when open the file in LibreOffice Calc (not in command line, but usual way, interactively)? Is it Times New Roman as expected? Is export to PDF from LibreOffice window the same as using command line?

I advise you to file a bug report at https://bugs.documentfoundation.org and attach sample excel file there to reproduce the problem.

Mike Kaganski gravatar imageMike Kaganski ( 2017-02-14 08:12:30 +0100 )edit

If I use MS Excel to convert to PDF, everything is fine, but when I convert from Libreoffice, the font from PSD is different with excel file.

tina08 gravatar imagetina08 ( 2017-02-15 07:40:26 +0100 )edit

Do you use Excel on the same system (CentOS - possibly under Wine)? The question is if the required font installed on the system?

Mike Kaganski gravatar imageMike Kaganski ( 2017-02-15 07:48:18 +0100 )edit

No, I don't. I open excel in windows. But I have tried install Libreoffice in windows and convert to PDF, the result is the same when I do it in Centos.

tina08 gravatar imagetina08 ( 2017-02-16 03:20:09 +0100 )edit

So my advise remains: please file a report with sample file attached, preferably also with a PDF where the problem is seen, and a PDF created with Excel for reference.

Mike Kaganski gravatar imageMike Kaganski ( 2017-02-16 04:02:06 +0100 )edit