jsPDF icon indicating copy to clipboard operation
jsPDF copied to clipboard

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

Open insinfo opened this issue 1 year ago • 5 comments
trafficstars

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

insinfo avatar Jan 22 '24 22:01 insinfo

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.

github-actions[bot] avatar Apr 22 '24 01:04 github-actions[bot]

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

insinfo avatar Apr 23 '24 16:04 insinfo