Gambar CFF2

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.

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