将CAD文件导出为PDF-3D
Contents
[
Hide
]将CAD导出为包含3D内容的PDF
PDF-3D 是一个包含3D几何体的PDF文件。使用任何PDF-3D查看器,可以在3D视图中进行旋转、缩放和选择细节。它通常用于协作、共享和文档编制。就像常规的可移植文档格式(PDF)文件一样,3D对象出现在PDF-3D文件的页面上。
Aspose.CAD 允许您创建包含3D内容的PDF文件。您可以将CAD文件转换为PDF-3D。
示例代码:
要将您的3D图纸转换为PDF-3D,您需要执行示例中的代码,同时在PDF转换参数中指定Is3DContent参数
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Image img = Image.Load(inputFile); | |
var options = new PdfOptions | |
{ | |
Is3DContent = true, | |
VectorRasterizationOptions = new CadRasterizationOptions | |
{ | |
PageHeight = 1600, | |
PageWidth = 1600 | |
} | |
}; | |
img.Save("result.pdf", options); |
包含3D内容的PDF文件
带有3D内容的PDF文件的外观示例,以及旋转和缩放的演示。
Aspose.CAD for .NET 资源
以下是一些您可能需要以完成任务的有用资源链接。