I'm using the free version of spire.xls and pdf.. It is a very powerfull tool!
I've noticed a weird behavior when converting xls/xlsx files to pdf/png with RTL cells..
For example -
a text like -
אחד 123XLS
shoule have the hebrew word - אחד
on its RIGHT when marking it as READING ORDER RTL
this is my code -
- Code: Select all
workbook.loadFromFile("C:\\Projects\\bartikun\\example.xlsx");
workbook.getConverterSetting().setSheetFitToPage(true);
workbook.getActiveSheet().isRightToLeft(true);
workbook.getActiveSheet().getCellRange("A1").getStyle().setReadingOrder(ReadingOrderType.RightToLeft);
workbook.getActiveSheet().saveToImage("C:\\Projects\\bartikun\\example.png");
workbook.getActiveSheet().saveToPdf("C:\\Projects\\bartikun\\example.pdf");
I have attached the pdf and png. both have the hebrew letters on the left side - as of setting LTR and not RTL..
It seems like the file conversion cant apply the RTL setting :S
Edited:
May be related to
e-iceblue .com/forum/xsl-to-pdf-issues-t9736.html
Thank you,
Yariv