J'essaie de créer une feuille OMR. Pour cela besoin d'un design comme ci-dessous. J'ai fait en html & css.Comment créer un cercle avec le texte central dans ItextSharp
mais iTextSharp il ne fonctionne pas comme HTML dans le navigateur.
<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>
frontière & border-radius ne fonctionnent pas
Comment puis-je résoudre que toute idée. Merci
Vous ne montrez pas votre code, il est donc impossible de voir quelle version d'iText vous utilisez. Vous devriez utiliser iText 7 + l'add-on pdfHTML si vous voulez que cela fonctionne. Si vous prétendez que border et border-radius ne fonctionnent pas, vous utilisez probablement une ancienne version. –
@BrunoLowagie oui J'utilise iText 5. –