Merge pull request #865 from timkarliczek/feature/add-sevdesk-as-pdf-creator

Add sevdesk signature to valid PDF creators
This commit is contained in:
Jochen Staerk
2025-06-26 09:58:16 +02:00
committed by GitHub

View File

@@ -274,6 +274,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[] sevdeskSignature = "sevdesk".getBytes(StandardCharsets.UTF_8);
if (ByteArraySearcher.contains(fileContents, symtraxSignature)) {
Signature = "Symtrax";
@@ -295,6 +296,8 @@ public class PDFValidator extends Validator {
Signature = "Lexware office";
} else if (ByteArraySearcher.contains(fileContents, s2IndustriesSignature)) {
Signature = "ZUGFeRD.PDF-csharp";
} else if (ByteArraySearcher.contains(fileContents, sevdeskSignature)) {
Signature = "sevdesk";
}
context.setSignature(Signature);