FBX Drawings
Contents
[
Hide
]Exporting FBX Format To PDF
Aspose.CAD for Python allows developers to export an FBX file to PDF format. FBX to PDF conversion approach works as follows:
- Load FBX drawing file using the Image.load factory method.
- Create an object of the CadRasterizationOptions class and set the PageHeight & PageWidth properties.
- Create an object of the PdfOptions class and set the vector_rasterization_options property.
- Call Image.save while passing an object of PdfOptions as the second parameter.
Sample Code
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.fbx"); | |
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) |