diff --git a/app/src/main/java/at/tomtasche/reader/background/PdfLoader.java b/app/src/main/java/at/tomtasche/reader/background/PdfLoader.java index bef90c11941f..2d1a2ae26018 100644 --- a/app/src/main/java/at/tomtasche/reader/background/PdfLoader.java +++ b/app/src/main/java/at/tomtasche/reader/background/PdfLoader.java @@ -47,7 +47,9 @@ public void loadSync(Options options) { File cacheDirectory = AndroidFileCache.getCacheDirectory(cacheFile); pdf2htmlEX pdfConverter = new pdf2htmlEX(context).setInputPDF(cacheFile); - pdfConverter.setOutline(false).setBackgroundFormat("jpg").setDRM(false); + pdfConverter.setProcessOutline(false); + pdfConverter.setBackgroundImageFormat(pdf2htmlEX.BackgroundImageFormat.JPG); + pdfConverter.setDRM(false); pdfConverter.setProcessAnnotation(true); if (options.password != null) { pdfConverter.setOwnerPassword(options.password).setUserPassword(options.password);