CFF2 Drawings
Contents
[
Hide
]تبدیل CF2 به PDF
Aspose.CAD برای جاوا اکنون از فرمت فایل مشترک (CF2) پشتیبانی میکند. فایل CF2 شامل طراحیهای بسته سهبعدی یا دادههای مدل دیگری است. این مقاله نشان میدهد که چگونه میتوانید فایل CF2 را با استفاده از Aspose.CAD به 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); | |
} | |