CF2 Drawings
Contents
[
Hide
]
Convert CF2 to PDF
Aspose.CAD for Python now supports Common File Format File (CF2). CF2 file contains 3D package designs or other model data. This article demonstrates how you can convert the CF2 file to PDF using PdfOptions.
Sample Code
Please use the following code snippet to convert CF2 to PDF.
This file contains 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
import aspose.cad as cad; | |
cadImage = cad.Image.load("file.cf2"); | |
rasterizationOptions = cad.imageoptions.CadRasterizationOptions(); | |
rasterizationOptions.page_width = 1200 | |
rasterizationOptions.page_height = 1200 | |
pdfOptions = cad.imageoptions.PdfOptions(); | |
pdfOptions.vector_rasterization_options = rasterizationOptions; | |
cadImage.save("result.pdf", pdfOptions) |