如何在iText 5.2.1中添加标题? [英] How to add header in iText 5.2.1?

查看:483
本文介绍了如何在iText 5.2.1中添加标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用iText 5.2.1并且我已经创建了Document对象。

I use iText 5.2.1 and I have already created Document object.

这样:

document.addHeader("hello");

为什么我看不到PDF文件中的标题?

Why don't I see the header on the PDF File?

推荐答案

使用页面事件。 StackOverflow上已经提供了许多好的答案,例如这个另一个

Use Page Events. Many good answers have been provided already on StackOverflow, for example this one, or this other one.

这篇关于如何在iText 5.2.1中添加标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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