** Description changed:

  Binary package hint: libreoffice
  
- Sys Info:
+ 1) lsb_release -rd
  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
+ 2) apt-cache policy evince
+ evince:
+   Installed: 2.32.0-0ubuntu12.1
+   Candidate: 2.32.0-0ubuntu12.1
+   Version table:
+  *** 2.32.0-0ubuntu12.1 0
+         500 http://us.archive.ubuntu.com/ubuntu/ natty-updates/main i386 
Packages
+         100 /var/lib/dpkg/status
+      2.32.0-0ubuntu12 0
+         500 http://us.archive.ubuntu.com/ubuntu/ natty/main i386 Packages
  
- 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. 
+ apt-cache policy libreoffice-writer
+ libreoffice-writer:
+   Installed: 1:3.3.2-1ubuntu5
+   Candidate: 1:3.3.2-1ubuntu5
+   Version table:
+  *** 1:3.3.2-1ubuntu5 0
+         500 http://us.archive.ubuntu.com/ubuntu/ natty-updates/main i386 
Packages
+         100 /var/lib/dpkg/status
+      1:3.3.2-1ubuntu4 0
+         500 http://us.archive.ubuntu.com/ubuntu/ natty/main i386 Packages
  
- 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.
+ apt-cache policy unoconv
+ unoconv:
+   Installed: 0.3-6
+   Candidate: 0.3-6
+   Version table:
+  *** 0.3-6 0
+         500 http://us.archive.ubuntu.com/ubuntu/ natty/universe i386 Packages
+         100 /var/lib/dpkg/status
  
- So I exported directly to the PDF format, then I got a PDF file with a
- fillable text box in it.
+ 3) What is expected to happen in Evince via the Terminal:
  
- 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.
+ cd ~/Desktop && wget
+ 
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/797596/+attachment/2170660/+files/libreofficeWriterFile.odt
+ && unoconv --listener && unoconv -f pdf libreofficeWriterFile.odt &&
+ evince libreofficeWriterFile.pdf
  
- However, the content didn't show up.
+ is it looks the same as it does LibreOffice Writer before being
+ exported.
  
- Then I tried the combination of Chinese characters and English words,
- such as "你好hello", only the English word shown up.
+ 4) What happened instead is some of the Chinese text in the Test 2 box
+ is missing.
  
- 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.
+ WORKAROUND: Open the pdf in Adobe Reader.
  
- 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.
+ apt-cache policy acroread
+ acroread:
+   Installed: 9.4.2-0natty1
+   Candidate: 9.4.2-0natty1
+   Version table:
+  *** 9.4.2-0natty1 0
+         500 http://archive.canonical.com/ubuntu/ natty/partner i386 Packages
+         100 /var/lib/dpkg/status
  
  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
+  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)

** Also affects: evince (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: evince (Ubuntu)
       Status: New => Confirmed

** Changed in: libreoffice (Ubuntu)
       Status: Incomplete => Invalid

-- 
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:
  Evince missing Chinese characters in pdf

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to