私はゴーストスクリプトを使用して、PDFから単一ページのPDFを画像に生成しました。ここで、pdf から複数のページを取り出して、長い縦長の画像を生成できるようにする必要があります。
これを可能にするために私が見逃しているという議論はありますか?
これまでのところ、ghostscript を呼び出すときに次の引数を使用しています。
string[] args ={
"-q",
"-dQUIET",
"-dPARANOIDSAFER", // Run this command in safe mode
"-dBATCH", // Keep gs from going into interactive mode
"-dNOPAUSE", // Do not prompt and pause for each page
"-dNOPROMPT", // Disable prompts for user interaction
"-dFirstPage="+start,
"-dLastPage="+stop,
"-sDEVICE=png16m",
"-dTextAlphaBits=4",
"-dGraphicsAlphaBits=4",
"-r300x300",
// Set the input and output files
String.Format("-sOutputFile={0}", tempFile),
originalPdfFile
};