Inspiration

The inspiration behind DocGen is Vercel's V0, which generates reusable site mocks. I decided to create something similar but for PDFs, one of the most commonly used documents in everyday life—from invoices to hiring forms. Generating or designing PDFs can be time-consuming, but with the advent of generative AI, it's become much easier. That's how DocGen was created.

What it does

DocGen generates reusable PDFs from a given prompt. Reusability is key—you don’t need to recreate the same PDF every time. Just enter the dynamic values using the document playground or the API, and you're good to go.

How we built it

We used Convex for the backend and Next.js for the frontend.

Challenges we ran into

Generating PDFs is resource-intensive. We're currently using the Browserless API to handle this.

Accomplishments that we're proud of

We’ve built a fully functioning prompt-to-PDF application with API access.

What we learned

We learned a lot about Convex, ShadCN, and Puppeteer.

What's next for DocGen

The current version is our first alpha release. We're using LLaMA 3.1 (70B) for the task, but we need to migrate to a better model to improve the quality of PDF generation.

Built With

  • convex
  • nextjs
Share this project:

Updates