0

I am currently using ghostscript 9.54 and I got a problem when converting pdf to image with the parameters as followings

  1. ""
  2. -dNOPAUSE
  3. -dBATCH
  4. -dSAFER
  5. -sDEVICE=jpeggray
  6. -r200
  7. -dJPEGQ=100
  8. -dAntiAliasGrayImage=false
  9. -dAntiAliasMonoImage=false
  10. -dAutoFilterColorImages=false
  11. -dAutoFilterGrayImages=false
  12. -dDownsampleColorImages=false
  13. -dDownsampleGrayImages=false
  14. -dDownsampleMonoImages=false
  15. -dColorConversionStrategy=/LeaveColorUnchanged
  16. -dConvertCMYKImagesToRGB=false
  17. -dConvertImagesToIndexed=false
  18. -dPreserveHalftoneInfo=true 18.-dPreserveOPIComments=true
  19. -dCompatibilityLevel=1.7

The problem is the euro symbol in a text becomes a B after conversion.

This problem can be fixed with 10.03 with the same parameters. However, with the version 10.03, I got another problem when converting a text in this case.

enter image description here

I would like to know if I can change some parameters or fontmap... to fix this problem. Thanks

4
  • Can't say anything certain without seeing the PDF file, but the most likely problem is a font not embedded in the file. Almost all the parameters you give are incorrect. There are no parameters in Ghostscript which begin with 'GS_'. If you report a bug, as K J suggests, you should try to use the minimum command line required to demonstrate hte problem. Commented Apr 3, 2024 at 7:07
  • Thank @KenS, I just edited my parameters because I mistakenly posted the macro value. The commands works with 99% pdf but only 1 pdf with euro symbol character does not work. I thought of font problems too but I have not figured how to replace the fonts. When I opened the pdf by notepad++, I saw each page or paragraph has been embedded by different fonts. Commented Apr 3, 2024 at 13:37
  • @KJ thanks for suggesting. I will raise a report at GS bugzilla. The problem is I cannot give the pdf because it is confidential to our client. I just want to know if we can change the parameters above to have a better result. Commented Apr 3, 2024 at 13:40
  • If you can't supply the PDF file, then we aren't going to be able to help. There's no way we can tell you what the problem is, or if it can be addressed, without the original PDF. Pictures of the problem don't help. Commented Apr 3, 2024 at 14:16

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.