简体   繁体   English

GhostScript路径输出/输入错误

[英]GhostScript Path output/input error

I'm using GS 32bits with the wrapper for C# . 我正在将GS 32位与C#的包装一起使用。

This line works : 这行有效:

GhostscriptSharp.GhostscriptWrapper.GeneratePageThumb("a.pdf" , "a.jpg", 1, 100, 100, 50, 50);

But this line doesn't work 但是这行不起作用

GhostscriptSharp.GhostscriptWrapper.GeneratePageThumb("a.pdf" , "C:\\a.jpg", 1, 100, 100, 50, 50);

How GS handle the in/out path ? GS如何处理进/出路径?

Absolute paths are a bit problematic. 绝对路径有点问题。 I've solved my problem by using relative paths. 我已经通过使用相对路径解决了我的问题。

GhostscriptSharp.GhostscriptWrapper.GeneratePageThumb("a.pdf" , "thumbs/a.jpg", 1, 100, 100, 50, 50);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM