Convert rtf file to pdf file!

How could I convert rtf file to pdf file? Could I use " saveto pdf() " directly?

Hi

Thanks for your inquiry. You can use the following code to convert RTF document to PDF.

// Open document
Document doc = new Document("in.rtf");
// Save docuemnt as PDF
doc.SaveToPdf("out.pdf");

Please let me know in case of any issues, I will be glad to help you.
Best regards.

Thank you for quick reply. This one works. Right now I need to convert txt file to pdf or word file. How could I do it?
Also how could I convert multi page doc file to multi page tiff file?
Thank you for your response!
Helen

Hi

Thanks for your inquiry. Please see the following link to learn how to load plain text into the Aspose.Words.Document.
https://docs.aspose.com/words/net/create-or-load-a-document/
Here you can find code example that shows how to convert a document to multi-page tiff.
https://docs.aspose.com/words/net/convert-a-document-to-an-image/
Hope this helps.
Best regards.

Thanks for reply. They work fine.
I have another question:
After I convert multipage word doc to multipage tiff, how could I manipulate these tiff pages: select one page , remove a page, insert a page,append a page etc.
Thanks!
Helen

Hi Helen,

Thanks for your request. You can work with multi-page tiff using standard .NET classes. For example, here you can find code example that shows how to get the particular frame from a multi-page tiff.
http://www.codeguru.com/forum/showthread.php?t=359629
Aspose.Words does not provide functionality to work with tiff. Aspose.Words provides only ability to export document to TIFF.
Best regards.

Thanks!
Anther question: How could I convert rtf to doc or tiff
Helen

Hi

Thanks for your inquiry. Please see the following link to learn how to save a document.
https://docs.aspose.com/words/net/save-a-document/
The code to convert RTF to DOC is pretty simple:

Document doc = new Document("in.rtf");
doc.Save("out.doc");

The code to convert RTF or any other document to TIF is provided here:
https://docs.aspose.com/words/net/convert-a-document-to-an-image/
Best regards.