2/13/2024 0 Comments Free instal Cyotek Palette Editor![]() If (settings.PaperSize != PaperSize.Default)Īrguments.Add(GhostScriptCommand.FixedMedia, true) Īrguments.Add(GhostScriptCommand.PaperSize, settings.PaperSize) Īrguments.Add(GhostScriptCommand.UseTrimBox, true) Īrguments.Add(GhostScriptCommand.UseCropBox, true) Īrguments.Add(GhostScriptCommand.PDFPassword, password) Īrguments.Add(GhostScriptCommand.InputFile, pdfFileName) Īs you can see from the method above, the commands are being 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. TrimMode - specifies how the image should be sized.PaperSize - specifies a paper size from one of the standard.ImageFormat - specifies the output image format.GridFitMode - controls the text readability mode.Property is not used if a paper size is set. This internally will set theĭTextAlphaBits and dGraphicsAlphaBits GhostScript switches AntiAliasMode - specifies the antialiasing level between.The Pdf2ImageSettings class allows you to customize various
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |