We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36fbdbb commit b95cc3cCopy full SHA for b95cc3c
How to/Library Bounds to Viewer Bounds/src/app/app.component.ts
@@ -68,9 +68,6 @@ export class AppComponent implements OnInit {
68
// Converting PDF Library values into PDF Viewer values.
69
const rect = {
70
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
74
y: (parseInt(pageHeight) - parseInt(data.rect.height)) * 96 / 72,
75
width: (parseInt(data.rect.width) - parseInt(data.rect.x)) * 96 / 72,
76
height: (parseInt(data.rect.height) - parseInt(data.rect.y)) * 96 / 72,
0 commit comments