我在将PPT转换成PDF的时候,PPT文件中有个附件,转出来的名字是乱码

我有一个PPT文件,里面有个excel的附件。我在把这个PPT转换成PDF时,里面这个excel附件的名字变成了乱码。我看提问这里不允许上传ppt格式,那我就发转出来的pdf文件吧。
6f9667af18e1484e8bf8c1cda5dac033.pdf (51.9 KB)

@Maiden,
感谢您联系支持。

您可以将文件压缩成一个存档并上传到这里,或者分享文件存储(Google Drive、Dropbox等)中的链接。请分享以下附加文件和信息:

  • 示例演示文件
  • 能够重现问题的代码示例
  • 执行代码的操作系统版本
  • 您应用程序中使用的JDK版本
  • 您使用的Aspose.Slides版本

test.zip (129.8 KB)

1、操作系统:windows 10
2、jdk版本:1.8
3、aspose.slides版本:23.10
4、aspose.pdf 23.7
5、代码示例

    com.aspose.slides.License aposeLic = new com.aspose.slides.License();
    aposeLic.setLicense(license);

    if (slicingInfo.isNeedEncode()) {
        //解码后转化为PDF文件
        sourceInputStream = new ByteArrayInputStream(SM4Utils.decryptFileReadOnly(sourceFilePath));
    } else {
        sourceInputStream = new FileInputStream(sourceFilePath);
    }
    com.aspose.slides.LoadOptions options = new com.aspose.slides.LoadOptions(LoadFormat.Auto);
    options.setDefaultRegularFont("Arial");
    options.setDefaultAsianFont("Arial");
    options.setDefaultSymbolFont("Arial");
    if (!StringUtils.isEmpty(slicingInfo.getPassword())) {
        //com.aspose.slides.LoadOptions options = new com.aspose.slides.LoadOptions();
        options.setPassword(slicingInfo.getPassword());
        pres = new Presentation(sourceInputStream, options);
    } else {
        pres = new Presentation(sourceInputStream, options);
    }
    PdfOptions pdfOptions = new PdfOptions();
    pdfOptions.setSaveMetafilesAsPng(true);
    pdfOptions.setTextCompression(PdfTextCompression.None);
    pdfOptions.setCompliance(com.aspose.slides.PdfCompliance.Pdf15);
    pres.save(convertPdfFileOut, com.aspose.slides.SaveFormat.Pdf);
    // 释放PdfOptions对象,防止内存一直被占用
    pres.dispose();

@Maiden,
感谢提供额外的信息。请注意我这边 PowerPoint 中显示的文件名。PowerPoint.png (130.1 KB)

您能分享一张截图,显示在您的 PowerPoint 中它是如何显示的吗?

image.png (61.3 KB)

image.png (120.4 KB)

@Maiden,
您是否可以告诉我,在PowerPoint中看到文件名与您的相同,需要采取哪些步骤?

不需要哪些步骤,我前面不是把ppt压缩上传了吗?那份ppt我打开附件名称就是中文正常的,我用的Office 2013

@Maiden,
请告诉我您打开 PowerPoint 的操作系统中设置了哪些地区设置和语言?

设置的地区是中国,设置的语言是中文

@Maiden,
我们在内部问题跟踪系统中打开了以下新的工单,并将根据 Free Support Policies 中提到的条款提供其修复。

Issue ID(s): SLIDESJAVA-39372

如果您需要优先获得支持,以及直接访问我们的付费支持管理团队,您可以获取 Paid Support Services

能否告知一下你们用的什么版本的powerpoint,以及操作系统中的地区和语言设置

@Maiden,
很抱歉,我无法提供您所需的信息。我们将尽力解决您的问题。

@Maiden,
The issues you found earlier (filed as SLIDESJAVA-39372) have been fixed in Aspose.Slides for Java 24.3 (JAR).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.