LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-01-2008, 08:12 AM   #1
checkmate3001
Member
 
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 307

Rep: Reputation: 32
pdf file with japanese fonts displays garbage text


Hello everyone,

I have some pdf files I use for work that were created with (I believe) japanese fonts although some of the text is in english.

When I open them in kpdf I get garbage where the text is.

How would I go about solving this problem?
 
Old 12-01-2008, 07:58 PM   #2
Caballero del norte
Member
 
Registered: Apr 2007
Location: Sonoran Desert, USA
Distribution: Ubuntu 8.04
Posts: 30

Rep: Reputation: 16
pdf files in Japanese

Quote:
Originally Posted by checkmate3001 View Post
Hello everyone,

I have some pdf files I use for work that were created with (I believe) japanese fonts although some of the text is in english.

When I open them in kpdf I get garbage where the text is.

How would I go about solving this problem?
First thing I would do is to check to see if the pdfs will open in another pdf reader. Could be a defective pdf or an unembedded-typefaces one. Which brings us to...

Check is whether the typefaces ("fonts") are embedded... this should be easy to find by checking for description of the file. (I*am only slightly familiar with kpdf, but there should be a description facility in either Files or View.)

As an aside, I have noticed that some pdf reading applications are remarkably backward when opening even Latin-alphabet files.

Good luck.
 
Old 12-01-2008, 10:47 PM   #3
checkmate3001
Member
 
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 307

Original Poster
Rep: Reputation: 32
I've had some luck. I tried it with xpdf (after installing the japanese font support for xpdf) and it will open and is viewable, however, when printing (which is my end-goal) it prints weird # (pound) signs after every number and letter and smooches all the characters together.

I believe kpdf may not have japanese font support. I find it strange, because what do linux users in other countries do?

I will figure it out eventually... like someone else's signature said "I'm too lazy to fail."
 
Old 12-02-2008, 04:09 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
You may want to see this too
http://ubuntuforums.org/showthread.php?t=317104

found by googling ... japanese fonts kpdf
 
Old 12-03-2008, 11:56 PM   #5
checkmate3001
Member
 
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 307

Original Poster
Rep: Reputation: 32
Thank you. Unfortunately that doesn't work for me with my Debian 4 system. I also found this:
http://packages.debian.org/changelog....5-3/changelog

Not sure... I think once the unstable goes stable things will be fixed.
 
Old 12-13-2008, 09:48 PM   #6
checkmate3001
Member
 
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 307

Original Poster
Rep: Reputation: 32
Viewing / Printing Japanese PDF files

I re-installed with Lenny (Debian 5 - Testing) and have been able to open my PDFs with Japanese fonts just fine. EXCELLENT...

However, I can't print them...

They print just like they used to look before. I get all sorts of wierd characters and symbols.

I don't know, but I believe ghostscript is the culprit now. I really have no idea, but I think the document gets piped through ghostscript on it's way to the printer. I don't even know what ghostscript does...

I've installed the following hoping to solve my problem.
Code:
dpkg -l | grep [gG]hostscript
ii  ghostscript                                   8.62.dfsg.1-3.1               The GPL Ghostscript PostScript/PDF interpret
ii  ghostscript-x                                 8.62.dfsg.1-3.1               The GPL Ghostscript PostScript/PDF interpret
ii  gs-cjk-resource                               1.20080107-4                  Resource files for gs-cjk, ghostscript CJK-T
ii  gsfonts                                       1:8.11+urwcyr1.0.7~pre44-3    Fonts for the Ghostscript interpreter(s)
ii  gsfonts-other                                 6.0-3.2                       Additional fonts for the ghostscript interpr
ii  gsfonts-wadalab-common                        0.20010409-7.1                Japanese symbol fonts for the ghostscript in
ii  gsfonts-wadalab-gothic                        0.20010409-7.1                Japanese gothic fonts for the ghostscript in
ii  gsfonts-wadalab-mincho                        0.20010409-7.1                Japanese mincho fonts for the ghostscript in
ii  gsfonts-x11                                   0.21                          Make Ghostscript fonts available to X11
ii  ijsgutenprint                                 5.0.2-4                       inkjet server - Ghostscript driver for Guten
ii  libgs8                                        8.62.dfsg.1-3.1               The Ghostscript PostScript/PDF interpreter L
But to no avail.
 
