同时使用不同包下的证书会导致文件提前结束

代码如下:

            License asposeLic = new License();
            asposeLic.setLicense(LICENSE);

            FileInputStream fstream = null;
            fstream = new FileInputStream(mFilePath);
            MailMessage eml = MailMessage.load(fstream);

            //Save the Message to output stream in MHTML format
            ByteArrayOutputStream emlStream = new ByteArrayOutputStream();
            eml.save(emlStream, SaveOptions.getDefaultMhtml());

            com.aspose.words.License asposeLicw = new com.aspose.words.License();
            asposeLicw.setLicense(LICENSE);

            //Load the stream in Word document
            LoadOptions lo = new LoadOptions();
            lo.setLoadFormat(LoadFormat.MHTML);
            Document doc = new Document(new ByteArrayInputStream(emlStream.toByteArray()), lo);

            doc.save(mTargetPath, SaveFormat.PDF);

@vitali,

请给我们您的源EML文件和有问题的行为的细节。我们将与您调查并分享我们的调查结果。等待你的回应。

Best Regards,
Imran Rafique

感谢你的回应,这个问题已经解决,谢谢

@vitali,

谢谢你的确认。

我们很高兴听到您的问题得到解决。 请继续使用我们的API,如有任何进一步的查询,请随时联系。