xsl-fo

XSL-FO: displaying Arabic characters

萝らか妹 提交于 2021-01-03 05:52:15
问题 Please, I have a problem displaying the Arabic language in my reports generated in PDF format using the api fop 1.0 (XSL-FO). I configured a userConfig.xml for using Arial.ttf font. everything works fine except that characters are displayed separately. example: ت ق و ل instead of تقول I put spaces only to explain to you. <fo:block-container font-size="12pt" writing-mode="rl-tb" xml:lang="ar" font-family="Arial" xmlns:fo="http://www.w3.org/1999/XSL/Format" > <fo:block> تقول </fo:block> </fo

is there any way to start my Arabic text from right to left when export as PDF

一世执手 提交于 2021-01-01 00:02:52
问题 I am using Apache FOP 2.2 to Export as PDF. I want my arabic text to start from right to left. If i give text alignment as Right all characters are going to right end of the screen which is causing alignment issue in my pdf. Code: <fo:block font-size="2.5mm" font-weight="bold" text-align="left" white-space="normal" margin="1.5mm" xsl:use-attribute-sets="CustomStyles-ar"> الآن لحضورHarishالمؤتمر </fo:block> Arabic text should start from right to left instead it is starting from left to right:

How to set Javax.xml.transform.TransformerFactory system property

笑着哭i 提交于 2020-06-27 16:01:05
问题 I am using javax.xml.transform.Transform to convert an xml file to a PDF. This works fine on its own, but some part of the project is using Xalan, which implements its own TransformerFactory, and something in there doesn't work with Cyrillic. I have found at https://xml.apache.org/xalan-j/usagepatterns.html that there is a property which is used to define the used factory : TransformerFactory is an abstract class with a static newInstance() method that instantiates the concrete subclass

How to match <sup>value</sup> in XSL-FO

北战南征 提交于 2020-03-06 04:10:11
问题 I'm using xsl-fo and trying to style xref content within a <sup> eg I want to make the 2 superscript. <sup id="FNB-0002"><xref href="#Comp_CLJONLINE_CLJ_2010_04_2/FN-0002">2</xref></sup> I am using the following code which I think should work. <xsl:template match="sup[@id='*']"> <fo:inline font-size="24pt" font-weight="bold" text-indent="2em" text-transform="uppercase" > <xsl:apply-templates/> </fo:inline> </xsl:template> But none of the styles I am applying are being recognised. I'm

How to match <sup>value</sup> in XSL-FO

那年仲夏 提交于 2020-03-06 04:09:51
问题 I'm using xsl-fo and trying to style xref content within a <sup> eg I want to make the 2 superscript. <sup id="FNB-0002"><xref href="#Comp_CLJONLINE_CLJ_2010_04_2/FN-0002">2</xref></sup> I am using the following code which I think should work. <xsl:template match="sup[@id='*']"> <fo:inline font-size="24pt" font-weight="bold" text-indent="2em" text-transform="uppercase" > <xsl:apply-templates/> </fo:inline> </xsl:template> But none of the styles I am applying are being recognised. I'm

How to match <sup>value</sup> in XSL-FO

此生再无相见时 提交于 2020-03-06 04:09:15
问题 I'm using xsl-fo and trying to style xref content within a <sup> eg I want to make the 2 superscript. <sup id="FNB-0002"><xref href="#Comp_CLJONLINE_CLJ_2010_04_2/FN-0002">2</xref></sup> I am using the following code which I think should work. <xsl:template match="sup[@id='*']"> <fo:inline font-size="24pt" font-weight="bold" text-indent="2em" text-transform="uppercase" > <xsl:apply-templates/> </fo:inline> </xsl:template> But none of the styles I am applying are being recognised. I'm

Need instream-foreign-object and text to both align to the bottom in XSL-FO

折月煮酒 提交于 2020-02-25 11:53:22
问题 I have an XSL-FO stylesheet that is used for generating a barcode with a piece of description text immediately after it. When I run it through the Ibex FO application, the text properly lines up with the bottom of the barcode. When I run it through Apache FOP (it's an older version 0.3x... I CAN'T change this), the text lines up with the TOP of the barcode (I need it to work the same in both). I'm really hoping there is some workaround here. This is what I have: <xsl:template match="barcode">