Пример #1
0
 /// <summary>
 /// Removes the 'Filing System' from the interpreter that was previously added through GSAddFs. n
 /// </summary>
 /// <param name="pInstance">Ghostscript Instance handle obtained by calling GSNewInstance</param>
 /// <param name="gsFS">File Structure GSAPI_FS_T which has all the handles for all callback functions</param>
 /// <param name="secret">the password, if the file system is encrypted</param>
 public void GSRemoveFS(IntPtr pInstance, GSAPI_FS_T gsFS, IntPtr secret)
 {
     gsRemovefs(pInstance, gsFS, secret);
 }
Пример #2
0
 /// <summary>
 /// Adds a new 'Filing System' to the interpreter. This enables callers to implement their own filing systems. The system starts with
 /// just the conventional 'file' handlers installed, to allow access to the local filing system. Whenever files are to be opened from the
 /// interpreter, the file paths are offered around each registered filing system in turn (from most recently registered to oldest), until
 /// either an error is given, or the file is opened successfully.
 /// </summary>
 /// <param name="pInstance">Ghostscript Instance handle obtained by calling GSNewInstance</param>
 /// <param name="gsFS">File Structure GSAPI_FS_T which has all the handles for all callback functions</param>
 /// <param name="secret">the password, if the file system is encrypted</param>
 /// <returns>Zero if successful</returns>
 public int GSAddFs(IntPtr pInstance, GSAPI_FS_T gsFS, IntPtr secret)
 {
     return(gsAddfs(pInstance, gsFS, secret));
 }