When converting a PDF to a PDF using Ghos, the top title text is lost

48 Views Asked by At

When converting a PDF to a PDF using Ghos, the top title text is lost.

Before convert:

enter image description here

After convert: enter image description here

GhostScript Version: 10.01.2

gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -dPDFSETTINGS=/default -dDownsampleColorImages=true -dColorImageResolution=72 -dColorImageDownsampleThreshold=1.0 -dDownsampleGrayImages=true -dGrayImageResolution=72 -dGrayImageDownsampleThreshold=1.0 -dDownsampleMonoImages=true -dMonoImageResolution=72 -dMonoImageDownsampleThreshold=1.0 -dHaveTransparency=false -sProcessColorModel=DeviceRGB -sColorConversionStrategy=RGB -sColorConversionStrategyForImages=RGB -dTransferFunctionInfo=/Apply -sOutputFile=output.pdf input.pdf

Sample file

1

There are 1 best solutions below

0
K J On

I have no idea why you are getting such differences except you choice of commands is intentionally downgrading all the PDF content to inferior quality objects. (Basically the opposite to what GhostScript is designed to do.)

If I run exactly the same command on that file I seem to get a severely smaller file which can only be at severe loss of contents.

So looking at what was removed I was surprised to see coloured text converted into images, thus all the readability in that part of the file has been stripped out.

I do not get the font less text distortion your image shows, but do get the same inferior image replacing the text.

enter image description here

Same as before if you do not mess about with the transparency but switch to true then the text is not degraded into an image, however we can see the text is still affected to a degree and much of the other graphics severely altered by stripping their Accessibility containers thus features.

enter image description here

If you "Audit" the original file you will see there are no conventional images to downgrade so throwing all those downgrade image commands are superfluous to that files construction.

enter image description here

If we run the file through a dedicated optimisation very little can be removed primarily the 4 pages can be concentrated into 4 page streams rather than the 11 disparate ones. So little to be gained by attempting reductions. enter image description here