• 2024-07-01springboot使用itextpdf+jfreechart制作PDF文档
    1.springboot引入的依赖组件项目中需要引入itextpdf和jfreechart两个组件,版本根据项目所需进行引入,maven组件版本查询可根据如下地址进行查询:maven组件查询<dependency><groupId>com.itextpdf</groupId><artifactId>itextpdf</artifactId><vers
  • 2023-10-25多格式转pdf——docx 转 pdf
    1publicstaticStringdocxToPdfConverter(StringdocxFilePath,StringpdfFilePath,StringfontPath)throwsException{2FileInputStreamfile=newFileInputStream(docxFilePath);3XWPFDocumentdocxDocument=newXWPFDocument(file)
  • 2023-10-25 多格式转pdf——md 转 pdf
    publicstaticStringmdToPdfConverter(StringmdFilePath,StringpdfFilePath,StringfontPath)throwsException{//创建Document对象Documentdocument=newDocument();//创建PdfWriter对象将文档写入文件PdfWriter.getInsta
  • 2023-10-25 多格式转pdf——doc 转 pdf
    publicstaticStringdocToPdfConverter(StringdocFilePath,StringpdfFilePath,StringfontPath)throwsException{FileInputStreamfile=newFileInputStream(docFilePath);HWPFDocumentdocDocument=newHWPFDocument(file);//