// Load the input DWF or DWFX file
DwfImage document = (DwfImage)DwfImage.Load("sample.dwfx");

// Create an instance of ObjOptions class
ObjOptions options = new ObjOptions();

// Save the DWF or DWFX file as an OBJ file 
document.Save("output.obj", options);