Last active
May 5, 2022 05:22
-
-
Save aspose-com-gists/50202f13b147b72b23d1b60d67e661da to your computer and use it in GitHub Desktop.
Convert RTF Documents to PDF using C++
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Convert RTF Documents to PDF using C++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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