Creates the name of the file.
Document The document
String The path of the file
String The extensions, containing dot.