gpt4 book ai didi

jspdf - 如何删除 jsPDF 中的单元格填充?

转载 作者:行者123 更新时间:2023-12-05 07:19:30 25 4
gpt4 key购买 nike

在 jsPDF 中使用 .cell 时如何删除填充?

我到处都看了,文档很模糊

this.pdf = new jsPDF();
this.pdf.cell(0, 0, 10, 10, "cell cell cell cell cell cell cell");
this.pdf.cell(10, 0, 10, 10, cell cell cell cell cell cell cell);

enter image description here

最佳答案

我找到了解决方案。

如果您首先使用填充 0 调用表函数,则所有单元格调用都使用填充 0 加载:

this.pdf = new jsPDF();
this.pdf.table(0,0,[],[],{padding: 0,})
this.pdf.cell(0, 0, 10, 10, "cell cell cell cell cell cell cell");
this.pdf.cell(10, 0, 10, 10, cell cell cell cell cell cell cell);

这对我有用。

关于jspdf - 如何删除 jsPDF 中的单元格填充?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57763466/

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