LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 01-31-2004, 05:46 PM   #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
What is wrong with pdf files created by Ghostscript?


I installed ghostscript on a unix server, and use it to create pdf files for windows clients ('pdf printer').

When I send true type fonts as outlines to Ghostscript, the pdf document created looks great.
However, the text search tool of Acrobat Reader does not work in these pdf files: never finds any text that is apparently in the document.
Likewise, the text extract tool of Acrobat Reader does not seem to work either: it extracts only unreadable garbage.

This is an old problem of mine, since I had the same problem 3 years ago with the windows version of Ghostscript.

What causes the problem and is there a workaround?
 
Old 02-01-2004, 06:18 AM   #2
ash4stuff
Member
 
Registered: Aug 2003
Location: Viena
Distribution: Debian Sarge
Posts: 139

Rep: Reputation: 15
it seems like it is not creating "font" items, just curves...

maybe that gives u a hint, i have never worked with ghostscript though

Last edited by ash4stuff; 02-01-2004 at 06:20 AM.
 
Old 02-01-2004, 09:45 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
When using the text extract tool of Acrobat Reader, I found that:
- the extracted, unreadable text has the same length as the original one,
- each character is "mapped" to an other ASCII character like this: if I extract a certain (constant) number from the ASCII code of the extracted character, I get the ASCII code of the original character.

I think this proves that Ghostscript creates the fonts, only these fonts have different ASCII code mappings, and that is why text search does not work.

The above is based on my finding with the Windows version three years ago, but the unix version produces very similar output, so I think the shift in the ASCII code causes the problem there, too.
But why?

P.S.
Using the printer fonts instead of sending the TrueType ones produces unacceptable output: incorrect accented characters and overlapping characters.
Sending TrueType as bitmap produces very ugly documents (rough pixels), and the text extract tool of AcroRead will not work either.
Only Open Office 1.1 creates correct pdf files, but I need a server solution, for which Ghostscript would be ideal.

Last edited by J_Szucs; 02-01-2004 at 09:50 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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ghostscript & pdf mania arunswarup General 0 11-07-2005 01:45 PM
ghostscript shifting PDF output upwards sshatz Linux - Software 1 09-22-2004 07:06 PM
Ghostscript: why is pdf size sometimes increased so much? J_Szucs Linux - Software 2 08-27-2004 09:19 AM
Anyone using Ghostscript to create pdf files in Central Europe? J_Szucs Linux - Software 0 10-17-2003 05:30 AM
Ghostscript and pdf creation J_Szucs Linux - Software 0 05-29-2003 02:55 AM


All times are GMT -5. The time now is 09:49 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration