Developer forum

Forum » Development » RTF to PDF

Reply
Hi,

I'm using PDFClass for convert html to pdf and works great but I've a new challenger, convert RTF files to PDF.

Has DynamicWeb some tool for solve this problem?

the code:

public void CreatePDF(string url)
{
    Dynamicweb.PDFClass pdf = new Dynamicweb.PDFClass(url);
    pdf.HttpStream("testing.pdf");
    pdf.Dispose();
}

public void CreatePDF(byte[] file)
{
    Dynamicweb.PDFClass pdf = new Dynamicweb.PDFClass();
    pdf.HttpStream(file,"testing.pdf");
    pdf.Dispose();
}

Thank you for your support.

Replies

 
Nicolai Høeg Pedersen
Reply
I'm affraid not...

But you can use some other external component to do so... Or maybe use a rtf to html converter first. They can be found out there...
 
Reply
Thank you

I found a good tool for these conversions (rtf to html).

If someone need it, feel free to use it.

Remember: this is a light version, check the original project.

http://www.codeproject.com/KB/recipes/RtfConverter.aspx


 

You must be logged in to post in the forum