CFF2 도면
Contents
[
Hide
]CF2를 PDF로 변환하기
Aspose.CAD for Java는 이제 공통 파일 형식 파일(CF2)을 지원합니다. CF2 파일에는 3D 패키지 디자인 또는 다른 모델 데이터가 포함되어 있습니다. 이 문서에서는 Aspose.CAD를 사용하여 CF2 파일을 PDF로 변환하는 방법을 보여줍니다.
CF2를 PDF로 변환하는 다음 코드 스니펫을 사용하십시오.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String dataDir = Utils.getDataDir(CFFToPDF.class) + "CFF/"; | |
// Path to source file | |
String sourceFilePath = dataDir+"WineBottle_Die.cf2"; | |
Image image = Image.load(sourceFilePath); | |
{ | |
PdfOptions options = new PdfOptions(); | |
image.save(dataDir + "WineBottle_Die_out.pdf",options); | |
} | |