pdfme icon indicating copy to clipboard operation
pdfme copied to clipboard

Rotating a thick-bordered rectangle yields different PDF and UI renderings.

Open hand-dot opened this issue 2 years ago • 1 comments

Describe the bug

Rotating a rectangle with a thick border results in a different rendering outcome in PDF compared to the UI rendering result. (There might be an issue with the Line schema.)

CleanShot 2023-12-19 at 22 03 36

ref: https://github.com/pdfme/pdfme/pull/375

To Reproduce

Load bellow template on the playground and generate PDF template.json

Expected behavior

Same rendering result ui and generator

Your Environment

- pdfme package(@pdfme/generator or @pdfme/ui): @pdfme/generator, @pdfme/ui
- pdfme version: latest
- Operating system: macOS
- Node.js version or Browser name & version: Node V20

Your Error Log

none

Additional context

No response

hand-dot avatar Dec 19 '23 13:12 hand-dot

I understand the issue and can open a PR for this, it maybe related to how node interprets the rotation. I've tested a few things. I'll post my findings as a comment in the PR

gnpaone avatar Feb 03 '25 04:02 gnpaone