txt a pdf cpp

using namespace Aspose::Words;

auto doc = MakeObject<Document>(u"Input.txt");
doc->Save(u"Output.pdf");
Wicked Willet