public static GetLastInstalledVersion ( ) : |
||
리턴 |
/// <summary> /// Returns Ink coverage for specified page range. /// The result is ink coverage for the CMYK inks, separately for each single page (for RGB colors, it does a silent conversion to CMYK color space internally). /// This function is supported only in Ghostscript v9.05 or newer. /// </summary> /// <param name="stream">Stream representing PDF document.</param> /// <param name="firstPage">Designated start page of the document. Pages of all documents in PDF collections are numbered sequentionally.</param> /// <param name="lastPage">Designated end page of the document. Pages of all documents in PDF collections are numbered sequentionally.</param> /// <returns>Dictionary of page numbers with ink coverage.</returns> public static Dictionary <int, GhostscriptPageInkCoverage> GetInkCoverage(Stream stream, int firstPage, int lastPage) { GhostscriptVersionInfo gvi = GhostscriptVersionInfo.GetLastInstalledVersion(GhostscriptLicense.GPL | GhostscriptLicense.AFPL, GhostscriptLicense.GPL); return(GetInkCoverage(stream, firstPage, lastPage, gvi)); }
/// <summary> /// Returns Ink coverage for all pages. /// The result is ink coverage for the CMYK inks, separately for each single page (for RGB colors, it does a silent conversion to CMYK color space internally). /// This function is supported only in Ghostscript v9.05 or newer. /// </summary> /// <param name="path"></param> /// <param name="versionInfo">GhostscriptVersionInfo instance that tells which Ghostscript library to use.</param> /// <returns>A dictionary of a page numbers with the ink coverage.</returns> public static Dictionary <int, GhostscriptPageInkCoverage> GetInkCoverage(string path, GhostscriptVersionInfo versionInfo) { GhostscriptVersionInfo gvi = GhostscriptVersionInfo.GetLastInstalledVersion(GhostscriptLicense.GPL | GhostscriptLicense.AFPL, GhostscriptLicense.GPL); return(GetInkCoverage(path, 0, 0, versionInfo)); }
/// <summary> /// Returns Ink coverage for all pages. /// The result is ink coverage for the CMYK inks, separately for each single page (for RGB colors, it does a silent conversion to CMYK color space internally). /// This function is supported only in Ghostscript v9.05 or newer. /// </summary> /// <param name="stream">Stream representing PDF document.</param> /// <param name="versionInfo">GhostscriptVersionInfo instance that tells which Ghostscript library to use.</param> /// <returns>A dictionary of a page numbers with the ink coverage.</returns> public static Dictionary <int, GhostscriptPageInkCoverage> GetInkCoverage(Stream stream, GhostscriptVersionInfo versionInfo) { GhostscriptVersionInfo gvi = GhostscriptVersionInfo.GetLastInstalledVersion(); return(GetInkCoverage(stream, 0, 0, versionInfo)); }
/// <summary> /// Returns Ink coverage for specified page range. /// The result is ink coverage for the CMYK inks, separately for each single page (for RGB colors, it does a silent conversion to CMYK color space internally). /// This function is supported only in Ghostscript v9.05 or newer. /// </summary> /// <param name="path">PDF file path.</param> /// <param name="firstPage">Designated start page of the document. Pages of all documents in PDF collections are numbered sequentionally.</param> /// <param name="lastPage">Designated end page of the document. Pages of all documents in PDF collections are numbered sequentionally.</param> /// <returns>A dictionary of a page numbers with the ink coverage.</returns> public static Dictionary <int, GhostscriptPageInkCoverage> GetInkCoverage(string path, int firstPage, int lastPage) { GhostscriptVersionInfo gvi = GhostscriptVersionInfo.GetLastInstalledVersion(); return(GetInkCoverage(path, firstPage, lastPage, gvi)); }
public void Process(GhostscriptStdIO stdIO_callback) { this.Process(GhostscriptVersionInfo.GetLastInstalledVersion(GhostscriptLicense.GPL | GhostscriptLicense.AFPL, GhostscriptLicense.GPL), true, stdIO_callback); }
public void Process(GhostscriptStdIO stdIO_callback) { this.Process(GhostscriptVersionInfo.GetLastInstalledVersion(), true, stdIO_callback); }