gpt4 book ai didi

pdfmake - 线,圆和其他形状?

转载 作者:行者123 更新时间:2023-12-04 09:59:27 33 4
gpt4 key购买 nike

可以用pdfmake绘制linescirclesother shapes吗?如果是,是否有documentation或样本?我想用jsPDF替换pdfmake

最佳答案

是的,有可能。 pdfmake称它们为向量。看
pdfMake Vector examples提供更多可能性。

绘制线条后接多边形的示例:

{
canvas:
[
{
type: 'line',
x1: 40, y1: 60,
x2: 260, y2: 60,
lineWidth: 3
},
{
type: 'polyline',
lineWidth: 3,
closePath: true,
points: [{ x: 10, y: 10}, { x: 35, y: 40 }, { x: 100, y: 40 }, { x: 125, y:10 }]
}
]
}

关于pdfmake - 线,圆和其他形状?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30672667/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com