Skip to content

Commit

Permalink
fix PdfLoader after pdf2htmlEx bump
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Apr 27, 2024
1 parent 4fa637a commit ed69989
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ed69989

Please sign in to comment.