| | |
| | | </properties> |
| | | |
| | | <dependencies> |
| | | <dependency> |
| | | <groupId>com.jacob</groupId> |
| | | <artifactId>jacob</artifactId> |
| | | <version>1.19</version> |
| | | <scope>system</scope> |
| | | <!--本地的jacob.jar的路径--> |
| | | <systemPath>${project.basedir}/lib/jacob.jar</systemPath> |
| | | </dependency> |
| | | <!-- Spring Boot --> |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | |
| | | <version>1.0.0-SNAPSHOT</version> |
| | | </dependency> |
| | | <!--jacob依赖--> |
| | | <dependency> |
| | | <groupId>com.jacob</groupId> |
| | | <artifactId>jacob</artifactId> |
| | | <version>1.19</version> |
| | | <scope>system</scope> |
| | | <!--本地的jacob.jar的路径--> |
| | | <systemPath>${project.basedir}/lib/jacob.jar</systemPath> |
| | | </dependency> |
| | | </dependencies> |
| | | <properties> |
| | | <maven.compiler.source>8</maven.compiler.source> |
| | |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | String inputExcelPath = "D:\\3.xlsx"; |
| | | String outputPdfPath = "D:\\33.pdf"; |
| | | String inputExcelPath = "D:\\4.xlsx"; |
| | | String outputPdfPath = "D:\\44.pdf"; |
| | | |
| | | excelToPdf(inputExcelPath, outputPdfPath); |
| | | } |
| | |
| | | # application:git |
| | | # name: doumeemes |
| | | profiles: |
| | | active: dev |
| | | active: pro |
| | | |
| | | # JSON返回配置 |
| | | jackson: |