# convert2pdf-1 **Repository Path**: guo_wei99/convert2pdf-1 ## Basic Information - **Project Name**: convert2pdf-1 - **Description**: 用最少的代码,将word,excel,ppt转换成PDF - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-07-06 - **Last Updated**: 2021-10-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README //word转换为PDF
PDFConverter wordConverter = new PDF2WordConverter();
wordConverter.convert(new File("/x/111.docx"), new File("/x/111.pdf"));


//excel转换为PDF
PDFConverter excelConverter = new PDF2ExcelConverter();
excelConverter.convert(new File("/x/222.xlsx"), new File("/x/222.pdf"));


//ppt转换为PDF
PDFConverter pptConverter = new PDF2PPTConverter();
pptConverter.convert(new File("/x/333.pptx"), new File("/x/333.pdf"));

项目依赖的jar请到https://download.csdn.net/download/w757227129/10681394下载