I'm wondering if anyone knows a hack or a way around setting a border-radius in PDFMake.
I have an image which I plan to have to a border-radius of about 4px.
{
image: 'sampleImage.jpg',
width: 150,
height: 150,
},
There's no documentation for such.
You can try to make it static.
{
canvas: [
{
type: 'rect',
x: 0,
y: 0,
w: 154,
h: 154,
r: 75,
lineColor: 'black',
},
],
}
And add a position for your item:
absolutePosition: {x: 45, y: 50}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.