LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-23-2004, 09:07 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
Two questions I never get an answer to


I have two questions, which I have put up several times in different forums in the past years, but I never got an answer.

I just thought I might try it again:

A) X11 video modes

When I use a video mode of 1024x768, I get a correct picture on my monitor.
When I change to any other video modes, e.g. 800x600 or 640x480, the screen image is dispositioned and distorted.
Especially at 640x480, where the screen image becomes a square (screen aspect ratio 1:1, instead of 4:3), the screen image stretches over the visible area of the screen vertically, while I have large black bands at the left and right side of the display.
Does this mean that I have to resize the display with the OSD controls each time I change video mode, or is there a way to pre-configure X11 to get a correct screen at each video mode?

B) Ghostscript and pdf creation

I find that the pdf files created by ghostscript (ps2pdf, used as a "virtual pdf printer" from network) only look well if I send true type fonts to the pdfprinter as outlines.
However, when I extract text from such pdf files created by Ghostscript, I get only garbage (all characters are there, but replaced by an other character); not the original text. Also: acroread's text search function never finds anything in these files.
This limits the use of ghostscript much: I can only use it for one or two page documents, because longer documents are likely to be searched inside.
Is it possible to setup Ghostscript so that it creates absolutely correct pdf files?
Could you give me some hints?

Last edited by J_Szucs; 04-23-2004 at 09:12 PM.
 
Old 04-23-2004, 09:17 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Re: Two questions I never get an answer to

Quote:
Originally posted by J_Szucs
A) X11 video modes

When I use a video mode of 1024x768, I get a correct picture on my monitor.
When I change to any other video modes, e.g. 800x600 or 640x480, the screen image is dispositioned and distorted.
Especially at 640x480, where the screen image becomes a square (screen aspect ratio 1:1, instead of 4:3), the screen image stretches over the visible area of the screen vertically, while I have large black bands at the left and right side of the display.
Does this mean that I have to resize the display with the OSD controls each time I change video mode, or is there a way to pre-configure X11 to get a correct screen at each video mode?
You should be able to define proper modelines that avoid distortion
if your monitor is unable to keep track of settings you made in the OSD.



Cheers,
Tink
 
Old 04-23-2004, 10:18 PM   #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
> You should be able to define proper modelines that avoid distortion

Do you mean that I should e.g. manually edit /etc/X11/XF86Config?
I tried it, but I do not understand the underlying concept, so its hard to do it correctly for me.
E.g.:
When I press CTRL ALT +, I cycle through 3 modes: 1024x768, 800x600 and 640x480.
But there are several modelines for each resolution in the XF86Config file! Which one is actually used when I change modes?
I gave it a try: I left only one modline for each screen resolution, by commenting out the others. For 800x600 and 640x480 resolutions, I intentionally left those modelines in place, which use lower refresh rates.
Logged out and logged in again, and when changing video modes to 800x600 or 640x480, I found as if the display was not using those low refresh rates I had specified in /etc/XF86Config for these resolutions, but it invariably used the 90Hz that I had specified for 1024x768 there.

So, what is the file that actually determines the X11 modes used by the system?
What is the relation between /etc/X11/XF86Config and /etc/fb.modes?
What is the easiest way to quickly test changes made to /etc/XF86Config? Do I have to struggle though the long KDE startup anytime I want to test a slight change, or even worse: should I restart the machine each time I make a change?

Last edited by J_Szucs; 04-23-2004 at 10:25 PM.
 
Old 04-23-2004, 10:25 PM   #4
flyfishin
Member
 
Registered: Aug 2003
Location: KC, MO
Distribution: CentOS, RHEL, SuSE, Fedora
Posts: 243

Rep: Reputation: 30
Re: Two questions I never get an answer to

Quote:
Originally posted by J_Szucs
B) Ghostscript and pdf creation

I find that the pdf files created by ghostscript (ps2pdf, used as a "virtual pdf printer" from network) only look well if I send true type fonts to the pdfprinter as outlines.
However, when I extract text from such pdf files created by Ghostscript, I get only garbage (all characters are there, but replaced by an other character); not the original text. Also: acroread's text search function never finds anything in these files.
This limits the use of ghostscript much: I can only use it for one or two page documents, because longer documents are likely to be searched inside.
Is it possible to setup Ghostscript so that it creates absolutely correct pdf files?
Could you give me some hints? [/B]
I am not an expert with ps or pdf but a quick read of the ps2pdf page here:

http://www.cs.wisc.edu/~ghost/doc/AFPL/6.50/Ps2pdf.htm

has this in the limitations section:

"ps2pdf will sometimes convert text to high-resolution bitmapped fonts rather than to embedded outline fonts. Currently, this will always occur when the PostScript file uses CID-keyed or double-byte fonts, when the input file uses kshow, or in some cases if it uses fonts with non-standard encodings; it may occur in other cases as well."

Looks like that is the explanation for why you cannot extract text properly from pdf files. That also might explain why adobe is having issues with searches.
 
Old 04-23-2004, 11:17 PM   #5
ovf
Member
 
Registered: Jul 2003
Location: Massachusetts
Distribution: LFS 4.0, Windows XP, Ubuntu 10.01, Gentoo 2.6.32-r7, OpenSolaris
Posts: 100

Rep: Reputation: 15
Have you tried xvidtune to adjust the screen dimensions? I believe it will allow you to test various settings "on the fly".
 
Old 04-23-2004, 11:22 PM   #6
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
To Flyfishin:
> ps2pdf will sometimes convert text to high-resolution bitmapped fonts

Maybe, but I still hope that there is a solution.

So far as I can judge, my problem is caused by the TrueType fonts:
If I send them to ps2pdf as outlines, the document looks good, but it is unsearchable.
If I do not send them, but use the device fonts, instead, then the result is incorrect and unreadable because of overlapping characters.
As almost everything on the Windows clients uses TrueType fonts, I have this problem with almost all documents.

I would need a solution to solve the problem, if possible, on the unix server.
Maybe install some fonts there, to replace the TrueType fonts that the windows clients use? But what fonts?

Here is the font information of one such badly encoded pdf file:

Original font/Type/Encoding/Used font/Type
TTE17D9438t00/TrueType/Built-in/Embedded Subset/TrueType
TTE17D8568t00/TrueType/Built-in/Embedded Subset/TrueType
Times-Roman/Type 1/Custom/TimesNewRomanPSMT/Type 1

In the above file, only the text using the Type 1 font are correct and searchable.

Last edited by J_Szucs; 04-23-2004 at 11:59 PM.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
questions you can`t answer ;-) greenthing Linux - Software 2 02-06-2005 07:52 AM
Simple (easy to answer) questions phillips321 Linux - Software 10 01-20-2005 08:23 AM
A few easy to answer questions BajaNick Slackware 13 01-03-2004 03:50 PM
Many questions that need an urgent answer! squall14716 Linux - General 7 10-03-2003 04:52 PM
Answer these questions - or the penquin gets it! PickUpAPenquin Linux - Software 3 04-27-2001 02:35 PM


All times are GMT -5. The time now is 07:51 AM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration