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)
@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)
请分享您的环境,因为我现在无法重现异常。
@quanwp,
好的,我们无论如何都需要在我们这边重现它以进行测试和修复。 你的操作系统是什么? Aspose.CAD 版本是什么? 你能用这个文件创建一个简单的空项目,这样我们就可以运行并看到这个异常吗?