Closed Inambe closed 5 months ago
I'm trying to draw an Image on an existing PDF document.
code is pretty simple and taken from the docs:
sixthPage.drawImage(chartImage, { x: 144, y: pageHeight - 298, height: 160, width: 160, });
The drawn image has a border around it which I can't control apparently.
I expect no border at all or a way to control it (so I can hide it).
If you draw image on any pdf (I've four of these).
1.17.1
Node
I do not understand PDFs very much so any help is appreciated.
I'm sorry, apparently, it's my image's issue. The browser preview of image doesn't show the border so you can understand my confusion.
What were you trying to do?
I'm trying to draw an Image on an existing PDF document.
How did you attempt to do it?
code is pretty simple and taken from the docs:
What actually happened?
The drawn image has a border around it which I can't control apparently.
What did you expect to happen?
I expect no border at all or a way to control it (so I can hide it).
How can we reproduce the issue?
If you draw image on any pdf (I've four of these).
Version
1.17.1
What environment are you running pdf-lib in?
Node
Checklist
Additional Notes
I do not understand PDFs very much so any help is appreciated.