在iTextSharp中选中Mark [英] Check Mark in iTextSharp

查看:100
本文介绍了在iTextSharp中选中Mark的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个pdf。我想要一些文本,并在文本旁边一个复选标记。有没有人知道如何做到这一点?

I am building a pdf. I would like to have some text and next to the text a check mark. Does anyone have an idea as to how to do this?

谢谢

推荐答案

一种方法是创建复选标记的PNG,加载图像并将其绘制在文本旁边。我做了很多次类似的事情,但没有专门针对iTextSharp。这是一个iText 示例,可以帮助您入门。

One way is to create a PNG of a check mark, load the image and draw it next to your text. I've done something similar many times but not specifically with iTextSharp. Here is an iText example to get you started though.

这篇关于在iTextSharp中选中Mark的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