itext - Itexpdf PdfContentByte special character -




i'm using itextpdf 5.

how can add special characters document via pdfcontentbyte ?

there code :

 public void addflag(pdfwriter writer, basefont basefont, font font) {         string mytext = "my flag : \u2691";         pdfcontentbyte cb = writer.getdirectcontent();         cb.setfontandsize(basefont, font.getsize());         cb.begintext();         cb.showtextaligned(element.align_left, mytext, 10, 50, 0f);         cb.endtext();         cb.stroke();     } 





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -