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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-01-2008, 08:12 AM
|
#1
|
Member
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 307
Rep:
|
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?
|
|
|
12-01-2008, 07:58 PM
|
#2
|
Member
Registered: Apr 2007
Location: Sonoran Desert, USA
Distribution: Ubuntu 8.04
Posts: 30
Rep:
|
pdf files in Japanese
Quote:
Originally Posted by checkmate3001
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.
|
|
|
12-01-2008, 10:47 PM
|
#3
|
Member
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 307
Original Poster
Rep:
|
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."
|
|
|
12-02-2008, 04:09 AM
|
#4
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
You may want to see this too
http://ubuntuforums.org/showthread.php?t=317104
found by googling ... japanese fonts kpdf
|
|
|
12-03-2008, 11:56 PM
|
#5
|
Member
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 307
Original Poster
Rep:
|
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.
|
|
|
12-13-2008, 09:48 PM
|
#6
|
Member
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 307
Original Poster
Rep:
|
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.
|
|
|
12-14-2008, 09:58 AM
|
#7
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
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.
|
|
|
12-14-2008, 06:22 PM
|
#8
|
Member
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 307
Original Poster
Rep:
|
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.
|
|
|
12-15-2008, 02:01 AM
|
#9
|
Member
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 307
Original Poster
Rep:
|
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.
|
|
|
12-15-2008, 01:40 PM
|
#10
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
If you want a real versatile tool, also please
try the "Adobe Reader" . Should be able to deal
with all odd pdf's.
|
|
|
12-19-2008, 09:27 AM
|
#11
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
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 ?
|
....
|
|
|
05-31-2009, 12:35 AM
|
#12
|
Member
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 307
Original Poster
Rep:
|
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/
|
|
|
All times are GMT -5. The time now is 02:19 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|