Return PDF file in a Micronaut Controller
In this tutorial, we will create a Micronaut REST API that generates and returns a PDF file using OpenPDF. Table of contents 1. Add OpenPDF Dependency 2. Creating the PDF Controller 3. Testing the API 4. Writing Unit Tests 5. FAQs 6. Download Source Code 7. References Technologies used: Java 21 Micronaut 4.7.6 Maven 3.9.6 …