Page 1 of 1

How to implement this kind of table?

Posted: Tue Feb 18, 2025 8:34 am
by liyan
Hi I came across an issue. I want to insert this kind of table, see the following figure but I don't know how to do that. Image

Re: How to implement this kind of table?

Posted: Wed Feb 19, 2025 12:26 pm
by julien_lacour
Hello,

Oxygen PDF Chemistry doesn't support split cells, but you can insert an SVG image to render this:

Code: Select all

<table frame="all" rowsep="1" colsep="1" id="table_ztm_52q_k2c">
    <tgroup cols="3">
        <colspec colnum="1" colname="c1" colwidth="1*"/>
        <colspec colnum="2" colname="c2" colwidth="5*"/>
        <colspec colnum="3" colname="c3" colwidth="7*"/>
        <thead>
            <row>
                <entry morerows="1">No.</entry>
                <entry>Items</entry>
                <entry>Index</entry>
            </row>
            <row>
                <entry>
                    <svg-container>
                        <svg:svg width="225" height="38" viewBox="0 0 225 38">
                            <svg:line x1="0" y1="0" x2="225" y2="38" stroke="black" stroke-width="1"/>
                            <svg:text x="5" y="35" font-size="10pt" font-family="Roboto, sans-serif" font-weight="bold">Test items</svg:text>
                            <svg:text x="135" y="15" font-size="10pt" font-family="Roboto, sans-serif" font-weight="bold">Voltage level</svg:text>
                        </svg:svg>
                    </svg-container>
                </entry>
                <entry>35KV and below</entry>
            </row>
        </thead>
        <tbody>
            <row>
                <entry>1</entry>
                <entry>Breakdown voltage. KV / 2.5mm</entry>
                <entry>45</entry>
            </row>
            <row>
                <entry>2</entry>
                <entry>Dielectric loss factor (90° C)</entry>
                <entry>4</entry>
            </row>
            <row>
                <entry>3</entry>
                <entry>Water content in oil, mg / L</entry>
                <entry>-</entry>
            </row>
            <row>
                <entry>4</entry>
                <entry>Gas content in oil, % (volume fraction)</entry>
                <entry>-</entry>
            </row>
        </tbody>
    </tgroup>
</table>
Regards,
Julien

Re: How to implement this kind of table?

Posted: Thu Feb 20, 2025 10:49 am
by liyan
Okay. Thank you very much!!!!