[英]doc/docx to postscript/ps
I want to convert a doc/docx file to postscript by C# without using Word save to file since Word saved a big ps file. 我想通过C#将doc / docx文件转换为Postscript,而不使用Word保存到文件,因为Word保存了一个大的ps文件。 Also, I want to know if there is a way to optimize a PDF by C#.
另外,我想知道是否有一种通过C#优化PDF的方法。 can I do that?
我能做到吗?
did you find anyway so you can convert doc/docx to ps?I have the same problem. 您是否找到了可以将doc / docx转换为ps的方法?我也遇到了同样的问题。 I know that it's too late to help you, but you can use ghostscript for optimizing pdf
我知道为您提供帮助为时已晚,但是您可以使用ghostscript优化pdf
int ExitCode;
ProcessStartInfo ProcessInfo;
Process Process;
ProcessInfo = new System.Diagnostics.ProcessStartInfo("gswin64.exe", "-dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=C:\\26178DATA\\LowResOutput.pdf -dCompatibilityLevel=1.4 C:\\26178DATA\\Holding.pdf");
ProcessInfo.CreateNoWindow = true;
ProcessInfo.UseShellExecute = true;
ProcessInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
Process = Process.Start(ProcessInfo);
Process.WaitForExit();
ExitCode = Process.ExitCode;
Process.Close();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.