第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

documents4j 轉(zhuǎn)換為 pdf 沒(méi)有 Microsoft word 就不能工作?

documents4j 轉(zhuǎn)換為 pdf 沒(méi)有 Microsoft word 就不能工作?

慕沐林林 2023-04-26 15:01:41
我想用 documents4j 將 docx 文件轉(zhuǎn)換為 pdf,但我不想使用 MS word有沒(méi)有其他解決方案?我使用 Apache poi 但它在波斯語(yǔ)中無(wú)法正常工作public static void main(String[] args) throws IOException, ExecutionException, InterruptedException {    ByteArrayOutputStream bo = new ByteArrayOutputStream();    InputStream in = new BufferedInputStream(new FileInputStream("d:\\c.docx"));    IConverter converter = LocalConverter.builder()            .baseFolder(new File("D:\\a"))            .workerPool(20, 25, 2, TimeUnit.SECONDS)            .processTimeout(5, TimeUnit.SECONDS)            .build();    Future<Boolean> conversion = converter            .convert(in).as(DocumentType.MS_WORD)            .to(bo).as(DocumentType.PDF)            .prioritizeWith(1000) // optional            .schedule();    conversion.get();    try (OutputStream outputStream = new FileOutputStream("D:\\c.pdf")) {        bo.writeTo(outputStream);    } catch (IOException e) {        e.printStackTrace();    }    in.close();    bo.close();}}
查看完整描述

1 回答

?
千萬(wàn)里不及你

TA貢獻(xiàn)1784條經(jīng)驗(yàn) 獲得超9個(gè)贊

documents4j 是一個(gè)通過(guò)橋梁將文檔轉(zhuǎn)換為 MS Word 的工具。不幸的是,如果您沒(méi)有運(yùn)行實(shí)例,這將不起作用。



查看完整回答
反對(duì) 回復(fù) 2023-04-26
  • 1 回答
  • 0 關(guān)注
  • 603 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)