> For the complete documentation index, see [llms.txt](https://docs.apryse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apryse.com/web/search.md).

# Search

- [Search PDF and Office Documents with JavaScript Library Overview](https://docs.apryse.com/web/search/search.md): Enhance your PDF and Office document search capabilities with WebViewer's built-in search, API options, and manual text parsing.
- [Replacing text & images in PDFs with JavaScript](https://docs.apryse.com/web/search/search/replace.md): Discover how to search and replace text or images in a PDF with this comprehensive code sample using pdftron.PDF.ContentReplacer. Enhance your PDF editing capabilities today! The Apryse Web SDK stream
- [Search Text in PDF and Office Documents using JavaScript](https://docs.apryse.com/web/search/text-search.md): Discover how to search text in PDF documents efficiently using JavaScript. Learn about key functions like addSearchListener and searchTextFull. The Apryse Web SDK streamlines secure, serverless docume
- [Alternate PDF UI Search Capabilities](https://docs.apryse.com/web/search/advance-text-search.md): Enhance text search capabilities in the UI with WebViewer's programmatic features. Explore methods like textSearchInit, clearSearchResults, and more for precise control over UI search results using we
- [Programmatic search without WebViewer](https://docs.apryse.com/web/search/text-search-full-api.md): Enhance your search functionality with full API capabilities, enabling document loading and content search without WebViewer rendering. Boost performance by leveraging the TextSearch class to efficien
- [Search and Replace Text within WebViewer, DOCX Editor, and Spreadsheet Editor](https://docs.apryse.com/web/search/search-replace.md): Search and Replace Text within WebViewer, DOCX Editor, and Spreadsheet Editor through the UI or programmatically.
- [Samples for Searching Text in PDFs using JavaScript](https://docs.apryse.com/web/search/search-samples.md): Learn how to search within PDF documents, across multiple files, and integrate external server-side search with WebViewer UI using TextSearch. Optimize your search capabilities now! The Apryse Web SDK
- [APIs for Searching Text in Documents](https://docs.apryse.com/web/search/search-api.md): Enhance document search capabilities with APIs like addSearchListener, searchText, and clearSearchResults. Explore TextSearch utility for efficient text search in documents without WebViewer initializ


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.apryse.com/web/search.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
