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 ( MyDir...); doc . Save ( ArtifactsDir + "Document.ConvertToPdf.pdf" );...