The following code causes a System.InvalidOperationException because the file in question is still in use. There isn't clear guidance in the PDFTron documentation on how one should close a file, but the following yields the exception:
// in my dispose method. _pdfViewWpf is a pdftron.PDF.PDFViewWPF, and _pdfPath is the filepath I set the doc to.
_pdfViewWpf.CloseDoc();
_pdfViewWpf.Dispose();
File.Move(_pdfPath, @"C:\myFilePath\Test.pdf");
What am I missing so that PDFTron properly releases and closes the file?