PdfFormat.ExtractScene

ExtractScene(string)

Extract 3D scenes from PDF file.

public List<Scene> ExtractScene(string fileName)
ParameterTypeDescription
fileNameStringFile 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


ExtractScene(string, byte[])

Extract 3D scenes from PDF file.

public List<Scene> ExtractScene(string fileName, byte[] password)
ParameterTypeDescription
fileNameStringFile name of input PDF file
passwordByte[]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


ExtractScene(Stream, byte[])

Extract raw 3D content from PDF stream.

public List<Scene> ExtractScene(Stream stream, byte[] password = null)
ParameterTypeDescription
streamStreamStream of input PDF file
passwordByte[]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