2014-01-24 29 views
0

我想使用purepdf as3库在表格内绘制形状。我还没有在Google上找到任何示例代码。我想我应该使用模板来绘制矩形,然后将其添加到单元格中。PurePdf在表格单元格内绘制形状

 var template:PdfTemplate = cb.createTemplate(30, 30); 
     template.setLineWidth(.5); 
     template.rectangle(0,0,17,17); 
     template.stroke(); 

     cell.addElement(template); 

有人可以提出一些建议吗?

回答

0

你可以找到很多的例子here 看起来你正在寻找的是在此举例DrawingPaths

+0

我已经检查了所有的例子。这里的问题是我需要一种简单的方法在表格单元格内设计绘图。在itext中,我使用模板执行此操作。但是无法使用purepdf使其工作。 – Tropicalista

相关问题