简体   繁体   中英

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. Also, I want to know if there is a way to optimize a PDF by C#. can I do that?

did you find anyway so you can convert doc/docx to ps?I have the same problem. I know that it's too late to help you, but you can use ghostscript for optimizing 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();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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