PDF for .NET

Is there a way to convert C1.C1Pdf.C1PdfDocument to an image? (2 posts)

  • img apalcer said 2 years, 2 months ago:

    Is there a way to convert C1.C1Pdf.C1PdfDocument to an image? I can load the info just fine, I just need to get it into a tif file. I am open for posibilites. I am looking to to take a rtf string and put it into a tif file. So I don't have to use pdf. But I thought this may make it easier.

     

    Any suggestions would be awsome!!!

    Thanks

    apalcer

  • img C1_BernardoC4p said 1 year, 5 months ago:

    Hello

    Sorry, C1Pdf only creates documents, it does not render them.

    But if you want to convert RTF content into images, there are some very good options.

    The RichTextBox control that ships with .NET encapsulates a very powerful RTF editor/renderer that is part of the Windows infrastructure. You can use the SendMessage method to get it to do all kinds of useful things, including rendering the RTF content into a Graphics object (which allows you to do exactly what you want).

    The article linked below shows how you can draw RTF into images:

     http://www.codeproject.com/…/RichTextBoxDocument.aspx

    The article actually renders the RTF into metafiles, but the same mechanism applies to other image types.

    I hope this helps, good luck!