Skip to content

Commit

Permalink
Merge pull request #993 from QuentinChaumont/fix/#992-issue
Browse files Browse the repository at this point in the history
fix #992 : fix rotation on pdf with included rotation
  • Loading branch information
VadimDez authored Apr 16, 2023
2 parents 1ab1a51 + 75d3b8e commit 32a222b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/pdf-viewer/pdf-viewer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export class PdfViewerComponent
.pipe(takeUntil(this.destroy$))
.subscribe({
next: (page: PDFPageProxy) => {
const rotation = this._rotation || page.rotate;
const rotation = this._rotation + page.rotate;
const viewportWidth =
(page as any).getViewport({
scale: this._zoom,
Expand Down

0 comments on commit 32a222b

Please sign in to comment.