ListGrid PDF export always ignores all special UTF8 and HTML characters and all inline images. Cells with such images and characters are shown as blank in the resulting pdf file.
1. SmartClient_v100p_2015-06-04_Evaluation
2. Browsers: FF and Chrome
3. No errors reported on the server side, no errors on the client side either.
4. Images reside at: webapp/images/ directory
5. Tech stack:
Server: Tomcat 7.0.27
JDK 1.7.07
6. getPrintHTML() works fine as returned HTML contains images and special characters.
This is clearly specific to utf8 and html characters, and also inline images since using formatCellValue() with data containing plain text and images results in texts being shown and images skipped in pdf.
7. The complete test case:
Please help. PDF export was the main reason for me to move from 8.3 to 10.0.
Thanks,
Gene
1. SmartClient_v100p_2015-06-04_Evaluation
2. Browsers: FF and Chrome
3. No errors reported on the server side, no errors on the client side either.
4. Images reside at: webapp/images/ directory
5. Tech stack:
Server: Tomcat 7.0.27
JDK 1.7.07
6. getPrintHTML() works fine as returned HTML contains images and special characters.
This is clearly specific to utf8 and html characters, and also inline images since using formatCellValue() with data containing plain text and images results in texts being shown and images skipped in pdf.
7. The complete test case:
Code:
//Test case isc.Window.create({ ID:"testWin",title:"Test",width:380,height:350,autoCenter:true,canDragResize:true, items:[ isc.ListGrid.create({ ID:"testGrid",width:"99%",height:"96%",alternateRecordStyles:true,baseStyle:"myBoxedGridCell", data:[ {img:"triangle.png",utf:"△",text:"testing"}, //The actual value here is this: & # 9651; {img:"triangle.png",utf:"\u25b3",text:"testing"} ], fields:[ {name:"img",title:"Icon",formatCellValue:function(value,record){ return "<img src=./images/triangle.png>"; }}, {name:"utf",title:"Special Char"}, //shown as blank in pdf in both cases: html encoding and utf8 {name:"text",title:"Text"} //Plain text appears correctly ] }) ,isc.IButton.create({title:"PDF Export",click:function(){ var settings = { skinName: "Enterprise", pdfName: "export" }; var html = testGrid.getPrintHTML(); isc.RPCManager.exportContent(html, settings); }}), ] });
Thanks,
Gene
Comment