เอกสาร CFF2
Contents
[
Hide
]แปลง CF2 เป็น PDF
Aspose.CAD สำหรับ Java ตอนนี้รองรับ Common File Format File (CF2) ไฟล์ CF2 ประกอบด้วยการออกแบบแพ็คเกจ 3D หรือข้อมูลโมเดลอื่น ๆ บทความนี้แสดงให้เห็นว่าคุณสามารถแปลงไฟล์ CF2 เป็น PDF โดยใช้ Aspose.CAD ได้อย่างไร
โปรดใช้โค้ดตัวอย่างด้านล่างเพื่อแปลง 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); | |
} | |