Search PDF and Office Documents with JavaScript Library Overview

WebViewer, DOCX Editor, and Spreadsheet Editor each have built-in panels to handle searching text within their respective document types. Search and Replace is also available for all three products.

With search and replace, you can automate structured updates like placeholder replacements, bulk corrections, or sensitive text removal, minimizing manual effort when generating or standardizing documents. With programmatic text editing through our APIs:

  • Insert, delete, or replace text.
  • Preserve existing document formatting, styles, and layout.

You can enable fast, user-driven editing tasks directly within the editor during the document editing process. With UI search and replace:

  • Use the new search and replace panel in the main menu of the UI.
  • Replace a single instance or all instances of a word or phrase.

Benefits include:

  • Faster updates due to programmatic text editing and search and replace all.
  • Every matching term, placeholder, or name is updated the same way throughout the file.
  • Updates are made with awareness of formatting.
  • Eliminates the need to manually review each section for missed or inconsistent changes.

All three products share APIs for controlling search:

All three products share APIs for controlling search and replace:

Searching PDFs can also be handled without the use of the WebViewer UI:

Demo

Search

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales