Merge branch 'master' of github.com:ZUGFeRD/mustangproject
This commit is contained in:
@@ -264,6 +264,7 @@ public class PDFValidator extends Validator {
|
|||||||
final byte[] konikSignature = "Konik".getBytes(StandardCharsets.UTF_8);
|
final byte[] konikSignature = "Konik".getBytes(StandardCharsets.UTF_8);
|
||||||
final byte[] pdfMachineSignature = "pdfMachine from Broadgun Software".getBytes(StandardCharsets.UTF_8);
|
final byte[] pdfMachineSignature = "pdfMachine from Broadgun Software".getBytes(StandardCharsets.UTF_8);
|
||||||
final byte[] ghostscriptSignature = "%%Invocation:".getBytes(StandardCharsets.UTF_8);
|
final byte[] ghostscriptSignature = "%%Invocation:".getBytes(StandardCharsets.UTF_8);
|
||||||
|
final byte[] cibpdfbrewerSignature = "CIB pdf brewer".getBytes(StandardCharsets.UTF_8);
|
||||||
|
|
||||||
if (ByteArraySearcher.contains(fileContents, symtraxSignature)) {
|
if (ByteArraySearcher.contains(fileContents, symtraxSignature)) {
|
||||||
Signature = "Symtrax";
|
Signature = "Symtrax";
|
||||||
@@ -279,6 +280,8 @@ public class PDFValidator extends Validator {
|
|||||||
Signature = "pdfMachine";
|
Signature = "pdfMachine";
|
||||||
} else if (ByteArraySearcher.contains(fileContents, ghostscriptSignature)) {
|
} else if (ByteArraySearcher.contains(fileContents, ghostscriptSignature)) {
|
||||||
Signature = "Ghostscript";
|
Signature = "Ghostscript";
|
||||||
|
} else if (ByteArraySearcher.contains(fileContents, cibpdfbrewerSignature)) {
|
||||||
|
Signature = "CIB pdf brewer";
|
||||||
}
|
}
|
||||||
|
|
||||||
context.setSignature(Signature);
|
context.setSignature(Signature);
|
||||||
|
|||||||
Reference in New Issue
Block a user