File openrtf-openpdf141.patch of Package openrtf
--- OpenRTF-1.2.1/src/main/java/com/lowagie/text/rtf/headerfooter/RtfHeaderFooter.java 2024-05-21 16:17:30.250524200 +0200
+++ OpenRTF-1.2.1/src/main/java/com/lowagie/text/rtf/headerfooter/RtfHeaderFooter.java 2024-05-21 16:20:20.524782127 +0200
@@ -52,6 +52,7 @@
import java.io.IOException;
import java.io.OutputStream;
+import com.lowagie.text.alignment.HorizontalAlignment;
import com.lowagie.text.DocWriter;
import com.lowagie.text.DocumentException;
import com.lowagie.text.Element;
@@ -378,7 +379,7 @@
if (o instanceof Paragraph) {
((Paragraph) o).setAlignment(alignment);
} else if (o instanceof Table) {
- ((Table) o).setAlignment(alignment);
+ ((Table) o).setHorizontalAlignment(HorizontalAlignment.of(alignment).orElse(HorizontalAlignment.UNDEFINED));
} else if (o instanceof Image) {
((Image) o).setAlignment(alignment);
}