Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Convert RTF Documents to PDF using C++
Convert RTF Documents to PDF using C++
// Create an instance of Document class and load the RTF file
System::SharedPtr<Aspose::Words::Document> document = System::MakeObject<Aspose::Words::Document>(u"SourceDirectory\\Test File (rtf).rtf");
// Output file path
System::String outputPath = u"OutputDirectory\\TextFileOut.pdf";
// Save RTF as PDF
document->Save(outputPath, Aspose::Words::SaveFormat::Pdf);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment