diff --git a/de.urszeidler.fop.help/META-INF/MANIFEST.MF b/de.urszeidler.fop.help/META-INF/MANIFEST.MF index af0624c1..de652575 100644 --- a/de.urszeidler.fop.help/META-INF/MANIFEST.MF +++ b/de.urszeidler.fop.help/META-INF/MANIFEST.MF @@ -10,6 +10,7 @@ Export-Package: org.apache.batik.transcoder, org.apache.fop.svg, org.apache.pdfbox, org.apache.pdfbox.cos, + org.apache.pdfbox.io, org.apache.pdfbox.multipdf, org.apache.pdfbox.pdmodel, org.apache.pdfbox.pdmodel.common, diff --git a/de.urszeidler.shr5.ecp/src/de/urszeidler/shr5/ecp/views/SourceBookView.java b/de.urszeidler.shr5.ecp/src/de/urszeidler/shr5/ecp/views/SourceBookView.java index e838190f..e66223e5 100644 --- a/de.urszeidler.shr5.ecp/src/de/urszeidler/shr5/ecp/views/SourceBookView.java +++ b/de.urszeidler.shr5.ecp/src/de/urszeidler/shr5/ecp/views/SourceBookView.java @@ -9,6 +9,7 @@ import java.util.HashSet; import java.util.Map; +import org.apache.pdfbox.io.RandomAccessReadBufferedFile; import org.apache.pdfbox.pdmodel.PDDocument; import org.apache.pdfbox.text.PDFTextStripper; import org.eclipse.core.databinding.DataBindingContext; @@ -477,7 +478,7 @@ private PDDocument getpdfDoc(final File file, IProgressMonitor monitor) throws I monitor.setTaskName("load ..." + file.getName()); try { - pdDocument = org.apache.pdfbox.Loader.loadPDF(file); + pdDocument = org.apache.pdfbox.Loader.loadPDF(new RandomAccessReadBufferedFile(file)); if (pdDocument.isEncrypted()) { monitor.setTaskName("decrypt ..."); // pdDocument.decrypt("");