Text Extraction Engines in WPF Pdf Viewer
9 Jul 20261 minute to read
WPF PDF Viewer extracts text information from PDF files through two different engines for text search, text selection, and text markup creation.
- PDFium (Google Chrome’s text extraction engine)
- SfPdf (Syncfusion’s own text extraction engine)
NOTE
Before Essential Studio version 19.4.0.48, the SfPdf engine was used as the default for text-based operations in the PDF pages. From version 19.4.0.48 onwards, the default text extraction engine has been changed to PDFium.
The PDFium text extraction engine is recommended for improved performance. However, you may still use the SfPdf text extraction engine by setting the TextExtractionEngine property to SfPdf. Set this property before loading the PDF document. Refer to the following code snippet to apply the same.
using Syncfusion.Windows.PdfViewer;
pdfViewer.TextExtractionEngine = PdfTextExtractionEngine.SfPdf;For additional information about the usage of the text extraction engine, please refer to the text extraction functionalities.