RTL support when using Apache POI with openPdf#729
Conversation
kevinleturc
left a comment
There was a problem hiding this comment.
Could a test be added?
|
|
||
| // writing-mode | ||
| String writingMode = ele.getStyleWritingModeAttribute(); | ||
| if ( StringUtils.isNotEmpty( writingMode ) ){ |
There was a problem hiding this comment.
| if ( StringUtils.isNotEmpty( writingMode ) ){ | |
| if ( StringUtils.isNotEmpty( writingMode ) ) | |
| { |
|
|
||
| // writing-mode | ||
| String writingMode = ele.getStyleWritingModeAttribute(); | ||
| if ( StringUtils.isNotEmpty( writingMode ) ){ |
There was a problem hiding this comment.
| if ( StringUtils.isNotEmpty( writingMode ) ){ | |
| if ( StringUtils.isNotEmpty( writingMode ) ) | |
| { |
There was a problem hiding this comment.
Could you add a Copyright header like other files and a new line at the end of the file?
| @@ -0,0 +1,25 @@ | |||
| package fr.opensagres.poi.xwpf.converter.core.styles.table; | |||
There was a problem hiding this comment.
Could you add a Copyright header like other files and a new line at the end of the file?
| import fr.opensagres.poi.xwpf.converter.core.styles.paragraph.ParagraphRunDirectionProvider; | ||
| import fr.opensagres.poi.xwpf.converter.core.styles.table.TableRunDirectionValueProvider; |
There was a problem hiding this comment.
Could the import be moved next to other fr.opensagres and ordered?
| } | ||
|
|
||
| /*enabling bidirectional support*/ | ||
| public CTOnOff getParagraphRunDirection(XWPFParagraph docxParagraph) { |
There was a problem hiding this comment.
| public CTOnOff getParagraphRunDirection(XWPFParagraph docxParagraph) { | |
| public CTOnOff getParagraphRunDirection( XWPFParagraph docxParagraph ) | |
| { |
| } | ||
|
|
||
| /*enabling bidirectional support*/ | ||
| public CTOnOff getTableRunDirection(XWPFTable table ) |
There was a problem hiding this comment.
| public CTOnOff getTableRunDirection(XWPFTable table ) | |
| public CTOnOff getTableRunDirection( XWPFTable table ) |
| import java.util.Map; | ||
| import java.util.logging.Logger; | ||
|
|
||
| import com.lowagie.text.pdf.PdfWriter; |
There was a problem hiding this comment.
Could it be moved next to other com.lowagie and ordered?
| public String getWritingMode() { | ||
| return writingMode; | ||
| } | ||
|
|
||
| public void setWritingMode(String writingMode) { | ||
| this.writingMode = writingMode; | ||
| } |
There was a problem hiding this comment.
| public String getWritingMode() { | |
| return writingMode; | |
| } | |
| public void setWritingMode(String writingMode) { | |
| this.writingMode = writingMode; | |
| } | |
| public String getWritingMode() | |
| { | |
| return writingMode; | |
| } | |
| public void setWritingMode( String writingMode ) | |
| { | |
| this.writingMode = writingMode; | |
| } |
| // Support for writing mode i.e. LTR OR RTL | ||
| String writingMode = tableProperties.getWritingMode(); | ||
| if ( writingMode != null && writingMode.equals("rl-tb")) | ||
| { | ||
| // RTL | ||
| super.setRunDirection(PdfWriter.RUN_DIRECTION_RTL); | ||
| } |
There was a problem hiding this comment.
There's no else block compared to StylableParagraph, should it be added there?
No description provided.