Print PDF using GhostScript

前端 未结 4 1597
一个人的身影
一个人的身影 2021-02-06 16:21

I am in need of your support on the following issue since its pulling me for a while. We have a small c# utility, which print given PDF using Gho

4条回答
  •  青春惊慌失措
    2021-02-06 16:33

    I think you asked this question before, and its also quite clear from your code sample that you are using GSView, not Ghostscript.

    Now, while GSView does use Ghostscript to do the heavy lifting, its a concern that you are unable to differentiate between these two applications.

    You still haven't provided an example PDF file to look at, nor a command line, though you have now at least managed to quote the Ghostscript version. You need to also give a command line (no I'm not prepared to assemble it from reading your code) and you should try this from the command line, not inside your own application, in order to show that its not your application making the error.

    You should consider upgrading Ghostscript to the current version.

    Note that a quick perusal of your code indicates that you are specifying a number of command line options (eg -dPDFSETTINGS) which are only appropriate for converting a file into PDF, not for any other purpose (such as printing).

    So as I said before, provide a specimen file to reproduce the problem, and a command line (preferably a Ghostscript command line) which causes the problem. Knowing which printer you are using would probably be useful too, although its highly unlikely I will have a duplicate to test on.

提交回复
热议问题