# java-pdf-demo **Repository Path**: Hardy_1995/java-pdf-demo ## Basic Information - **Project Name**: java-pdf-demo - **Description**: Java使用html生成pdf文件,用于导出打印等场景。使用spring boot+thymeleaf+openhtmltopdf实现 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-07-21 - **Last Updated**: 2021-03-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Java生成PDF 使用`spring boot+Thymeleaf+openhtmltopdf`实现,项目中已经集成宋体,支持中文显示。 更多使用方法请参考 [openhtmltopdf文档](https://github.com/danfickle/openhtmltopdf/wiki/Integration-Guide) ### 原理 使用Thymeleaf模板引擎,动态生成html,再使用openhtmltopdf将html转化为pdf。 * [Thymeleaf](https://docs.spring.io/spring-boot/docs/2.2.1.RELEASE/reference/htmlsingle/#boot-features-spring-mvc-template-engines) * [openhtmltopdf](https://github.com/danfickle/openhtmltopdf)