Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active December 23, 2021 05:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/db5c8a874c740a5f529dd475d93c292f to your computer and use it in GitHub Desktop.
Save aspose-com-gists/db5c8a874c740a5f529dd475d93c292f to your computer and use it in GitHub Desktop.
Convert 3D Object OBJ File to PDF or FBX File Programmatically in C# .NET
// Load the OBJ in an object of Scene class
Scene document = new Scene("template.obj");
// Create an instance of FbxSaveOptions
FBXSaveOptions options = new FBXSaveOptions(FileFormat.FBX7500ASCII);
// Convert 3D Object OBJ File to FBX
document.Save("output.fbx", options);
// Load the OBJ in an object of Scene class
Scene document = new Scene("template.obj");
// Create an instance of PdfSaveOptions
PdfSaveOptions options = new PdfSaveOptions();
// Convert 3D OBJ Object File to PDF
document.Save("output.pdf", options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment