1
OMRシートを作成しようとしています。そのためには以下のようなデザインが必要です。私はhtmlの& cssで作った。ItextSharpで中央揃えの円を作成する方法
しかしiTextSharpで、それはブラウザにhtmlとしては動作しません。
<td style="border-width:0 2px 0 4px; border-style:solid; border-color:white; padding:0 20px;">
<div style="height:17px; width:25px; padding:2px; float:left;">1</div>
<div style="height:17px; width:18px; padding:2px; margin:5px 2px; float:left; text-align:center; border-radius:50px; border:1px solid black;">A</div>
<div style="height:17px; width:18px; padding:2px; margin:5px 2px; float:left; text-align:center; border-radius:50px; border:1px solid black;">B</div>
<div style="height:17px; width:18px; padding:2px; margin:5px 2px; float:left; text-align:center; border-radius:50px; border:1px solid black;">C</div>
<div style="height:17px; width:18px; padding:2px; margin:5px 2px; float:left; text-align:center; border-radius:50px; border:1px solid black;">D</div>
</td>
ボーダー&ボーダー半径は
がどのように私はすべてのアイデアことを解決することができます動作しません。 おかげ
あなたのコードは表示されないため、使用しているiTextのバージョンを確認することはできません。これを動作させるには、iText 7 + pdfHTMLアドオンを使用する必要があります。ボーダーとボーダー半径が機能しないと主張する場合は、古いバージョンを使用している可能性があります。 –
@BrunoLowagieはい私はiText 5を使用しています。 –