【发布时间】:2012-07-30 19:18:14
【问题描述】:
在这个例子中:
Document document=new Document();
PdfWriter.getInstance(document,new FileOutputStream("hello.pdf"));
document.open();
Paragraph paragraph = new Paragraph();
paragraph.add(new Chunk("Hello ");
paragraph.add(new Chunk("world");
paragraph.add(new Chunk(" in");
paragraph.add(new Chunk(" iText 2.7.1");
document.add(paragraph);
document.close();
如何获取第二块“世界”页面的绝对位置、宽度和高度?换句话说,就是用户空间的边界框。
【问题讨论】:
-
never 是 iText 的 2.7.1 版本。你是说2.1.7吗?
-
现在在文本中更正为 2.1.7。谢谢亚历克西斯。
标签: pdf-generation itext