IGES 도면

IGES를 PDF로 내보내기

Aspose.CAD for .NET은 개발자가 IGES 파일을 PDF로 렌더링할 수 있도록 합니다. 다음은 IGES 파일에 액세스하고 CadRasterizationOption 및 PdfOptions를 사용하여 PDF로 변환하는 방법을 보여주는 코드입니다.

샘플 코드

// 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);
}