Merge pull request #959 from S2-Industries/master
Added FactoorSharp to the list of valid pdf sources
This commit is contained in:
@@ -283,6 +283,7 @@ public class PDFValidator extends Validator {
|
||||
final byte[] cibpdfbrewerSignature = "CIB pdf brewer".getBytes(StandardCharsets.UTF_8);
|
||||
final byte[] lexofficeSignature = "lexoffice".getBytes(StandardCharsets.UTF_8);
|
||||
final byte[] s2IndustriesSignature = "s2industries.ZUGFeRD.PDF".getBytes(StandardCharsets.UTF_8); // https://github.com/stephanstapel/ZUGFeRD-csharp
|
||||
final byte[] factoorSharpSignature = "FactoorSharp".getBytes(StandardCharsets.UTF_8); // https://github.com/S2-Industries/FactoorSharp
|
||||
final byte[] sevdeskSignature = "sevdesk".getBytes(StandardCharsets.UTF_8);
|
||||
|
||||
if (ByteArraySearcher.contains(fileContents, symtraxSignature)) {
|
||||
@@ -305,6 +306,8 @@ public class PDFValidator extends Validator {
|
||||
Signature = "Lexware office";
|
||||
} else if (ByteArraySearcher.contains(fileContents, s2IndustriesSignature)) {
|
||||
Signature = "ZUGFeRD.PDF-csharp";
|
||||
} else if (ByteArraySearcher.contains(fileContents, factoorSharpSignature)) {
|
||||
Signature = "FactoorSharp";
|
||||
} else if (ByteArraySearcher.contains(fileContents, sevdeskSignature)) {
|
||||
Signature = "sevdesk";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user