• 2024-10-12检测字体文件中不支持哪些字符字形;传入一段文字内容,返回字体包不支持的字符
    constpackage=require('../package');constfs=require('fs');constopentype=require('opentype.js');functionfindUnsupportedChars(fontPath,text){constfont=opentype.loadSync(fontPath);constunsupportedCha
  • 2024-01-29Pdfium.Net.Free 一个免费的Pdfium的 .net包装器--创建字符子集
    项目地址:Pdfium.Net:https://github.com/1000374/Pdfium.NetPdfiumViewer:https://github.com/1000374/PdfiumViewerPdfium.Net.Free一个免费的Pdfium的.net包装器--加载字体 接上篇,怎么创建字符子集呢?获取字符集内的字形符号需要引用wpf下PresentationCore.dll,根据比对传入
  • 2023-10-25多格式转pdf——txt转pdf
    1publicstaticStringtxtToPdfConverter(StringtxtFilePath,StringpdfFilePath,StringfontPath)throwsException{2//创建Document对象3Documentdocument=newDocument();4//创建PdfWriter对象将文档写入文件5P
  • 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);//