Dwg文件转换为pdf文件时报错

os:ubuntu 20.04
jdk8

maven dependency
junit:junit:jar:4.12:compile

cn.hutool
hutool-all
5.8.9


org.projectlombok
lombok
1.18.20
true
provided

import cn.hutool.core.io.FileUtil;
import cn.hutool.core.io.file.FileNameUtil;
import com.aspose.cad.Image;
import com.aspose.cad.imageoptions.CadRasterizationOptions;
import com.aspose.cad.imageoptions.PdfOptions;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;

import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;

@Slf4j
public class WaysToGetThumbnailTest {

@Test
 public void replicateProblem(){
     String filePath = "/home/Downloads/screenshot/panoramic-elevator.dwg";
     byte[] src = FileUtil.readBytes(filePath);
     try (ByteArrayInputStream bais = new ByteArrayInputStream(src, 0, src.length);
          Image image = Image.load(bais);
     ) {
         CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
         rasterizationOptions.setPageWidth(1200);
         rasterizationOptions.setPageHeight(1200);

         PdfOptions options = new PdfOptions();
         options.setVectorRasterizationOptions(rasterizationOptions);

         image.save("/home/Downloads/screenshot/target/save.pdf",options);
     } catch (IOException e) {
         log.error("An IOException encountered while rasterizing CAD file ", e);
     }
 }
}

Error message:
class com.aspose.cad.internal.Exceptions.InvalidOperationException: Cannot read a name from the name table in a font. Debug info: platformID 1, encodingID 20, languageID 0, nameID 1, length 15, offset 923
com.aspose.cad.internal.b.d.a(Unknown Source)
com.aspose.cad.Image.b(Unknown Source)
com.aspose.cad.Image.saveInternal_internalized(Unknown Source)
com.aspose.cad.Image.save(Unknown Source)

@yezinong,
你好。
请指定您看到的错误并附上您的 dwg 文件,以便我们重现该问题。

panoramic-elevator.dwg.zip (98.6 KB)

@yezinong
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CADJAVA-10951

You can obtain Paid Support services if you need support on a priority basis, along with the direct access to our Paid Support management team.

经过我多次试验发现,只要在单元测试中跑代码,就会报上面的错误,不在单元测试中跑代码,就可以成功

@yezinong,
谢谢,我们会调查这个问题。