react-to-pdf
react-to-pdf copied to clipboard
add imageFormat prop to support jpeg or png
png is sharper on small docs like labels
Thanks for this @charleskoehl and sorry the delay. Could you include some images samples showing the difference, just to better understand why to customize this? Does affect the size as well?
@charleskoehl I think you have an error. You restrict the types to "pdf" and jpeg but in the other places you have "png"
https://github.com/ivmarcos/react-to-pdf/pull/43/commits/fe2919872b53741f1af0646a210c39797af85f80 https://github.com/ivmarcos/react-to-pdf/pull/43/commits/a84476a2d77af1907c10490965c415d7870085fe
Thanks for this! Closing due to the release of v1.0.1
supporting image format prop using the canvas attributes, please refer to the advanced options example in https://github.com/ivmarcos/react-to-pdf#usage.