Welcome to the WinForms feedback portal. We’re happy you’re here! If you have feedback on how to improve the WinForms, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

2
Votes

My test program:

using System;
using Syncfusion.Pdf;
using Syncfusion.Pdf.Parsing;

namespace syncfusion
{
    class Program
    {
        static void Main()
        {
            string extractedTexts;
            using (PdfLoadedDocument loadedDocument = new PdfLoadedDocument(@"d:\test\test.pdf"))
            {
                PdfPageBase page = loadedDocument.Pages[0];
                extractedTexts = page.ExtractText(true);
                loadedDocument.Close(true);
            }

            Console.WriteLine(extractedTexts);
            Console.ReadKey();
        }
    }
}

Result using NuGet version 17.1.0.53:

Zwischenablage01.jpg

Result using installed version 17.2.0.41:

Zwischenablage02.jpg

Screenshot of my PDF file:

test.jpg

How could I get the text with correctly spaced words?