我一直在使用ghostscript做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
};
Run Code Online (Sandbox Code Playgroud)