我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);
},
那么我如何lineBreak
在我的beforePageContent
块内使用。