Skip to content

Commit

Permalink
removed debug code and dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanrauh committed Aug 24, 2024
1 parent 220236b commit 726cebb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 deletions.
2 changes: 1 addition & 1 deletion web/ngx-extended-pdf-viewer-version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const ngxExtendedPdfViewerVersion = '21.3.2';
export const ngxExtendedPdfViewerVersion = '21.3.3';
27 changes: 0 additions & 27 deletions web/pdf_print_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,33 +96,6 @@ async function renderPage( // modified by ngx-extended-pdf-viewer #530
});
}

// modified (added) by ngx-extended-pdf-viewer #530
async function determineMaxDimensions() {
debugger;
if (PDFPrintService.maxWidth) {
return PDFPrintService.maxWidth;
}
const checklist = [
4096, // iOS
8192, // IE 9-10
10836, // Android
11180, // Firefox < 122, Android
11402, // Android,
14188, // Android
14188,
16384,
23168, // Firefox 122+
];
for (const width of checklist) {
const { success } = await canvasSize.test({ width, height: width });
if (!success) {
PDFPrintService.maxWidth = width;
return PDFPrintService.maxWidth;
}
}
return 23168;
}

class PDFPrintService {
constructor(
{
Expand Down

0 comments on commit 726cebb

Please sign in to comment.