gpt4 book ai didi

java - 如何在 iText 5.2.1 中添加页眉?

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:13:04 26 4
gpt4 key购买 nike

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

像这样:

document.addHeader("hello");

为什么我在 PDF 文件上看不到标题?

最佳答案

使用页面事件。 StackOverflow 上已经提供了许多好的答案,例如 this one , 或 this other one .

关于java - 如何在 iText 5.2.1 中添加页眉?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11117154/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com