Old 12-14-2008, 09:58 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Debian Lenny :
I have no problems with printing a "japanese text.pdf"
from kpdf or evince.
Evince also has a fast "print preview" , try it, please.
( I couldn't find a text, so I created one from the
Luxman home page >> print to file.ps >>> print to pdf
(with cups-pdf ) ).

A text from OpenOffice Writer > 'export as pdf' will
also print perfect with kpdf, japanese text looks like
it was foto copied. I installed these fonts, to have
a useable OOO-writer ( some probably surplus )
Quote:
46. ttf-kiloji 1:2.1.0-2
47. ttf-kochi-gothic 1.0.20030809-8
48. ttf-kochi-mincho 1.0.20030809-8
49. ttf-sazanami-mincho 20040629-2
50. xfonts-intl-japanese 1.2.1-6
51. xfonts-intl-japanese-big 1.2.1-6
52. xfonts-jisx0213 0+20040511-3
53. xfonts-kaname 1.1-9
( The numbering is from 'pdbv' )

Another thing to try : Print your pdf to Postscript
( print.ps ) and then to paper. ( works too here ).

Printer used : hp deskjet 1120c.

You could also provide a link to some pdf, not working
for you, please.
....

Last edited by knudfl; 12-14-2008 at 10:07 AM.
 
Old 12-14-2008, 06:22 PM   #8
checkmate3001
Member
 
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 307

Original Poster
Rep: Reputation: 32
I installed everything you mentioned. However evince was not able to view the pdf document. There wasn't any text at all. I am beginning to think that it was created poorly. I have visited google.jp and search for pdf documents to try out. I haven't seen one that didn't work properly.

I am curious about these messages:
Code:
Setting up gs-cjk-resource (1.20080107-4) ...
No CIDSupplement specified for UKaiCN, defaulting to 0.
No CIDSupplement specified for Batang-Regular, defaulting to 0.
No CIDSupplement specified for Gungseo-Regular, defaulting to 0.
No CIDSupplement specified for Pilgi-Regular, defaulting to 0.
No CIDSupplement specified for Dotum-Bold, defaulting to 0.
No CIDSupplement specified for Batang-Bold, defaulting to 0.
No CIDSupplement specified for Pilgi-Bold, defaulting to 0.
No CIDSupplement specified for Dotum-Regular, defaulting to 0.
No CIDSupplement specified for UMingCN, defaulting to 0.
No CIDSupplement specified for Graphic-Regular, defaulting to 0.
No CIDSupplement specified for Graphic-Bold, defaulting to 0.
No CIDSupplement specified for BousungEG-Light-GB, defaulting to 0.
No CIDSupplement specified for UKaiCN, defaulting to 0.
No CIDSupplement specified for Batang-Regular, defaulting to 0.
No CIDSupplement specified for Gungseo-Regular, defaulting to 0.
No CIDSupplement specified for Pilgi-Regular, defaulting to 0.
No CIDSupplement specified for Dotum-Bold, defaulting to 0.
No CIDSupplement specified for Batang-Bold, defaulting to 0.
No CIDSupplement specified for Pilgi-Bold, defaulting to 0.
No CIDSupplement specified for Dotum-Regular, defaulting to 0.
No CIDSupplement specified for UMingCN, defaulting to 0.
No CIDSupplement specified for Graphic-Regular, defaulting to 0.
No CIDSupplement specified for Graphic-Bold, defaulting to 0.
No CIDSupplement specified for BousungEG-Light-GB, defaulting to 0.
Are these errors or normal?

Thank you for your time. I will post if I find anything new.
 
