Skip to content

Commit b95cc3c

Browse files
834573: updated missed changes
1 parent 36fbdbb commit b95cc3c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

How to/Library Bounds to Viewer Bounds/src/app/app.component.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,6 @@ export class AppComponent implements OnInit {
6868
// Converting PDF Library values into PDF Viewer values.
6969
const rect = {
7070
x: (parseInt(data.rect.x) * 96) / 72,
71-
72-
// Converting pageHeight from pixels(PDF Viewer) to points(PDF Library) for accurate positioning
73-
// The conversion factor of 72/96 is used to change pixel values to points
7471
y: (parseInt(pageHeight) - parseInt(data.rect.height)) * 96 / 72,
7572
width: (parseInt(data.rect.width) - parseInt(data.rect.x)) * 96 / 72,
7673
height: (parseInt(data.rect.height) - parseInt(data.rect.y)) * 96 / 72,

0 commit comments

Comments
 (0)