如何解决如何在Java中从无边界的iText进行pdf导出?
我的任务是将atm的pdf文件导出到页面边框。 借助iText 7和附加的pdfHTML,我得到了一个pdf文档,但是实现了标准边框。
有人知道如何取消设置默认边框吗?
这是我的小代码:
public class Main_Generate_PDF {
public static void main (String[] args) throws IOException {
// IO
File htmlSource = new File("src/main/resources/pdf/html/pdf.html");
File pdfDest = new File("src/test/resources/pdf/test.pdf");
// pdfHTML specific code
ConverterProperties converterProperties = new ConverterProperties();
HtmlConverter.convertToPdf(new FileInputStream(htmlSource),new FileOutputStream(pdfDest),converterProperties);
}
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。