| | |
| | | * 设置用户字体位置 |
| | | */ |
| | | public static void setFont() { |
| | | String[] fonts = {"C:\\Users\\大头\\AppData\\Local\\Microsoft\\Windows\\Fonts\\", "C:\\Users\\datou\\AppData\\Local\\Microsoft\\Windows\\Fonts\\", "/usr/share/fonts"}; |
| | | String[] fonts = {"C:\\Windows\\Fonts", "C:\\Users\\datou\\AppData\\Local\\Microsoft\\Windows\\Fonts\\", "/usr/share/fonts"}; |
| | | List<FontSourceBase> fontSources = new ArrayList(Arrays.asList(FontSettings.getDefaultInstance().getFontsSources())); |
| | | for (int i = 0; i < fonts.length; i++) { |
| | | FolderFontSource folderFontSource = new FolderFontSource(fonts[i], true); |
| | |
| | | |
| | | public static void main(String[] args) { |
| | | //convertPDF("D:\\测评系统\\home\\林_PAQ_GS_TH.docx"); |
| | | convertPDF("C:\\Users\\大头\\Desktop\\林3_CIAQ_IA_CN.docx"); |
| | | convertPDF("C:\\Users\\mac\\Desktop\\API_Fan_IA_CN.docx"); |
| | | } |
| | | |
| | | } |