Fix Issue #90: PDF/A-3 conversion missing in ZUGFeRDExporter.export(OutputStream output)

This commit is contained in:
Tarik Osman
2019-06-18 14:04:40 +02:00
parent 0aee3cbdd9
commit 896866dbbf
2 changed files with 45 additions and 2 deletions

View File

@@ -354,7 +354,10 @@ public class ZUGFeRDExporter implements Closeable {
}
public void export(OutputStream output) throws IOException {
if (!fileAttached) {
if (!documentPrepared) {
prepareDocument();
}
if ((!fileAttached) && (attachZUGFeRDHeaders)) {
throw new IOException(
"File must be attached (usually with PDFattachZugferdFile) before perfoming this operation");
}