This commit is contained in:
linfso 2024-07-28 17:05:03 +08:00
parent fc5b32bdfb
commit e789d20abd

View File

@ -2336,11 +2336,11 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
ByteArrayOutputStream bos = new ByteArrayOutputStream();
// 写入流
template.write(bos);
// template.write(outputStream);
// template.write(bos);
template.write(outputStream);
ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
DocUtils.wordToPdf(bis, outputStream);
// ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
// DocUtils.wordToPdf(bis, outputStream);
response.flushBuffer();