Compare commits
4 Commits
14bd9af329
...
59900f2ab9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
59900f2ab9 | ||
|
|
33b83a1f6c | ||
|
|
9004b3db88 | ||
|
|
d2099f5315 |
@@ -123,7 +123,7 @@ Public Class ConfigManager(Of T)
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If ApplicationStartupPath <> String.Empty Then
|
If ApplicationStartupPath <> String.Empty Then
|
||||||
_Logger.Debug($"AppConfig is being used: [{ApplicationStartupPath}]")
|
_Logger.Info($"AppConfig is being used: [{ApplicationStartupPath}]")
|
||||||
_AppConfigPath = Path.Combine(ApplicationStartupPath, APP_CONFIG_NAME)
|
_AppConfigPath = Path.Combine(ApplicationStartupPath, APP_CONFIG_NAME)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
@@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
|
|||||||
' übernehmen, indem Sie "*" eingeben:
|
' übernehmen, indem Sie "*" eingeben:
|
||||||
' <Assembly: AssemblyVersion("1.0.*")>
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("1.1.2.0")>
|
<Assembly: AssemblyVersion("1.1.3.0")>
|
||||||
<Assembly: AssemblyFileVersion("1.1.2.0")>
|
<Assembly: AssemblyFileVersion("1.1.3.0")>
|
||||||
|
|||||||
@@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
|
|||||||
' übernehmen, indem Sie "*" eingeben:
|
' übernehmen, indem Sie "*" eingeben:
|
||||||
' <Assembly: AssemblyVersion("1.0.*")>
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("1.5.2.0")>
|
<Assembly: AssemblyVersion("1.5.3.0")>
|
||||||
<Assembly: AssemblyFileVersion("1.5.2.0")>
|
<Assembly: AssemblyFileVersion("1.5.3.0")>
|
||||||
|
|||||||
@@ -25,10 +25,22 @@ Public Class PDFEmbeds
|
|||||||
''' <param name="AllowedExtensions">List of allowed extensions to be extracted</param>
|
''' <param name="AllowedExtensions">List of allowed extensions to be extracted</param>
|
||||||
Public Function Extract(FilePath As String, AllowedExtensions As List(Of String)) As List(Of EmbeddedFile)
|
Public Function Extract(FilePath As String, AllowedExtensions As List(Of String)) As List(Of EmbeddedFile)
|
||||||
Dim oFile As New List(Of EmbeddedFile)
|
Dim oFile As New List(Of EmbeddedFile)
|
||||||
|
Dim oFileInfo As FileInfo
|
||||||
Dim oExtensions = AllowedExtensions.ConvertAll(New Converter(Of String, String)(Function(ext) ext.ToUpper))
|
Dim oExtensions = AllowedExtensions.ConvertAll(New Converter(Of String, String)(Function(ext) ext.ToUpper))
|
||||||
|
|
||||||
Logger.Debug("Extracting embedded files from [{0}]", FilePath)
|
Logger.Debug("Extracting embedded files from [{0}]", FilePath)
|
||||||
|
|
||||||
|
Try
|
||||||
|
oFileInfo = New FileInfo(FilePath)
|
||||||
|
|
||||||
|
Logger.Debug("Filename: {0}", oFileInfo.Name)
|
||||||
|
Logger.Debug("Filesize: {0}", oFileInfo.Length)
|
||||||
|
Logger.Debug("Exists: {0}", oFileInfo.Exists)
|
||||||
|
Catch ex As Exception
|
||||||
|
Logger.Warn("File information for [{0}] could not be read!", FilePath)
|
||||||
|
Logger.Error(ex)
|
||||||
|
End Try
|
||||||
|
|
||||||
Try
|
Try
|
||||||
Using oGDPicturePDF As New GdPicturePDF()
|
Using oGDPicturePDF As New GdPicturePDF()
|
||||||
If oGDPicturePDF.LoadFromFile(FilePath, False) = GdPictureStatus.OK Then
|
If oGDPicturePDF.LoadFromFile(FilePath, False) = GdPictureStatus.OK Then
|
||||||
|
|||||||
Reference in New Issue
Block a user