תרשימי 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);
}