Searching in exported PDF file.

2 posts, 0 answers
  1. Jakub
    Jakub avatar
    14 posts
    Member since:
    Sep 2015

    Posted 08 Aug Link to this post


    here is my sample console app:

    using System.IO;
    using Telerik.Windows.Documents.FormatProviders.Pdf;
    using Telerik.Windows.Documents.Model;
    namespace PdfExportTest
        class Program
            static void Main(string[] args)
                RadDocument doc = new RadDocument();
                RadDocumentEditor editor = new RadDocumentEditor(doc);
                Section section = new Section();
                var provider = new PdfFormatProvider();
                using (Stream stream = new FileStream(@"C:\\temp\\test.pdf", FileMode.Create))
                    provider.Export(doc, stream);

    When use search option to find "TEST", Adobe Reader shows it couldn't find any matching words.

    Is it known issue that Adobe Reader can't find words in exported documents?


  2. Deyan
    Deyan avatar
    126 posts

    Posted 10 Aug Link to this post

    Hello Jakub,

    I have tried the following steps:
    1. Generate PDF file using the code you have sent with the latest version of RadRichTextBox.
    2. Open the file with Adobe Reader.
    3. Click in the beginning of the word "TEST" so that I see that the caret in the viewer is positioned before the word.
    4. Press Ctrl+F and write the text "TEST" for the word to search.
    5. Press on "Next" button to find the next appearance of the word in the PDF file.
    As a result, Adobe Reader successfully finds the word "TEST" and marks it. This may be seen in the attached screenshot.

    Could you confirm that by following the same steps you reproduce the same result?

    Telerik by Progress

Back to Top