Skip to content
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

add an objectFit parameter to the addImage method to be able to add an image to the PDF while preserving the aspect ratio #3694

Open
insinfo opened this issue Jan 22, 2024 · 2 comments

Comments

@insinfo
Copy link

insinfo commented Jan 22, 2024

add an objectFit parameter to the addImage method to be able to add an image to the PDF while preserving the aspect ratio, the parameter could accept the 'contain' and 'cover' options

https://gist.github.com/dmail/dda5adf57c8d66b73dd6
https://stackoverflow.com/questions/21961839/simulation-background-size-cover-in-canvas

Copy link

This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant.

@insinfo
Copy link
Author

insinfo commented Apr 23, 2024

This would be very useful for my use case, which is converting SVGs generated by the FabricJs lib to PDF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant