Skip to main content

Ejemplos

Complete upload form (Server Action + upload status)

app/actions.ts
app/upload-form.tsx

PDF large with page range

app/actions.ts

BYOS: the user uploads directly to your bucket, you only send the pre-signed URL

app/actions.ts
See Compression and the outputUrl reference.

Pipeline RAG: Preview index before converting

app/actions.ts
app/pdf-explorer.tsx
This pattern avoids converting an entire PDF of hundreds of pages when the user just wants to browse the index first. See PDF Index for AI agents.

Public route protected with your own authentication

app/api/convert/route.ts
Your own auth layer (NextAuth, Clerk, self-session, etc.) protects who can call your Route Handler — it’s separate from the API Flash key PDF to Markdown, which only authenticates your backend against the API.