Effortlessly convert file name extensions to SaveFormat values with the FileFormatUtil ExtensionToSaveFormat method. Simplify your file management today!... Doc )); // Below are two methods...detected file extension. Document doc = new Document ( docStream );...