Skip to content

Commit

Permalink
HotFix from Fork in Description
Browse files Browse the repository at this point in the history
  • Loading branch information
zamvar authored Oct 25, 2021
1 parent 048226d commit efa92b7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ private String getPage(String filePath, int pageNumber) {

PdfRenderer.Page page = renderer.openPage(--pageNumber);

double width = instance.activity().getResources().getDisplayMetrics().densityDpi * page.getWidth();
double height = instance.activity().getResources().getDisplayMetrics().densityDpi * page.getHeight();
double width = instance.context().getResources().getDisplayMetrics().densityDpi * page.getWidth();
double height = instance.context().getResources().getDisplayMetrics().densityDpi * page.getHeight();
final double docRatio = width / height;

width = 2048;
Expand Down

0 comments on commit efa92b7

Please sign in to comment.