رسومات IGES

تصدير IGES إلى PDF

يسمح Aspose.CAD لـ .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);
}