IGES 図面

IGESをPDFにエクスポートする

Aspose.CAD for .NET は、開発者がIGESファイルをPDFにレンダリングすることを可能にします。以下は、IGESファイルにアクセスし、それをPDFに変換する方法を示すコードです:CadRasterizationOption および PdfOptions を使用しています。

サンプルコード

// The path to the documents directory.
string MyDir = RunExamples.GetDataDir_IGESDrawings();
string sourceFilePath = MyDir + "figa2.igs";
using (Image cadImage = Image.Load(sourceFilePath))
{
CadRasterizationOptions options = new CadRasterizationOptions
{
PageHeight = 1000,
PageWidth = 1000,
};
PdfOptions pdfOptions = new PdfOptions();
pdfOptions.VectorRasterizationOptions = options;
cadImage.Save(MyDir+ "figa2.pdf", pdfOptions);
}