Working with OBJ File Format
Contents
[
Hide
]Aspose.CAD now supports the OBJ file format. The OBJ file format is a 3D geometry that contains texture maps, 3D coordinates, polygonal faces, and other object information.
Convert OBJ to PDF
Using Aspose.CAD for Python you can convert the OBJ file to PDF. Please use the following code snippets to convert OBJ 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.obj"); | |
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) |