Gambar CFF2
Contents
[
Hide
]Mengonversi CF2 ke PDF
Aspose.CAD untuk Java sekarang mendukung Common File Format File (CF2). File CF2 berisi desain paket 3D atau data model lainnya. Artikel ini menunjukkan cara Anda dapat mengonversi file CF2 ke PDF menggunakan Aspose.CAD.
Silakan gunakan cuplikan kode berikut untuk mengonversi CF2 ke 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); | |
} | |