diegomura / diegomura/react-pdf
Support SVG image element with objectFit, objectPosition
- Dominant language
- TypeScript
- Stars
- 16.8k
- Forks
- 1.3k
- Avg merge
- 5h 6m
- Merged PRs (30d)
- 52
Description
- I see an example in a closed issue: https://github.com/diegomura/react-pdf/issues/1428
- However, I have a use case where I set the backgroundSize/objectFit) and backgroundPosition/objectPosition to the background image.
- Like the screenshot below, I have a cross shape and the background image has backgroundSize/objectFit = 'contain' and backgroundPosition/objectPosition = 'left top'

I tried but I see it didn't work. I wonder if we can support these?
In the example (https://github.com/diegomura/react-pdf/issues/1428) I see we have to provide the `x` and `y` values in the Image component. Is there a way I don't have to use it?

Contributor guide
Assessment
This issue has not been assessed yet.