ABCpdf 6.0 .NET Professional
iTextSharp
Quote: You can use Ghostscript to convert the PDF files into Images, I used the following parameters to convert the needed PDF into tiff image with multiple frames : CSS gswin32c.exe -sDEVICE=tiff12nc -dBATCH -r200 -dNOPAUSE -sOutputFile=[Output].tiff [PDF FileName] Also you can use the -q parameter for silent mode You can get more information about its output devices from here After that I can easily load the tiff frames like the following C# using (FileStream stream = new FileStream(@"C:\tEMP\image_$i.tiff", FileMode.Open, FileAccess.Read, FileShare.Read)) { BitmapDecoder dec = BitmapDecoder.Create(stream, BitmapCreateOptions.IgnoreImageCache, BitmapCacheOption.None); BitmapEncoder enc = BitmapEncoder.Create(dec.CodecInfo.ContainerFormat); enc.Frames.Add(dec.Frames[frameIndex]); }
gswin32c.exe -sDEVICE=tiff12nc -dBATCH -r200 -dNOPAUSE -sOutputFile=[Output].tiff [PDF FileName]
using (FileStream stream = new FileStream(@"C:\tEMP\image_$i.tiff", FileMode.Open, FileAccess.Read, FileShare.Read)) { BitmapDecoder dec = BitmapDecoder.Create(stream, BitmapCreateOptions.IgnoreImageCache, BitmapCacheOption.None); BitmapEncoder enc = BitmapEncoder.Create(dec.CodecInfo.ContainerFormat); enc.Frames.Add(dec.Frames[frameIndex]); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)