iTextSharp StyleSheet,可以对标签进行绝对定位吗? [英] iTextSharp StyleSheet, any way to do absolute positioning for a tag?
本文介绍了iTextSharp StyleSheet,可以对标签进行绝对定位吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我正在尝试使用iTextSharp来获取特定标签(当前为div,但可以更改该标签!)以在pdf中具有绝对位置.
唯一的问题是……我不知道该怎么做,或者甚至可能.我的代码可以很好地生成pdf,但是我不知道如何使用StyleSheet进行定位.
有人有代码示例吗?
问候
Hi guys,
I''m trying to get a particular tag (currently a div, but I can change that if necessary!) to have an absolute position in a pdf using iTextSharp.
Only problem is... I have no idea how to do it, or if it''s even possible. My code generates pdfs just fine, but I can''t work out how to use the StyleSheet for positioning.
Anyone got a code example?
Regards
推荐答案
找到了解决方法...
用于定位的表格.太可怕了,但是确实有效.
Found a workaround...
Used tables for the positioning. Horrible, but it worked.
这篇关于iTextSharp StyleSheet,可以对标签进行绝对定位吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文