Ela*_*ene 5 javascript pdfmake
我想知道是否有人知道在 PDFMake 中设置边框半径的技巧或方法。
我有一张图像,我计划将其边框半径设置为大约 4px。
{
image: 'sampleImage.jpg',
width: 150,
height: 150,
},
Run Code Online (Sandbox Code Playgroud)
没有这样的文档。
小智 0
您可以尝试将其设为静态。
{
canvas: [
{
type: 'rect',
x: 0,
y: 0,
w: 154,
h: 154,
r: 75,
lineColor: 'black',
},
],
}
Run Code Online (Sandbox Code Playgroud)
并为您的项目添加一个位置:
absolutePosition: {x: 45, y: 50}
Run Code Online (Sandbox Code Playgroud)