Public bug reported:

Binary package hint: libreoffice

Sys Info:
Description:    Ubuntu 11.04
Release:        11.04

LibreOffice info:
LibreOffice 3.3.2 
OOO330m19 (Build:202)
tag libreoffice-3.3.2.2, Ubuntu package 1:3.3.2-1ubuntu5

At begin, I followed the instruction at 
http://www.squidoo.com/how-to-create-fillable-pdf-forms-with-open-office 
to create a fillable PDF using Libre Office writter. 
The follows is what I did:
I created a Text Box (from the Form Controls toolbar) in the body of an 
article, and set the font property of the Text Box. I chose the Adobe Song Font 
as the font for Chinese Characters and Dejavu font for the Western Characters. 
The setting was now looked strange as I could only change the font name for 
Chinese Characters, but the rest settings for the Chinese Characters, such as 
the font size, were kept gray. And no mater what font I chose, they were always 
gray. 

Since the Text Boxes control worked well in Libre Office writter in both
English and Chinese I thought it might be OK for PDF too.

So I exported directly to the PDF format, then I got a PDF file with a
fillable text box in it.

After I inputed some Chinese characters as "你好" in the text box and
click somewhere else on the page, the content I typed was supposed to
show up with the font properties I had set above.

However, the content didn't show up.

Then I tried the combination of Chinese characters and English words,
such as "你好hello", only the English word shown up.

When I clicked the text box control in the PDF viewer(evince, in my
case), the Chinese content was still in the text box, but they just
refused to show up.

Notice that, the Chinese Characters shows up well as ordinary content in
the PDF file, so this problem is only related with the form controls.

Later, I tried the Label control. I typed some Chinese as the caption of
the Label control. Interestingly, the Chinese in the Label shown up in
the PDF file.

So I though this might related with the font embedded with the PDF file.

I did the following as a test then:
In the Libre Office writter, I first typed some word in the body of the article 
with a font A. then, I created a Text Box control using a font B and type 
something in the text box. After that, I created a Label Control with some 
words as its caption and using a font C. When all these had done, I exported 
the PDF file. 

In evince, I checked the properties of the PDF file. In the Font tab, it
said: font A is embedded, font B is not embedded, font C is embedded.

So, the reason of my problem was that the font used by the Text Box
control was not embedded in the PDF file during the export.

I noticed that there was an option related to the embedded font in the
PDF option during the export, which was in Chinese and it meant
"Embedded Standard Font". I didn't know what the original name of this
option was. Anyway, the Chinese translation looked wired. Moreover,
checking this option or not did not affect the result.

After all above, I still do not know the solution to this problem.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: libreoffice-core 1:3.3.2-1ubuntu5
ProcVersionSignature: Ubuntu 2.6.38-10.44-generic 2.6.38.7
Uname: Linux 2.6.38-10-generic i686
Architecture: i386
Date: Wed Jun 15 15:16:55 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.2)
ProcEnviron:
 LANGUAGE=zh_CN:en
 LANG=zh_CN.UTF-8
 SHELL=/bin/bash
SourcePackage: libreoffice
UpgradeStatus: Upgraded to natty on 2011-05-06 (40 days ago)

** Affects: libreoffice (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug apport-lpi i386 natty

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/797596

Title:
  Cannot input Chinese in the exported PDF format file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/797596/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to