如何在文档定义pdfmake的内容中添加✓复选标记作为文本



我需要在我的pdf中添加复选标记(✓(。以下是我的文档定义的代码。我正在 Ionic 4 中创建 pdf

this.right='✓';

 content: [
          {//2
            text: this.right,
            absolutePosition: { x: 340, y: 100 },
            fontSize: 6
          }]

其中this.right表示复选标记符号(✓

(。

尝试添加内容属性。例如:

<style>
ul.tickedList li:before {
 content: '✓';
    color: #18ba9b;
    font-size: 24px;
    font-weight: 600;
}
</style>

最新更新