LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   printing japanese pdf via ghostscript (https://www.linuxquestions.org/questions/linux-software-2/printing-japanese-pdf-via-ghostscript-729586/)

checkmate3001 05-30-2009 08:14 PM

printing japanese pdf via ghostscript
 
Hello Everyone,

I have a previous post:
http://www.linuxquestions.org/questi...e-text-687455/

I am still struggling with printing japanese pdf documents with kpdf, xpdf, and ghostview. It seems that ghostscript renders the pdf into postscript to send it to the printer.

The problem is I cannot seem to find a way to get ghostscript to display the text. Instead it just shows boxes where the text is.

How do I get ghostscript to render japanese pdf documents?

checkmate3001 05-31-2009 12:22 AM

I have installed ghostscript 8.64 to see if this would help... of course, it doesn't.

But when I try to use it I get errors where the original debian version (8.62) does not... here they are:

Code:

gs /home/checkmate3001/Downloads/japanese.pdf
GPL Ghostscript 8.64 (2009-02-03)
Copyright (C) 2009 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 1.
Page 1
Can't find CID font "HeiseiMin-W3".
Substituting CID font resource /Adobe-Japan1 for /HeiseiMin-W3.
The substitute CID font "Adobe-Japan1" is not provided either. Will exit with error.
Error: /undefined in findresource

---  CUT OUT  ---

Current allocation mode is local
Last OS error: 2
GPL Ghostscript 8.64: Unrecoverable error, exit code 1

I have installed the following:
Code:

dpkg -l | grep ghostscript
ii  ghostscript                          8.62.dfsg.1-3.2lenny1          The GPL Ghostscript PostScript/PDF interpret
ii  ghostscript-doc                      8.62.dfsg.1-3.2lenny1          The GPL Ghostscript PostScript/PDF interpret
ii  ghostscript-x                        8.62.dfsg.1-3.2lenny1          The GPL Ghostscript PostScript/PDF interpret
ii  gs-cjk-resource                      1.20080107-4                  Resource files for gs-cjk, ghostscript CJK-T
ii  gs-common                            8.62.dfsg.1-3.2lenny1          Dummy package depending on ghostscript
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

I have also installed:
Code:

dpkg -l | grep adobe
ii  cmap-adobe-cns1                      0+20060819-3                  CMaps for Adobe-CNS1
ii  cmap-adobe-gb1                      0+20051207-3                  CMaps for Adobe-GB1
ii  cmap-adobe-japan1                    0+20071201-4                  CMaps for Adobe-Japan1
ii  cmap-adobe-japan2                    0+20020208-4                  CMaps for Adobe-Japan2
ii  cmap-adobe-korea1                    0+20051109-5                  CMaps for Adobe-Korea1

If perhaps I can force ghostscript to substitute a different font it may work?

Any ideas?

checkmate3001 05-31-2009 11:10 PM

Sample Japanese PDF - can you view this with ghostscript?
 
I found a very simple sample pdf to test my ability to view and print japanese pdf documents.

http://www.sanface.com/pdf/japanese.pdf

Can anyone read this pdf via ghostscript?
Open with kpdf or xpdf and do a print preview.

I just get squares where the text should be.


All times are GMT -5. The time now is 10:05 PM.