Java code to handle PDF with Forms

I have been looking for a pure Java program that looks like a PDF Viewer which allows user to fill a form and re-save it.
I already have the viewer but it cannot handle forms, so I am looking for someone that can give me some hints or I can purchase for the solution.

Are you looking for a visual control to view and edit PDF files or for some API? For example, you can use an API to open a PDF file, fill its form fields, and then save the output file, however it will not provide any UI. So, one idea could be that you provide your own UI i.e. input fields to get values from your users and then use the API in your code to take those values from the input fields and then update the form fields inside the PDF file. If you think such an API can help in your scenario then you may try Aspose.Pdf.Kit for Java. However, if you want some visual control then may be someone else might suggest you something similar.

Developer Evangelist @ Aspose. I love to explore and learn new technologies and help other developers along the way.