将文字放在图像上? [英] Put text on top of an image?

查看:124
本文介绍了将文字放在图像上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在pdf中插入图像,然后在特定坐标处将图像放在图像顶部。

I would need to insert images in a pdf and then put text on top of the image at certain coordinates.

用iTextSharp可以吗?

Is this possible with iTextSharp?

推荐答案

是的,你可以。

关键是设置 iTextSharp.text.Image 对齐属性 iTextSharp.text.Image.UNDERLYING

mikesdotnetting.com上的这个页面有一个例子。

This page on mikesdotnetting.com has an example.

这篇关于将文字放在图像上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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