also accept pdf/a3 from inputstream

This commit is contained in:
jstaerk
2023-12-12 16:53:55 +01:00
parent a11a79333c
commit a4361e5c45
2 changed files with 6 additions and 3 deletions

View File

@@ -137,8 +137,9 @@ public class ZUGFeRDExporterFromPDFA implements IZUGFeRDExporter {
* @throws IOException if anything is wrong with inputstream
*/
public IZUGFeRDExporter load(InputStream pdfSource) throws IOException {
determineAndSetExporter(getPDFAVersion(inputstreamToByteArray(pdfSource)));
return theExporter.load(pdfSource);
byte[] byteArray=inputstreamToByteArray(pdfSource);
determineAndSetExporter(getPDFAVersion(byteArray));
return theExporter.load(byteArray);
}
public IZUGFeRDExporter setCreator(String creator) {