diff --git a/nuxeo-dlp-scanner-core/src/main/java/org/nuxeo/platform/scanner/dlp/google/GoogleRenditionProvider.java b/nuxeo-dlp-scanner-core/src/main/java/org/nuxeo/platform/scanner/dlp/google/GoogleRenditionProvider.java index 3884b46..36a667a 100644 --- a/nuxeo-dlp-scanner-core/src/main/java/org/nuxeo/platform/scanner/dlp/google/GoogleRenditionProvider.java +++ b/nuxeo-dlp-scanner-core/src/main/java/org/nuxeo/platform/scanner/dlp/google/GoogleRenditionProvider.java @@ -146,7 +146,7 @@ public int compare(Blob o1, Blob o2) { try { PDFMergerUtility ut = new PDFMergerUtility(); for (Blob blob : parts) { - ut.addSource(blob.getStream()); + ut.addSource(blob.getCloseableFile().getFile()); } return appendPDFs(ut, input.getBlob().getFilename()); } catch (IOException iox) { @@ -157,7 +157,7 @@ public int compare(Blob o1, Blob o2) { protected Blob appendPDFs(PDFMergerUtility ut, String filename) throws IOException { File tempFile = Framework.createTempFile("redacted_" + filename, ".pdf"); ut.setDestinationFileName(tempFile.getAbsolutePath()); - ut.mergeDocuments(); + ut.mergeDocuments(null); Blob fb = Blobs.createBlob(tempFile); Framework.trackFile(tempFile, fb); fb.setFilename(tempFile.getName());