# Introduction (/docs)

Turn PDFs, scans, and photos into content you can check page by page. Each page comes back as Markdown in reading order, beside the image it was read from.

Your workspace keeps each document for its configured retention period so you can classify and return to it later. Search is available when your workspace's plan includes it.

## Get started [#get-started]

<Cards>
  <Card
    title="Use the portal"
    href="/docs/portal-quickstart"
    className="relative isolate overflow-hidden rounded-2xl border-secondary bg-secondary shadow-soft transition-colors hover:border-chart-1 hover:bg-secondary/70 [&>h3]:mb-2"
  >
    <span aria-hidden="true" className="paper-texture absolute inset-0 -z-10" />
    <p className="my-0! text-secondary-foreground">
      {"Upload a document, review its content, and explore your workspace in the browser."}
    </p>
  </Card>
  <Card
    title="Build with the SDK"
    href="/docs/sdk-quickstart"
    className="relative isolate overflow-hidden rounded-2xl border-secondary bg-secondary shadow-soft transition-colors hover:border-chart-1 hover:bg-secondary/70 [&>h3]:mb-2"
  >
    <span aria-hidden="true" className="paper-texture absolute inset-0 -z-10" />
    <p className="my-0! text-secondary-foreground">Process a document from code and use its content in your application.</p>
  </Card>
</Cards>

- The [Free plan](/docs/plans-and-usage) includes 100 pages over the workspace's lifetime.
- Every upload is scanned for malware before processing begins.
- The workspace owner [chooses how long documents are kept](/docs/retention-and-access), from 1 to 365 days.

<DocumentJourney pages={samplePages}>

## What you can build [#what-you-can-build]

Use Pagelet to build:

- Document intake for loan applications, invoices, and other workflows that start with an uploaded file.
- Review tools that connect extracted content to its source pages.
- AI applications that use document content to prepare summaries, compare information, or answer questions.

## Check every page against its source [#check-every-page-against-its-source]

Compare each page's Markdown with its source image before your workflow relies on it. A confidence score helps you choose which pages to review.

Pagelet recovers content from clean PDFs, faded scans, and blurry phone photos, including the ones taken in a hurry. It corrects sideways and upside-down pages and preserves headings, lists, and tables.

## Wait for the result or get notified [#wait-for-the-result-or-get-notified]

Submit a document through the SDK and receive its complete result, or let your application continue working and receive a notification when processing finishes.

```js
import { Pagelet } from "@pagelet-ai/sdk"

const client = new Pagelet()
const result = await client.documents.create({ file: "statement.pdf" })
```

The [SDK quickstart](/docs/sdk-quickstart) covers installation and setting your API key.

## Search your documents [#search-your-documents]

Find information across your workspace or within a single document. Search in your own words when you know what you're looking for but don't remember the exact wording. Use phrases and other search syntax when you want more precise word matching.

Results include source excerpts and page references when the match comes from document content. Search is available on Growth and Team plans.

[Explore document search](/docs/search).

## What is a page? [#what-is-a-page]

A document is the file you upload. Each of its pages produces one page result, numbered from 1.

For PDFs, these are the pages already in the file. A supported still image counts as one page. Supported office files are converted to PDF, and their pages follow that layout.

</DocumentJourney>
