Summary: | Darkness of text in tif converted from pdf | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Robin Capone <rcapone> |
Component: | Text | Assignee: | Ray Johnston <ray.johnston> |
Status: | NOTIFIED WORKSFORME | ||
Severity: | major | ||
Priority: | P2 | ||
Version: | 8.63 | ||
Hardware: | Other | ||
OS: | Linux | ||
Customer: | 200 | Word Size: | --- |
Bug Depends on: | 690521 | ||
Bug Blocks: | |||
Attachments: |
okay.tif
needswork.tif port.pdf good.tiff |
Description
Robin Capone
2009-07-20 09:43:04 UTC
Please attach a file (or if it is the same as for bug 690521, let us know). Also please describe ALL of the command line options used for the conversion -- resolution, -sDEVICE= are the most critical for us to reproduce this. If you can also attach a sample of what you are getting, and describe the improvement you'd like and identify that area in the sample, that would help us in uderstanding your requirements. Created attachment 5225 [details]
okay.tif
Converted document with good text darkness
Created attachment 5226 [details]
needswork.tif
Converted document with too light text
Created attachment 5227 [details]
port.pdf
Original pdf
gs -r204x196 -sDEVICE=tiffg4 -o out.tif -Ilib stocht.ps -c \"{2.8 exp } settransfer << /HalftoneMode 1 >> setuserparams \" -sPAPERSIZE=letter -dQUIET -dNOPAUSE -f inputfile Created attachment 5228 [details]
good.tiff
I think the problem is the placement of the /show patch in gs_init.ps
I placed it immediately before:
% Load the initialization files for optional features.
%% Replace 4 INITFILES
systemdict /INITFILES known
{ INITFILES { dup runlibfile VMDEBUG } forall
}
if
and my results are attached. If the /show is changed later, then it may have
already been bound into some procedures (such as the PDF interp).
With proper placement of the modification to the show operator, this works for me (see good.tiff http://bugs.ghostscript.com/attachment.cgi?id=5228&action=view ) Your version looks good but, no change for me when I move /show code. The only other change I've made to ps files is: /BT { % PATCH TO APPLY A TRANSFER FUNCTION TO TEXT userdict /TRsave currenttransfer put { 0.85 gt { 1 } { 0 } ifelse } settransfer % END PATCH ... /ET { % PATCH TO RESTORE the NON-TEXT TRANSFER FUNCTION userdict /TRsave get settransfer % END PATCH ... } bdef to file pdf_ops.ps Do I need to reboot or restart something after the change? Changing customer bugs that have been resolved more than a year ago to closed. |