Samael - 2024-08-09

I've done some testing of this on my fork: https://github.com/singingBush/barcode4j

The EAN128LogicImpl.java will add brackets itself by default unless you use <barcode:omit-brackets>true</barcode:omit-brackets> so perhaps what's needed here is:

<fo:instream-foreign-object>
    <barcode:barcode
        xmlns:barcode="http://barcode4j.krysalis.org/ns"
        message="{$message}" orientation="0">
        <barcode:ean-128>
            <barcode:height>18mm</barcode:height>
            <barcode:module-width>0.43mm</barcode:module-width>
            <barcode:human-readable>
                <barcode:pattern font-size="20pt">(__) _______ __________ ___</barcode:pattern>
                <barcode:omit-brackets>true</barcode:omit-brackets>
            </barcode:human-readable>
        </barcode:ean-128>
    </barcode:barcode>
</fo:instream-foreign-object>

I tested locally and I was able to get an expected result