![]() ![]() If (settings.TrimMode != PdfTrimMode.PaperSize)Īrguments.Add(GhostScriptCommand.Resolution, ()) If (settings.AntiAliasMode != AntiAliasMode.None)Īrguments.Add(GhostScriptCommand.TextAlphaBits, settings.AntiAliasMode) Īrguments.Add(GhostScriptCommand.GraphicsAlphaBits, settings.AntiAliasMode) Īrguments.Add(GhostScriptCommand.GridToFitTT, settings.GridFitMode) GhostScript: protected virtual IDictionary GetConversionArguments(string pdfFileName, string outputImageFileName, int pageNumber, string password, Pdf2ImageSettings settings)Īrguments.Add(GhostScriptCommand.Silent, null) Īrguments.Add(GhostScriptCommand.Safer, null) Īrguments.Add(GhostScriptCommand.Batch, null) Īrguments.Add(GhostScriptCommand.NoPause, null) Īrguments.Add(GhostScriptCommand.Device, GhostScriptAPI.GetDeviceName(settings.ImageFormat)) Īrguments.Add(GhostScriptCommand.OutputFile, outputImageFileName) Īrguments.Add(GhostScriptCommand.FirstPage, pageNumber) Īrguments.Add(GhostScriptCommand.LastPage, pageNumber) Īrguments.Add(GhostScriptCommand.UseCIEColor, null) Quality, etc, and returns the appropriate commands to pass to Various properties of the conversion such as output format, Most of the code in the class is taken up with the Settings.ImageFormat = ImageFormat.Png24 Settings.GridFitMode = GridFitMode.Topological Settings.AntiAliasMode = AntiAliasMode.High ![]() Typical settings could look like this: Pdf2ImageSettings settings ![]() The dUseCropBox or the dUseTrimBox switches. Internally sets either the dFIXEDMEDIA and sPAPERSIZE or Milage may vary if you try and use the paper size option.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |