diff --git a/src/app/pdf-viewer/pdf-viewer.component.ts b/src/app/pdf-viewer/pdf-viewer.component.ts index e3cdb1e03..b719f5b71 100644 --- a/src/app/pdf-viewer/pdf-viewer.component.ts +++ b/src/app/pdf-viewer/pdf-viewer.component.ts @@ -342,7 +342,10 @@ export class PdfViewerComponent (this._fitToPage && viewport.width > this.element.nativeElement.offsetWidth) ) { - scale = this.getScale((page as any).getViewport({ scale: 1 }).width); + scale = this.getScale( + (page as any).getViewport({ scale: 1, rotation: this._rotation }) + .width + ); stickToPage = !this._stickToPage; }