pdf-lib icon indicating copy to clipboard operation
pdf-lib copied to clipboard

Reopen #223 : Despite the explainations, the coordinates system really is wrong.

Open Sharcoux opened this issue 4 years ago • 0 comments

You can check this. You will see that the origin is correctly placed at the bottom-left of the page, but the y axis is not looking upwards as you can see in the example where you need to remove pageHeight to get the correct coordinates.

The coordinates in the usual page system should be calculated with: y => pageHeight - y and not y => y - pageHeight

I'll try to fix.

Sharcoux avatar Mar 12 '21 15:03 Sharcoux