|
View:
New views
10 Messages
—
Rating Filter:
Alert me
|
|
|
xefitra - dithered gray fonts unreadableHello, I'm using GhostScript to print documents as a tiff file. The output only has to be a monochrom image, therefore the used device is "tiffg4". But if GS encounters documents with gray fonts it dithers it to only a few dots, so the text is nearly impossible to read. This issue could be due to a resolution of just 200dpi, but this should be kept that way, if possible. If there an option to automatically convert all gray texts to black texts? I'm using the following command: gswin32c.exe -dSAFER -dNOPAUSE -dBATCH -sDEVICE=tiffg4 -r200 I really would appreciate it, if someone could help me on this issue. Thanks and kind regards Werner Heinsohn _______________________________________________ gs-devel mailing list gs-devel@... http://www.ghostscript.com/mailman/listinfo/gs-devel |
|
|
Re: xefitra - dithered gray fonts unreadableDear Werner Heinsohn,
We will need your file to reproduce the problem with out computers. Please enter a bug report into bugs.Ghostscript.com and attach your test file to there. You may then mark it "private" to disable access for 3d parties. Thank you. Leo. ----- Original Message ----- From: "Werner Heinsohn" <werner.heinsohn@...> To: <gs-devel@...> Sent: Thursday, September 11, 2008 7:26 PM Subject: [gs-devel] xefitra - dithered gray fonts unreadable > Hello, > > I'm using GhostScript to print documents as a tiff file. The output only > has to be a monochrom image, therefore the used device is "tiffg4". But if > GS encounters documents with gray fonts it dithers it to only a few dots, > so the text is nearly impossible to read. This issue could be due to a > resolution of just 200dpi, but this should be kept that way, if possible. > > If there an option to automatically convert all gray texts to black texts? > > I'm using the following command: > gswin32c.exe -dSAFER -dNOPAUSE -dBATCH -sDEVICE=tiffg4 -r200 > > > I really would appreciate it, if someone could help me on this issue. > > Thanks and kind regards > Werner Heinsohn > > > > -------------------------------------------------------------------------------- > _______________________________________________ > gs-devel mailing list > gs-devel@... > http://www.ghostscript.com/mailman/listinfo/gs-devel > _______________________________________________ gs-devel mailing list gs-devel@... http://www.ghostscript.com/mailman/listinfo/gs-devel |
|
|
Re: xefitra - dithered gray fonts unreadableWerner,
You can add a statement to the command line to convert all grays that are darker than a specified value to black and all others to white by setting a transfer function. E.g. gs-sDEVICE=tiffg4 -sOutputFile=test.tif -c "<< /Install { { 0.85 gt { 1 } { 0 } ifelse } settransfer } >> setpagedevice" -f test.ps You can change the 0.85 value to vary the point where gray turns to black or white. marcos 2008/9/11 Werner Heinsohn <werner.heinsohn@...>: > Hello, > > I'm using GhostScript to print documents as a tiff file. The output only has > to be a monochrom image, therefore the used device is "tiffg4". But if GS > encounters documents with gray fonts it dithers it to only a few dots, so > the text is nearly impossible to read. This issue could be due to a > resolution of just 200dpi, but this should be kept that way, if possible. > > If there an option to automatically convert all gray texts to black texts? > > I'm using the following command: > gswin32c.exe -dSAFER -dNOPAUSE -dBATCH -sDEVICE=tiffg4 -r200 > > > I really would appreciate it, if someone could help me on this issue. > > Thanks and kind regards > Werner Heinsohn > > > _______________________________________________ > gs-devel mailing list > gs-devel@... > http://www.ghostscript.com/mailman/listinfo/gs-devel > > -- Marcos H. Woehrmann marcos.woehrmann@... _______________________________________________ gs-devel mailing list gs-devel@... http://www.ghostscript.com/mailman/listinfo/gs-devel |
|
|
|
|
|
Re: xefitra - dithered gray fonts unreadableThe 'II' header looks like that of a TIFF file. Please look at the input file and make sure it is PostScript. Ghostscript does not process TIFF files directly (it writes them, doesn't read them). Regards, Ray Werner Heinsohn wrote:
_______________________________________________ gs-devel mailing list gs-devel@... http://www.ghostscript.com/mailman/listinfo/gs-devel |
|
|
Re: xefitra - dithered gray fonts unreadableWerner,
I think the problem is the command line order and the missing -f before the input filename, try putting the commands in the following order: gs <options> -c "<< /Install ... >> setpagedevice" -f input_filename marcos 2008/9/15 Werner Heinsohn <werner.heinsohn@...>: > Oh! I didn't send it to the list, sorry for that... > > Thanks Marcos, > > but if I apply your suggestion, the following error occurs: > > The used GS call (The _PRINT_FILE is the generated temporary file from the > printer by Redmon): > gswin32c.exe -dSAFER -dNOPAUSE -dBATCH -sDEVICE=tiffg4 -r200 -c "<< /Install > { { 0.85 gt {1 } { 0 } ifelse } settransfer } >> setpagedevice" > -sOutputFile=%P2MFILE% %_PRINT_FILE% >> %LOGFILE% > > The error message: > Error: /undefined in II* > Operand stack: > Execution stack: > %interp_exit .runexec2 --nostringval-- --nostringval-- > --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- > --nostringval-- false 1 %stopped_push 1905 1 3 %oparray_pop > 1904 1 3 %oparray_pop 1888 1 3 %oparray_pop 1771 1 3 > %oparray_pop --nostringval-- %errorexec_pop .runexec2 > --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push > --nostringval-- > Dictionary stack: > --dict:1152/1684(ro)(G)-- --dict:0/20(G)-- --dict:70/200(L)-- > Current allocation mode is local > Current file position is 4 > > > While searching the web I found a hint that the redmon input file seems not > to have the expected file format. Do I have to manually alter the file > before the GS processing occurs? Without your suggested parameters the error > message does not occur. > > kind regards, > Werner > > > > ----- Original Message ---- > From: Marcos H. Woehrmann <marcos.woehrmann@...> > To: Werner Heinsohn <werner.heinsohn@...> > Cc: gs-devel@... > Sent: Monday, September 15, 2008 3:57:03 AM > Subject: Re: [gs-devel] xefitra - dithered gray fonts unreadable > > Werner, > > You can add a statement to the command line to convert all grays that > are darker than a specified value to black and all others to white by > setting a transfer function. > > E.g. > > gs-sDEVICE=tiffg4 -sOutputFile=test.tif -c "<< /Install { { 0.85 gt { > 1 } { 0 } ifelse } settransfer } >> setpagedevice" -f test.ps > > You can change the 0.85 value to vary the point where gray turns to > black or white. > > marcos > > 2008/9/11 Werner Heinsohn <werner.heinsohn@...>: >> Hello, >> >> I'm using GhostScript to print documents as a tiff file. The output only >> has >> to be a monochrom image, therefore the used device is "tiffg4". But if GS >> encounters documents with gray fonts it dithers it to only a few dots, so >> the text is nearly impossible to read. This issue could be due to a >> resolution of just 200dpi, but this should be kept that way, if possible. >> >> If there an option to automatically convert all gray texts to black texts? >> >> I'm using the following command: >> gswin32c.exe -dSAFER -dNOPAUSE -dBATCH -sDEVICE=tiffg4 -r200 >> >> >> I really would appreciate it, if someone could help me on this issue. >> >> Thanks and kind regards >> Werner Heinsohn >> >> >> _______________________________________________ >> gs-devel mailing list >> gs-devel@... >> http://www.ghostscript.com/mailman/listinfo/gs-devel >> >> > > > > -- > Marcos H. Woehrmann > marcos.woehrmann@... > > > > _______________________________________________ > gs-devel mailing list > gs-devel@... > http://www.ghostscript.com/mailman/listinfo/gs-devel > > -- Marcos H. Woehrmann marcos.woehrmann@... _______________________________________________ gs-devel mailing list gs-devel@... http://www.ghostscript.com/mailman/listinfo/gs-devel |
|
|
|
|
|
|
|
|
Re: xefitra - dithered gray fonts unreadableIt seems clear from the traffic on this thread that you really need more support than is usual from Artifex for free users. While there are solutions to doing what you need (see the object tagging code and gs_img.ps), these require an understanding of PostScript and Ghostscript that transcend what we provide for free users. If you are working for a supported Artifex customer, please let us know. In the meantime, there is probably enough information already on this thread to allow some of the contributors to free (GPL) Ghostscript to help you. Best Regards, Ray Werner Heinsohn wrote:
_______________________________________________ gs-devel mailing list gs-devel@... http://www.ghostscript.com/mailman/listinfo/gs-devel |
|
|
Re: xefitra - dithered gray fonts unreadableAt 03:07 19/09/2008 -0700, Werner Heinsohn wrote:
>Can someone help me with this issue? >The text fonts should be processed with the command 'gs <options> -c "<< >/Install ... >> setpagedevice" -f input_filename' >...while the images get dithered in the normal "sDEVICE=tiffg4" process. > >Is this possible? I also looked through the EPS file to maybe find a way >to accomplish the goal, but the syntax seems to be too complex. PostScript doesn't have different colours for different objects, so no, you can't apply different transfer functions for text, images and linework. You could write a device for Ghostscript to do this, but it would probably be more effort than its worth. You could redefine all the text operators so that they set the current colour to black, something like: /oldshow /show load bind def /show { gsave 0 0 0 1 setcmykcolor oldshow grestore } bind def Obviously you could instead modify the image operators. If you don't have too many files to deal with, and you have a copy of Acrobat, you could convert the files to PDF, open them in Acrobat, and modify the text colours. Ken _______________________________________________ gs-devel mailing list gs-devel@... http://www.ghostscript.com/mailman/listinfo/gs-devel |
| Free Forum Powered by Nabble | Forum Help |