20-09-2023
This commit is contained in:
@@ -147,13 +147,15 @@ Public Class EnvelopeEditorController
|
||||
Dim oTempFilePath = Path.Combine(oTempFiles.TempPath, Guid.NewGuid().ToString + oFileInfo.Extension)
|
||||
File.Copy(oFileInfo.FullName, oTempFilePath, True)
|
||||
|
||||
Dim oFileInfoTemp = New FileInfo(oTempFilePath)
|
||||
|
||||
Dim oDocument = New EnvelopeDocument() With {
|
||||
.FileInfo = New FileInfo(oTempFilePath),
|
||||
.Filename = oFileInfoTemp.Name,
|
||||
.Filepath = oFileInfoTemp.FullName,
|
||||
.FileNameOriginal = oFileInfo.Name,
|
||||
.Thumbnail = Thumbnail.GetThumbnailFromPDFFile(oTempFilePath)
|
||||
}
|
||||
|
||||
|
||||
Return oDocument
|
||||
|
||||
Catch ex As Exception
|
||||
@@ -200,8 +202,11 @@ Public Class EnvelopeEditorController
|
||||
File.Copy(oDocument.Filepath, oDocumentFilePath)
|
||||
File.Delete(oDocument.Filepath)
|
||||
|
||||
Dim oFileInfo = New FileInfo(oDocumentFilePath)
|
||||
|
||||
oDocument.IsTempFile = False
|
||||
oDocument.FileInfo = New FileInfo(oDocumentFilePath)
|
||||
oDocument.Filename = oFileInfo.Name
|
||||
oDocument.Filepath = oFileInfo.FullName
|
||||
Next
|
||||
|
||||
Return True
|
||||
|
||||
Reference in New Issue
Block a user