簡體   English   中英

從右至左寫的段落

[英]Paragraph written from right to left

有沒有辦法告訴iText段落內容從右向左書寫?

我知道可以用ColumnText或表來完成,但是我需要在一個段落中(可以寫多個頁面)。

這只是一個例子。

Document document = new Document(PageSize.A1.rotate(), 20, 20, 20, 20);
document.addTitle("YourReport");
PdfWriter writer = PdfWriter.getInstance(document,
        new FileOutputStream("c:\\ITextTest.pdf"));
document.open();            
Paragraph TitleHeading = new Paragraph(targetFileName);
TitleHeading.setAlignment(writer.RUN_DIRECTION_RTL);            
document.add(TitleHeading);

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM