Effortlessly save your documents with our smart save method, auTomatically selecting the right format based on the file extension for seamless sTorage....PDF. Document doc = new Document...Document ( MyDir + "Document.docx" ); doc . Save ( ArtifactsDir + "Document...