PdfFormat.ExtractScene
Contents
[
Hide
]ExtractScene(string)
Extract 3D scenes from PDF file.
public List<Scene> ExtractScene(string fileName)
Parameter | Type | Description |
---|---|---|
fileName | String | File name of input PDF file |
Return Value
List of decoded 3D scenes that supported by Aspose.3D
Examples
The following code shows how to extract all supported 3D scenes from a 3D PDF file, and write them to obj format.
var scenes = FileFormat.PDF.ExtractScene("input.pdf");
for(int i = 0; i < scenes.Count; i++)
{
scenes[i].Save($"output-{i}.obj");
}
See Also
- class Scene
- class PdfFormat
- namespace Aspose.ThreeD.Formats
- assembly Aspose.3D
ExtractScene(string, byte[])
Extract 3D scenes from PDF file.
public List<Scene> ExtractScene(string fileName, byte[] password)
Parameter | Type | Description |
---|---|---|
fileName | String | File name of input PDF file |
password | Byte[] | Password of the PDF file |
Return Value
List of decoded 3D scenes that supported by Aspose.3D
Examples
The following code shows how to extract all supported 3D scenes from a 3D PDF file, and write them to obj format.
var scenes = FileFormat.PDF.ExtractScene("input.pdf");
for(int i = 0; i < scenes.Count; i++)
{
scenes[i].Save($"output-{i}.obj");
}
See Also
- class Scene
- class PdfFormat
- namespace Aspose.ThreeD.Formats
- assembly Aspose.3D
ExtractScene(Stream, byte[])
Extract raw 3D content from PDF stream.
public List<Scene> ExtractScene(Stream stream, byte[] password = null)
Parameter | Type | Description |
---|---|---|
stream | Stream | Stream of input PDF file |
password | Byte[] | Password of the PDF file |
Return Value
List of decoded 3D scenes that supported by Aspose.3D
Examples
The following code shows how to extract all supported 3D scenes from a 3D PDF file, and write them to obj format.
var scenes = FileFormat.PDF.ExtractScene("input.pdf");
for(int i = 0; i < scenes.Count; i++)
{
scenes[i].Save($"output-{i}.obj");
}
See Also
- class Scene
- class PdfFormat
- namespace Aspose.ThreeD.Formats
- assembly Aspose.3D