Skip to content

Commit ed69989

Browse files
committed
fix PdfLoader after pdf2htmlEx bump
1 parent 4fa637a commit ed69989

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/src/main/java/at/tomtasche/reader/background/PdfLoader.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ public void loadSync(Options options) {
4747
File cacheDirectory = AndroidFileCache.getCacheDirectory(cacheFile);
4848

4949
pdf2htmlEX pdfConverter = new pdf2htmlEX(context).setInputPDF(cacheFile);
50-
pdfConverter.setOutline(false).setBackgroundFormat("jpg").setDRM(false);
50+
pdfConverter.setProcessOutline(false);
51+
pdfConverter.setBackgroundImageFormat(pdf2htmlEX.BackgroundImageFormat.JPG);
52+
pdfConverter.setDRM(false);
5153
pdfConverter.setProcessAnnotation(true);
5254
if (options.password != null) {
5355
pdfConverter.setOwnerPassword(options.password).setUserPassword(options.password);

0 commit comments

Comments
 (0)