- 博客(0)
- 资源 (2)
- 收藏
- 关注
icepdf-6.3.2-(亲测可用).zip
好用给我个好评;
icepdf打开pdf文件,解决乱码问题;
新人积分少,需要的速度;
并附有解决水印的链接;
https://blog.youkuaiyun.com/u012789329/article/details/84872922
2020-04-16
icepdf-6.3.zip
icepdf转图片,解决中文乱码和图片无法转换的错误。附上源码
public class PDFViewer {
public JFrame frame;
public String pdf;
public PDFViewer(String pdf) {
this.pdf = pdf;
initialize();
}
private void initialize() {
frame = new JFrame();
frame.setSize(1100, 1000);
frame.setLocationRelativeTo(null);
frame.getContentPane().setLayout(null);
SwingController controller = new SwingController();
SwingViewBuilder factory = new SwingViewBuilder(controller);
JPanel viewerComponentPanel = factory.buildViewerPanel();
controller.getDocumentViewController().setAnnotationCallback(
new MyAnnotationCallback(
controller.getDocumentViewController()));
controller.openDocument(pdf);
frame.setContentPane(viewerComponentPanel);
}
}
2020-04-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人