نقشه‌های 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);
}