Merge pull request #865 from timkarliczek/feature/add-sevdesk-as-pdf-creator
Add sevdesk signature to valid PDF creators
This commit is contained in:
@@ -274,6 +274,7 @@ public class PDFValidator extends Validator {
|
|||||||
final byte[] cibpdfbrewerSignature = "CIB pdf brewer".getBytes(StandardCharsets.UTF_8);
|
final byte[] cibpdfbrewerSignature = "CIB pdf brewer".getBytes(StandardCharsets.UTF_8);
|
||||||
final byte[] lexofficeSignature = "lexoffice".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[] s2IndustriesSignature = "s2industries.ZUGFeRD.PDF".getBytes(StandardCharsets.UTF_8); // https://github.com/stephanstapel/ZUGFeRD-csharp
|
||||||
|
final byte[] sevdeskSignature = "sevdesk".getBytes(StandardCharsets.UTF_8);
|
||||||
|
|
||||||
if (ByteArraySearcher.contains(fileContents, symtraxSignature)) {
|
if (ByteArraySearcher.contains(fileContents, symtraxSignature)) {
|
||||||
Signature = "Symtrax";
|
Signature = "Symtrax";
|
||||||
@@ -295,6 +296,8 @@ public class PDFValidator extends Validator {
|
|||||||
Signature = "Lexware office";
|
Signature = "Lexware office";
|
||||||
} else if (ByteArraySearcher.contains(fileContents, s2IndustriesSignature)) {
|
} else if (ByteArraySearcher.contains(fileContents, s2IndustriesSignature)) {
|
||||||
Signature = "ZUGFeRD.PDF-csharp";
|
Signature = "ZUGFeRD.PDF-csharp";
|
||||||
|
} else if (ByteArraySearcher.contains(fileContents, sevdeskSignature)) {
|
||||||
|
Signature = "sevdesk";
|
||||||
}
|
}
|
||||||
|
|
||||||
context.setSignature(Signature);
|
context.setSignature(Signature);
|
||||||
|
|||||||
Reference in New Issue
Block a user