Appearance
Quick start with Next.JS
Learn how to send your first request using Next.
Jumpstart your Next.js project by seamlessly integrating Doppio's API for HTML to PDF or PNG conversion. This guide is specifically tailored for Next.js developers, offering straightforward steps to send your first request using our service.
Render your first PDF
Choose between synchronous and direct methods to render your PDFs, depending on your project's needs.
Synchronous method
The synchronous method, on the other hand, returns a JSON response, which includes details like documentUrl. This is useful for storing the URL of the generated file or processing it further within your application.
Direct method
The direct method streams the PDF directly back to the client as a file download. This approach is efficient when you want the generated PDF to be immediately downloaded by the user.
Here's how you can set up each method in your Next.js application:
✨ Tadam!
Asynchronous method ?
If your project requires the use of a webhook for asynchronous response handling, we strongly suggest exploring our asynchronous method.
This approach is ideal for scenarios where webhook integration is needed to manage responses in the background. For instance, it's perfect for applications that process large volumes of documents, need to handle real-time updates without user intervention, or where the PDF generation process is part of a larger, automated workflow.
Our asynchronous method ensures your application remains responsive and efficient, even when dealing with complex or time-consuming tasks.
Need more?
Looking to integrate Doppio with a different framework? We've got you covered. Check out our quick start guides for various frameworks: