DWG输出到PDF时报错

DWG文件输出成PDF时报如下错误:
class com.aspose.cad.cadexceptions.ImageSaveException: Image saving failed. —] class com.aspose.cad.cadexceptions.ImageSaveException: Image export failed. Cannot read a name from the name table in a font. Debug info: platformID 1, encodingID 4, languageID 12, nameID 0, length 70, offset 698 —] class com.aspose.cad.internal.Exceptions.InvalidOperationException: Cannot read a name from the name table in a font. Debug info: platformID 1, encodingID 4, languageID 12, nameID 0, length 70, offset 698
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)

@quanwp,
你好。
您能否在此处附上您使用的初始 DWG 和代码示例,以便我们可以在我们这边进行复制?

@Oleksii.Gorokhovatskyi
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
rasterizationOptions.setBackgroundColor(Color.getWhite());
rasterizationOptions.setPageWidth(1600);
rasterizationOptions.setPageHeight(1600);

    // Create an instance of PdfOptions
    PdfOptions pdfOptions = new PdfOptions();
    // Set the VectorRasterizationOptions property
    pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
    cadImage.save("/tmp/Bottom_plate_out_.pdf", pdfOptions);

testDWG2010.dwg.zip (14.8 KB)

@quanwp
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-10949

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.

@quanwp,
这是我在 2011 年 22 月 22 日发布的最新 Java 版本的结果。 我看不到上面提到的部分文本和创建的任务来覆盖它。

testDWG2010.dwg_java_.pdf (104.2 KB)

请分享您的环境,因为我现在无法重现异常。

@oleksii.gorokhovatskyi
单独一个测试程序可以正确的转换成pdf文件,但引入到我们的应用中进行转换时就报这个错误。

@quanwp,
好的,我们无论如何都需要在我们这边重现它以进行测试和修复。 你的操作系统是什么? Aspose.CAD 版本是什么? 你能用这个文件创建一个简单的空项目,这样我们就可以运行并看到这个异常吗?

@oleksii.gorokhovatskyi
您好!我发现只要在单元测试中执行就会报这个错误。

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