我的问题是,当我尝试为FreeText注释添加透明色时将它设置为strokeColor时,结果注释具有黑色边框。
我尝试这样编码:
this.addAnnot({ type: "FreeText", contents: "TEST", strokeColor: color.transparent, page: 0 });
结果是:
有没有办法将透明设置为注释的边框颜色?
[添加未记录的属性“ intent”,并将其设置为“ FreeTextTypewriter”。该属性更改页面外观的生成方式。
this.addAnnot({ type: "FreeText", contents: "TEST", page: 0 ,strokeColor: color.transparent, intent:"FreeTextTypewriter"});