CF2 图纸

将 CF2 转换为 PDF

Aspose.CAD for .NET 现在支持通用文件格式文件 (CF2)。 CF2 文件包含 3D 包装设计或其他模型数据。本文演示了如何使用 PdfOptions 将 CF2 文件转换为 PDF。

示例代码

请使用以下代码片段将 CF2 转换为 PDF。

// The path to the documents directory.
string MyDir = RunExamples.GetDataDir_ConvertingCFF();
using (Image image = Image.Load(MyDir + "WineBottle_Die.cf2"))
{
var options = new PdfOptions();
image.Save(MyDir + "WineBottle_Die_out.pdf",options);
}