Skip to content

Commit

Permalink
Fix loading of PDDocument
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiante committed May 27, 2024
1 parent 9cc6720 commit 55a2beb
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import one.squeeze.pdftools.app.scale.IScaler;
import one.squeeze.pdftools.app.scale.NoopScaler;
import one.squeeze.pdftools.app.scale.Scaler;
import org.apache.pdfbox.Loader;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;
import org.apache.pdfbox.pdmodel.PDPageTree;
Expand Down Expand Up @@ -53,7 +52,7 @@ public Integer call() throws Exception {
}

private static void fix(File input, File output) throws IOException {
try (PDDocument pdf = Loader.loadPDF(input)) {
try (PDDocument pdf = PDDocument.load(input)) {
PDPageTree tree = pdf.getPages();

for (PDPage page : tree) {
Expand Down

0 comments on commit 55a2beb

Please sign in to comment.