我在我的程序中使用了
但这并没有反映在
overFlow : linebreak
。它运行良好,这是我的代码:
styles: {
fillStyle: 'DF',
overflow: 'linebreak',
columnWidth: 110,
lineWidth: 2,
lineColor: [85, 51, 27]
}
beforePageContent
中,下面是代码:
beforePageContent: function(data) {
doc.setFontSize(12);
doc.setFont("courier");
doc.text("Process Name :",20 ,15);
doc.setFontStyle('bold');
//doc.overflow('linebreak');
doc.setFontStyle('normal');
doc.text("Description :"+sampData, 20, 30);
},
那么我如何在beforePageContent
块中使用lineBreak
呢?