GhostScriptSharp/GhostscriptSharp.cs
/// <summary>
/// Generates a thumbnail jpg for the pdf at the input path and saves it 
/// at the output path
/// </summary>
Generates a thumbnail jpg for the pdf at the input path and saves it
at the output path
Generates a thumbnail jpg for the pdf at the input path and saves it at the output path
public static byte[] GetPageThumb(string inputPath, string outputPath, int page, int width, int height)
        {
            GeneratePageThumbs(inputPath, outputPath, page, page, width, height);
            return ReadImage(outputPath);
        }
public static byte [ ] GetPageThumb ( string inputPath , string outputPath , int page , int width , int height ) { GeneratePageThumbs ( inputPath , outputPath , page , page , width , height ) ; return ReadImage ( outputPath ) ; }
Generates a thumbnail jpg for the pdf at the input path and saves it
at the output path
Generates a thumbnail jpg for the pdf at the input path and saves it at the output path
//System.Drawing.Image i = System.Drawing.Image.FromFile(outputPath); //Bitmap b = Bitmap.FromFile(outputPath); //b. //return null;
inputPath
string
outputPath
string
page
int
width
int
height
int