|
@@ -1963,7 +1963,7 @@ namespace PDF_Office.ViewModels
|
|
PDFViewer.Document.WriteToFilePath(currentPath);
|
|
PDFViewer.Document.WriteToFilePath(currentPath);
|
|
PDFViewer.CloseDocument();
|
|
PDFViewer.CloseDocument();
|
|
PDFViewer.InitDocument(currentPath);
|
|
PDFViewer.InitDocument(currentPath);
|
|
- //System.IO.File.Delete(tempPath);
|
|
|
|
|
|
+ System.IO.File.Delete(tempPath);
|
|
|
|
|
|
if (!string.IsNullOrEmpty(permissionsPassword))
|
|
if (!string.IsNullOrEmpty(permissionsPassword))
|
|
{
|
|
{
|
|
@@ -2002,6 +2002,7 @@ namespace PDF_Office.ViewModels
|
|
PDFViewer.CloseDocument();
|
|
PDFViewer.CloseDocument();
|
|
PDFViewer.InitDocument(currentPath);
|
|
PDFViewer.InitDocument(currentPath);
|
|
PDFViewer.Load();
|
|
PDFViewer.Load();
|
|
|
|
+ System.IO.File.Delete(tempPath);
|
|
}
|
|
}
|
|
catch
|
|
catch
|
|
{
|
|
{
|