IcePDF 查看器自定义帮助
我正在尝试将 ICEpdf 查看器集成到现有的 Java Swing 应用程序中。要求是我要去掉顶部和底部的工具栏以及滚动条,我已经做到了。问题是我也不希望它在 pdf 文档周围有灰色区域。我希望它在应用程序上纯粹显示为白页。有谁知道如何实现这一目标?
提前致谢, 麦克风
I am trying to integrate ICEpdf viewer into an existing Java Swing application. The requirements are that I want to eliminate the top and bottom tool bars and the scroll bar, which I have already done. The problem is that I also don't want it to have that gray area around the pdf document. I want it to show up purely as a white page on the application. Does anyone know how to achieve this?
Thanks in advance,
Mike
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
找到了答案。在ice pdf源码的SwingController类中,有一个名为setPageFitMode()的函数。
Found the answer. In the SwingController class of ice pdf source, there is a function called setPageFitMode().
我不熟悉 ICEpdf,但我
没有看到周围有灰色区域这个示例。也许它可以提供一些指导。这是问题所在吗?I'm unfamiliar with ICEpdf, but I
don'tsee a gray area around this example.Perhaps it might offer some guidance.Is that the problem?