- 博客(0)
- 资源 (1)
- 收藏
- 关注
java html转pdf
java html转pdf,pd4ml-370fx2pro.jar
PD4ML pdf = new PD4ML();
FileOutputStream outFile = new FileOutputStream(desFile);
Insets insets = new Insets(10, 20, 10, 20);
pdf.setPageInsetsMM(insets);
pdf.enableImgSplit(false);
pdf.generateOutlines(true);
pdf.protectPhysicalUnitDimensions();
pdf.useTTF("java:fonts", true);
pdf.setDefaultTTFs("Wryh", "Arial", "Times New Roman");
pdf.render(new StringReader(htmlInfo.toString()), outFile
2021-05-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人