0
我想從PDF文件創建一個縮略圖,但我需要它是300px * 300px,但無論我做什麼我都無法使圖像成爲正確的大小。它似乎總是巨大的。GhostScriptSharp解決問題
這是我的代碼:
GhostscriptSettings settings = new GhostscriptSettings();
settings.Page.AllPages = false;
settings.Page.Start = 1;
settings.Page.End = 1;
settings.Size.Native = GhostscriptSharp.Settings.GhostscriptPageSizes.a2;
settings.Device = GhostscriptSharp.Settings.GhostscriptDevices.png16m;
settings.Resolution = new Size(72, 72);
GhostscriptWrapper.GenerateOutput(Path.Combine(FilePath, Filename), FinalPath, settings); // Create the initial thumbnail
有什麼辦法,以輸出爲300 * 300的PPI的圖像?
乾杯,
/r3plica
我的不好,我的意思是PDF現在糾正了它。感謝您的信息是不確定的決議的東西:) – r3plica 2013-05-10 14:52:44