Skip to content

Commit

Permalink
Fix pdfbox API change
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelva committed Dec 18, 2024
1 parent 6d4e5dc commit 89c7cee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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());
Expand Down

0 comments on commit 89c7cee

Please sign in to comment.