原始需求:将word转成pdf,同时将word中各种类型的附件也转成pdf并拼接到后面。
遇到问题:遇到pdf格式的附件保存后存在许多乱码页
部分代码:
aspose-words: 24.11
aspose-cells: 25.1
OS: Oracle Linux Server 8.5
List<byte[]> attachmentPdfs = new ArrayList<>();
Document document = …... Extracting the raw stream avoids the extra header...mention a method to extract the raw PDF, so the next step is based...