LinuxQuestions.org
Visit Jeremy's Blog.
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 09-01-2010, 05:48 AM   #1
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
Ghostscript , font problem?


I create pdf files, from postscript files created by windows printer drivers:
/usr/local/bin/ps2pdfwr "$PSFILE" "$PDFFILE"

All the pdf files created this way seem to be empty, i.e. no text is rendered by Adobe Reader on the display, if the original document only contains TimesNewRoman font.

However, if the document also contains any other font (e.g. Arial), then the whole document will be converted correctly, including TimesNewRoman, and also the other font(s).

In both cases, the following font is in the pdf:
Type: Type 1
Encoding: Custom
Actual Font: TimesNewRomanPSMT
Actual Font Type: True Type

For the time being, I have not found a way to create pdfs that are correct in all respect by ghostscript. What am I doing wrong?

Last edited by J_Szucs; 09-02-2010 at 02:27 AM.
 
Old 09-01-2010, 09:49 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
My understanding is that ps2pdfwr is a wrapper script; I think what you
want to do is to get fonts embedded into your PDF (visible) is to add
Code:
-dEmbedAllFonts=true
to the script.

Something like (on my machine)
Code:
$ diff !-2:1 !-2:2
diff /usr/bin/ps2pdfwr tmp/ps2pdfwr
14c14
< OPTIONS="-dSAFER"
---
> OPTIONS="-dSAFER -dEmbedAllFonts=true"
should do the trick.


Hope this works (untested, as I don't need to produce
PDFs in this manner).



Cheers,
Tink
 
Old 09-02-2010, 02:18 AM   #3
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
Thanks, Tinkster, I forgot to mention that it is hardcoded in my ps2pdfwr script:
OPTIONS="-dSAFER -dNOPLATFONTS -dEmbedAllFonts=true"

In the meantime I tried it with postscript files created on linux, too, and those work!

So, it seems that there is some problem with the postscript files created on windows (by pscript5.dll).

The problem is: although the culprit is probably the postscript driver on the windows clients, I should find some workaround in the "pdf printer" configuration on the BSD server, as that is what I have access to, whilst I have no access to windows clients except mine.

Anyway, where does the culprit pscript5.dll come from? Is it part of the postscript printer driver (of Apple Color LW 12/660 PS) I selected for connection to the remote "pdf printer", or is it a windows component?
 
Old 09-02-2010, 08:35 AM   #4
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
Good. When generating level 1 postscript file by pscript5.dll, the pdf created by ghostscript is rendered correctly by adobe reader.

So, it must be some incompatibility issue between pscript5.dll and ghostscript concerning postscript level 2, only. Is there a known incompatibility issue between them? I could not "google" anything useful...

I should still solve the problem on the server side, because windows users are too lazy to set postscript level 1 each time they print, and our windows system administrators are unable to make it a system-wide default setting for the pdf printer. (I know I have asked such in the past, and they have failed.)

Last edited by J_Szucs; 09-02-2010 at 08:37 AM.
 
  


Reply


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
Problem installing ghostscript on web server (Linux 2.6.9-023stab048.4-smp) rantastic Linux - Newbie 4 12-11-2009 05:08 PM
Problem with ghostscript fonts (maybe?) aldob73 Slackware 3 09-02-2007 11:41 AM
Ghostscript problem... HELP!!!! tranfuga Slackware 15 07-22-2007 01:24 PM
Cups/Ghostscript Problem lman817 Linux - Software 3 06-10-2005 01:34 AM
Ghostscript starting problem satimis *BSD 3 06-14-2004 10:38 PM

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

All times are GMT -5. The time now is 03:53 AM.

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