-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draw Border around images #765
Comments
You can get the image dimensions like this:
|
alafr, I don't see doc.openImage in the PdfKit API for PDFDocument. I tried and didn't work |
It works in the browser demo. The
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dear @devongovett
thanks for the fantastic library!
My Question is:
I am currently trying to add a border to images - so I searched for something like widthOfImage / heighOfImage to get the dimensions of placed / included images within the document that get placed like that:
doc.image( 'image.png', 20, 30, { fit: [400, 300], align: 'center' } );
is there a way to get the image dimensions in order to use them to draw a rectangle over the image or another way to add borders?
Best,
Marco.
The text was updated successfully, but these errors were encountered: