Convert PDF to PostScript

I need to convert a PDF file to PostScript using C #. Can I use a third-party DLL? Or is there an open source project for the same?

0
source share
3 answers

The “cheapest” way to do this (I will not give my definition of “cheap” in this context, though) would be to name one of the command line utilities out there that can convert PDF to PostScript:

  • gswin32c.exe(Win), gs(* nix): Ghostscript , multi-platform GPL v3 license, ...
  • pdftops.exe(Win), pdftops(* nix): part of XPDF from Foolabs , multi-platform GPL v2 license, ...
  • pdftops (* nix) from the "poppler" XPDF widget (theoretically, the Windows version should be easy to compile, but there are no obvious places on the network to capture ready-made ones)

Here is a command line example, first for Ghostscript, assuming Windows (quotation marks for cases where names have spaces):

 "c:/path/to/gswin32c.exe" ^
     -sDEVICE=ps2write ^
     -o "c:/path/to/OUTPUT.pdf" ^
     "c:/path/to/INPUT.pdf"

and the second for XPDF / pdftops (path skipping, assuming the files are in the current directory):

 pdftops.exe ^
     -level3 ^
     INPUT.pdf ^
     OUTPUT.ps
+5
source

You need to rethink your requirements: interpreting a PDF is a huge job, unless the PDF files are presented in very specific forms.

+1
source

, .

, PDF PostScript, , PDF. PDF- PDF.

, . , , .

opensource, ghostscript. "" PDF- .

-1

All Articles