예제 #1
0
 public void Dispose()
 {
     if (wrapper != null)
     {
         wrapper.Dispose();
         wrapper = null;
     }
 }
예제 #2
0
        private void CreateWrapper()
        {
            var handle = IntPtr.Zero;

            if (File.Exists(FilePath))
            {
                // utf8 string with terminating zero
                lock (staticLock)
                    handle = MuPDFLib.LoadDocument(Encoding.UTF8.GetBytes(FilePath + "\0"));
            }

            wrapper = new PDFDocumentWrapper(handle);
        }