PdfFormat class
PdfFormat class
Adobe’s Portable Document Format
Inheritance: PdfFormat →
FileFormat
The PdfFormat type exposes the following members:
Properties
| Property | Description |
|---|---|
| version | Gets file format version |
| can_export | Gets whether Aspose.3D supports export scene to current file format. |
| can_import | Gets whether Aspose.3D supports import scene from current file format. |
| extension | Gets the extension name of this type. |
| extensions | Gets the extension names of this type. |
| content_type | Gets file format content type |
| file_format_type | Gets file format type |
| FBX6100ASCII | ASCII FBX file format, with 6.1.0 version |
| FBX6100_BINARY | Binary FBX file format, with 6.1.0 version |
| FBX7200ASCII | ASCII FBX file format, with 7.2.0 version |
| FBX7200_BINARY | Binary FBX file format, with 7.2.0 version |
| FBX7300ASCII | ASCII FBX file format, with 7.3.0 version |
| FBX7300_BINARY | Binary FBX file format, with 7.3.0 version |
| FBX7400ASCII | ASCII FBX file format, with 7.4.0 version |
| FBX7400_BINARY | Binary FBX file format, with 7.4.0 version |
| FBX7500ASCII | ASCII FBX file format, with 7.5.0 version |
| FBX7500_BINARY | Binary FBX file format, with 7.5.0 version |
| FBX7600ASCII | ASCII FBX file format, with 7.6.0 version |
| FBX7600_BINARY | Binary FBX file format, with 7.6.0 version |
| FBX7700ASCII | ASCII FBX file format, with 7.7.0 version |
| FBX7700_BINARY | Binary FBX file format, with 7.7.0 version |
| MAYA_ASCII | Autodesk Maya in ASCII format |
| MAYA_BINARY | Autodesk Maya in Binary format |
| STL_BINARY | Binary STL file format |
| STLASCII | ASCII STL file format |
| WAVEFRONT_OBJ | Wavefront’s Obj file format |
| DISCREET_3DS | 3D Studio’s file format |
| COLLADA | Collada file format |
| UNIVERSAL_3D | Universal3D file format |
| GLTF | Khronos Group’s glTF |
| GLTF2 | Khronos Group’s glTF version 2.0 |
| GLTF_BINARY | Khronos Group’s glTF in Binary format |
| GLTF2_BINARY | Khronos Group’s glTF version 2.0 |
| Adobe’s Portable Document Format | |
| BLENDER | Blender’s 3D file format |
| DXF | AutoCAD DXF |
| PLY | Polygon File Format or Stanford Triangle Format |
| X_BINARY | DirectX X File in binary format |
| X_TEXT | DirectX X File in binary format |
| DRACO | Google Draco Mesh |
| MICROSOFT_3MF | Microsoft 3D Manufacturing Format |
| RVM_TEXT | AVEVA Plant Design Management System Model in text format |
| RVM_BINARY | AVEVA Plant Design Management System Model in binary format |
| ASE | 3D Studio Max’s ASCII Scene Exporter format. |
| IFC | ISO 16739-1 Industry Foundation Classes data model. |
| SIEMENS_JT8 | Siemens JT File Version 8 |
| SIEMENS_JT9 | Siemens JT File Version 9 |
| AMF | Additive manufacturing file format |
| VRML | The Virtual Reality Modeling Language |
| ASPOSE_3D_WEB | Aspose.3D Web format. |
| HTML5 | HTML5 File |
| ZIP | Zip archive that contains other 3d file format. |
| USD | Universal Scene Description |
| USDA | Universal Scene Description in ASCII format. |
| USDZ | Compressed Universal Scene Description |
| XYZ | Xyz point cloud file |
| PCD | PCL Point Cloud Data file in ASCII mode |
| PCD_BINARY | PCL Point Cloud Data file in Binary mode |
Methods
| Method | Description |
|---|---|
detect(, stream, file_name) | Detect the file format from data stream, file name is optional for guessing types that has no magic header. |
detect(, file_name) | Detect the file format from file name, file must be readable so Aspose.3D can detect the file format through file header. |
extract(self, file_name, password) | Extract raw 3D content from PDF file. |
extract(self, stream, password) | Extract raw 3D content from PDF stream. |
extract_scene(self, file_name) | Extract 3D scenes from PDF file. |
extract_scene(self, file_name, password) | Extract 3D scenes from PDF file. |
extract_scene(self, stream, password) | Extract raw 3D content from PDF stream. |
get_format_by_extension(, extension_name) | Gets the preferred file format from the file extension name The extension name should starts with a dot(’.’). |
create_load_options(self) | Create a default load options for this file format |
create_save_options(self) | Create a default save options for this file format |
Example
The following code shows how to extract all supported 3D scenes from a 3D PDF file, and write them to obj format.
from aspose.threed import FileFormat
scenes = FileFormat.PDF.extract_scene("input.pdf")
for i in range(len(scenes)):
scenes[i].save(f"output-{i}.obj")
See Also
- module
aspose.threed.formats - class
FileFormat - class
PdfFormat