aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorab <abdullah_ahmed@brown.edu>2019-06-28 15:12:49 -0400
committerab <abdullah_ahmed@brown.edu>2019-06-28 15:12:49 -0400
commitb3e48e581db1067d3f92b6c547ff78d988f0aa56 (patch)
tree7ab99d6c40224270f4264c4a5134a7ff0c5654f7 /src
parent09042b933c843d24a715e8c58414976133b19e41 (diff)
quick change
Diffstat (limited to 'src')
-rw-r--r--src/client/views/pdf/PDFViewer.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx
index a440a1f27..0cc81d469 100644
--- a/src/client/views/pdf/PDFViewer.tsx
+++ b/src/client/views/pdf/PDFViewer.tsx
@@ -194,8 +194,8 @@ class Viewer extends React.Component<IViewerProps> {
// this._textContent = Array<Pdfjs.TextContent>(this.props.pdf.numPages);
for (let i = 0; i < this.props.pdf.numPages; i++) {
await this.props.pdf.getPage(i + 1).then(page => runInAction(() => {
- // pageSizes[i] = { width: page.view[2] * scale, height: page.view[3] * scale };
- let x = page.getViewport(scale);
+ pageSizes[i] = { width: page.view[2] * scale, height: page.view[3] * scale };
+ // let x = page.getViewport(scale);
// page.getTextContent().then((text: Pdfjs.TextContent) => {
// // let tc = new Pdfjs.TextContentItem()
// // let tc = {str: }
@@ -204,7 +204,7 @@ class Viewer extends React.Component<IViewerProps> {
// // tcStr += t.str;
// // })
// });
- pageSizes[i] = { width: x.width, height: x.height };
+ // pageSizes[i] = { width: x.width, height: x.height };
}));
}
runInAction(() =>