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.
我想使用 iText 库将在我的程序中创建的文档(由 JPanel、JTextAreas、JLabels 等制成)导出为 pdf。
我将在 iText 中手动重新创建文档的整体外观,这就是我遇到问题的地方。
为了使它们达到 1:1 的比例,我将在编写代码时直观地比较两者,硬编码任何间距、高度等。
但是,我想知道在 MiG 中使用哪个单元,这样当有人以不同的分辨率运行我的程序时,不会得到不同的结果。
想法?