
AI Search PDF
AI Search PDF is a REST API tool that locates content in PDF documents by category or natural-language description, even when the exact wording is not known in advance. It returns the matched source text and its page location for your application to review and use. Choose from supported search categories or describe the content to find, then decide how selected results should move through your workflow.
Key Benefits of AI Search PDF API
- Find information by meaning or category instead of supplying the exact phrase that appears in the PDF.
- Use supported categories for common content types or provide a custom description for a more specific search intent.
- Receive matched source text and page coordinates so your application can present findings in their document context.
- Use returned confidence information to help prioritize and review candidate matches in your application.
- Search selected pages or ranges when the relevant content is limited to part of a document.
- Send reviewed findings to Highlight PDF, Redact PDF, or Replace PDF Text for a controlled follow-up operation.
Start right from your browser - upload files, choose parameters, generate code, and send API Calls directly from API Lab!
You have document processing problems, we have Solutions. Explore the many ways pdfRest can align your documents with your business objectives.
Find PDF Passages by Meaning
The same idea can appear in different words across PDFs. One agreement might say it “automatically renews,” while another says it “continues for a further term.” AI Search PDF helps locate both kinds of passages when you know what the text means but don’t know how it will be phrased.
Choose how to describe the text you want to find:
- Built-in categories: Find types of information such as organization names, postal addresses, or monetary amounts across documents with different wording and layouts.
- Custom descriptions: Look for text specific to your task, such as a clause explaining how much notice a customer must give to cancel a service agreement.
For an agreement review app, a custom description can narrow the findings to renewal conditions and deadlines, giving reviewers a way to locate the passages relevant to their decision.
Locate AI Search Matches in the PDF
AI Search PDF returns the information an application needs to show each finding in context:
- Matched source text: Display the wording from the document so a reviewer can read what was actually found.
- Page numbers and coordinates: Open the PDF at the relevant page and draw attention to the exact passage. The coordinates come from the text located in the PDF.
- Confidence information: Use the confidence data to help prioritize candidate matches for review.
For example, a contract review app can show a list of candidate renewal clauses alongside the original agreement. A reviewer can jump to each passage and read the surrounding language, such as whether the deadline applies to the initial term or to later renewals. That context helps the reviewer decide which findings to carry into the next step.
Use AI Search Results in PDF Workflows
Use AI Search PDF to locate candidate passages, then choose which matches to act on. Submit the selected findings with the same PDF to the tool that makes the change:
- Highlight PDF creates annotations on selected passages, such as renewal clauses a contract reviewer needs to see.
- Redact PDF targets selected text for removal, such as names of organizations covered by a disclosure policy.
- Replace PDF Text updates selected text once your application supplies the new wording for each retained match.
For example, a contract team can identify and mark candidate passages in a review copy. Once the team decides what should be removed from a version for external sharing, the application can submit just those findings for redaction against the PDF it searched.
Need more help?
Start with a Tutorial for step-by-step guidance
Learn about the parameters for this tool to create your custom solution.
The required searches parameter accepts a nonempty array of definitions. Set the type and value for each definition:
ai_preset: Setvalueto a supported category such asorganization_name,postal_address, ormonetary_amount.prompt: Setvalueto a description of the text to find, such as “the clause that states how much notice is required to cancel the agreement.”
You can submit several definitions in one request. Send an array in a JSON request or a JSON-encoded array string in the multipart field. The input PDF needs a text layer. Use OCR PDF first for scanned pages that contain only images.
Each definition also accepts an optional content_scope. Use all (default) for all existing text or body to exclude detected headers and footers.
Safe & Secure
Confidently process your sensitive data with pdfRest. Our platform is built for robust, Enterprise-grade security and compliance. We meet rigorous standards for GDPR and HIPAA, and our controls are independently audited to ensure strict SOC 2 Type 2 compliance. Your data's protection is our commitment.

