Bolding different parts of a string and writing it to PDF

2 posts, 0 answers
  1. Will
    Will avatar
    1 posts
    Member since:
    Oct 2016

    Posted 06 Aug Link to this post

    Hi,

    I'm new to telerik products and this is a really simple question that I'm trying to find right now.  I'm currently generating a letter pdf using a method that returns a RadFixedDocument, which is made up of multiple Blocks placed in different positions of a single page using a FixedContentEditor.  Right now I need to convert specific text fragments of the letter string to bold (ones that are wrapped in bold tags) before converting to pdf, but I haven't been able to find a way to separate bold from non-bold text besides using Blocks.  Is there an easier way to do this just with UI for WPF?

    Thanks,

    Will
  2. Tanya
    Admin
    Tanya avatar
    577 posts

    Posted 08 Aug Link to this post

    Hello Will,

    If I properly understand, you need to bold parts of the text inside the blocks. If so, you can achieve that using the different overloads of the InsertText() method of the Block class. How you can use this method is described in the Block help article.

    Hope this is helpful.

    Regards,
    Tanya
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top