Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我尝试读取 HTML 文件(使用 HTMLWorker.parseToList)并使用 document.add(element) 创建 PDF 文档时,结果页面的大小正在调整。最初设置的页面大小被覆盖,页面似乎正在调整自身大小以适应传入的组件。我想知道有什么办法可以控制吗?我注意到 PdfPTable 没有 scaletofit 可用。如何调整 PdfPTable 的大小?
我想我必须撤回这个问题,因为我看到图书馆工作正常。我对 A4 和 Letter 大小感到困惑。“A4 和 US letter 尺寸在尺寸上非常相似,可以使用相同的方式。A4 尺寸比 US letter 尺寸更薄且更长 US letter 尺寸比 A4 尺寸更宽且更短”