using namespace Aspose::Words; auto doc = MakeObject<Document>(u"Input.txt"); doc->Save(u"Output.pdf");