You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use the official demo to render this PDF file, the first page is much smaller than other pages. The screenshot is below:
My question is , Is there any ways that I can render all pages in a same size (width)? I have tried to change all PDFPageView objects' width attribute into a same value for all pages in viewer.js , but it doen't work. Does any one has any suggestions about this? Thanks a lot!
The text was updated successfully, but these errors were encountered:
I am having the same issue here, whatevet the scale chosen:
let pdfPageView = new PDFJS.PDFPageView({
container: this.viewerPlaceholder.nativeElement,
id: pageIndex,
scale: 1.0,
defaultViewport: pdfPage.getViewport(1.0),
// we can enable text/annotations layers, if needed
// textLayerFactory: new PDFJS.DefaultTextLayerFactory(),
// annotationLayerFactory: new PDFJS.DefaultAnnotationLayerFactory()
})
pdfPageView.setPdfPage(pdfPage)
let task = pdfPageView.draw()
// then call other pages to be rendered in a loop...
Link to PDF file (or attach file here):
Linux+Bible+2010.pdf
When I use the official demo to render this PDF file, the first page is much smaller than other pages. The screenshot is below:
My question is , Is there any ways that I can render all pages in a same size (width)? I have tried to change all PDFPageView objects' width attribute into a same value for all pages in viewer.js , but it doen't work. Does any one has any suggestions about this? Thanks a lot!
The text was updated successfully, but these errors were encountered: