c# - Convert PDF To Image - library or command line - free -


how can convert each pages of pdf's file in c#, using free command line or free library?

thank you

example commandlines ghostscript converting multipage pdf images (1 image per page):

gswin32c ^   -o gray_page_%03d.png ^   -sdevice=pnggray ^    input.pdf 

.

gswin32c ^   -o page_%03d.png ^   -sdevice=png256 ^    input.pdf 

.

gswin32c ^   -o page_with_alphachannel_%03d.png ^   -sdevice=pngalpha ^    input.pdf 

.

gswin32c ^   -o cmyk_page_%03d.jpeg ^   -sdevice=jpegcmyk ^   -djpegq=80 ^    input.pdf 

.

gswin32c ^   -o rgb_page_%03d.jpeg ^   -sdevice=jpeg ^   -djpegq=100 ^    input.pdf 

.

gswin32c ^   -o tiffg4_page_%03d.tiff ^   -sdevice=tiffg4 ^    input.pdf 

.

gswin32c ^   -o tiffg32nc_page_%03d.tiff ^   -sdevice=tiff32nc ^   -scompression=lzw ^    input.pdf 

...and many more possible....

if need control resolutions , page sizes (and not rely on ghostscript's defaults) add these parameters:

-r600x600 

gives horizontal , vertical resolution of 600 dpi.

-g5950x8420 

applies widths of 5950 "devicepoints" , height of 8420 "devicepoints". depending on resolution used @ same time, devicepoints end on paper in different sizes. in case of resolution -r720x720 above example of -g5950x8420 become same media size of din a4 iso (which in postscript points 595 842.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -