我一直在使用ghostscript來執行PDF從圖像生成單頁圖像。現在我需要能夠從pdf中拉出多個頁面併產生一個長的垂直圖像。Ghostscript Multipage PDF to PNG
有沒有一個論點,我錯過了,這將允許這?
到目前爲止我用下面的參數,當我叫出的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
};
的是它在某種程度上可以在腳本/ bash的水平,離不開高水平代碼的接線起來,像上面C#。 – Supra 2015-12-07 09:57:32