Hi ,
I tried to write Arabic content to pdf file using
PdfWriter(document,FileoutPutStream), but when I opened the pdf file some of
lines is over another lines so it is unreadable.
Snippet :
PdfWriter.getInstance(document, new FileOutputStream("file.pdf");
document.open();
MultiColumnText mct = new MultiColumnText();
mct.addSimpleColumn(36, PageSize.A4.getWidth()-36);
mct.setRunDirection(PdfWriter.RUN_DIRECTION_RTL);
mct.addElement(newParagraph(lawInfo, Element.ALIGN_CENTER, new Font(bf,
22,Font.BOLD)));
mct.addElement(newParagraph(title, Element.ALIGN_CENTER, new Font(bf,20)));
document.add(mct);
document.close();
thanks in advance.
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php