Old 12-15-2008, 02:01 AM   #9
checkmate3001
Member
 
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 307

Original Poster
Rep: Reputation: 32
poppler-data fixed evince pdf display and print japanese and english fonts

I found something new. If I type the following command this is what results:
Code:
pdffonts /media/disk/a06/ea06/Assembly\ chart\ \&\ Parts\ list.pdf
name                                 type              emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
Error: Missing language pack for 'Adobe-Japan1' mapping
Arial                                TrueType          no  no  no      83  0
Error: Missing language pack for 'Adobe-Japan1' mapping
Error: Missing language pack for 'Adobe-Japan1' mapping
Error: Missing language pack for 'Adobe-Japan1' mapping
Error: Missing language pack for 'Adobe-Japan1' mapping
Error: Missing language pack for 'Adobe-Japan1' mapping
Error: Missing language pack for 'Adobe-Japan1' mapping

UPDATE!!!!!!

As I was writing this I found a website where someone was having similar problems. They said it was remedied after they installed poppler-data. That has seemed to solve most of my problems!

Here are what remains:
kpdf - views pdf good - prints garbage text
xpdf - views pdf good - prints garbage text
kghostview - can't view (blank - not even graphics) - haven't tried to print
evince - views pdf good - prints pdf good!

EXCELLENT.

I wonder why a program can display a pdf just fine... but can't print it?

Here is the result from the same command I posted above earlier:
Code:
pdffonts /media/disk/a06/ea06/Assembly\ chart\ \&\ Parts\ list.pdf
name                                 type              emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
GothicBBB-Medium-Identity-H          CID Type 0        no  no  no      84  0
Arial                                TrueType          no  no  no      83  0
Ryumin-Light-Identity-H              CID Type 0        no  no  no      65  0

Last edited by checkmate3001; 12-15-2008 at 02:05 AM.
 
Old 12-15-2008, 01:40 PM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
If you want a real versatile tool, also please
try the "Adobe Reader" . Should be able to deal
with all odd pdf's.
 
Old 12-19-2008, 09:27 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Some being Korean fonts ?

# 8 : A Quotation with "comments from Google" ( = )
Quote:
Setting up gs-cjk-resource (1.20080107-4) ...
No CIDSupplement specified for UKaiCN, defaulting to 0. = ttf-arphic-ukai
No CIDSupplement specified for Batang-Regular, defaulting to 0. = Korean
No CIDSupplement specified for Gungseo-Regular, defaulting to 0. = Korean
No CIDSupplement specified for Pilgi-Regular, defaulting to 0. = Korean
No CIDSupplement specified for Dotum-Bold, defaulting to 0. = un-core-fonts-dotumbold = Korean ???
No CIDSupplement specified for Batang-Bold, defaulting to 0. =Korean
No CIDSupplement specified for Pilgi-Bold, defaulting to 0. = Korean
No CIDSupplement specified for Dotum-Regular, defaulting to 0. = Korean ?
....
 
Old 05-31-2009, 12:35 AM   #12
checkmate3001
Member
 
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 307

Original Poster
Rep: Reputation: 32
Since this post is rather old and I did solve my temporary problem, I started a new post to deal primarily in getting ghostscript to print pdf documents with japanese fonts correctly.

http://www.linuxquestions.org/questi...script-729586/
 
  


Reply

Tags
font, japanese, kpdf


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Graphics card displays garbage through SVideo on TV nuubuntu Linux - Hardware 1 03-19-2007 12:36 AM
Pdf viewers not showing text after X11-fonts-misc module added to Slax 5.1.8 live CD. uncle-c Slackware 1 11-22-2006 03:26 AM
pdf to text file converter?? bobb_roof Linux - Software 6 10-29-2006 11:50 PM
IE doesn't load PDF sometimes and prints garbage siucorn Linux - Software 0 08-29-2003 10:04 PM
nVidia displays garbage, x halts. MagicTom Linux - Hardware 8 08-18-2003 10:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration