Share My Creation PDFChanger - text and Image changer in PDF files

Hi,
I like to introduce a new project and share it with you if you find it useful. One of my clients requested the ability to generate their own PDF forms. My task was to create a simple interface where a user could enter their data (e.g., Name, Address, Message) and upload an image. In the background, the system would read a PDF "template" with generated input fields (e.g., NAME, MESSAGE, and a frame for the image).

2025-08-28_15h06_53.png


The data from the form and the uploaded image would then be inserted into these fields. Finally, the PDF would be exported as an image and displayed within the interface.

Here's a video demonstration:
PdfChanger - video

In addition, I've created a "PDF changer" library based on the open-source libraries iText 9.2.0 and Apache PDFBox (I've combined both into my PdfHelper.jar library). I'm providing a demonstration and the complete project example. (I actually use an API server in the background, but to share it with you, I've converted it to a desktop version.)

All needed jar's are in project:
#AdditionalJar: kernel-9.2.0.jar
#AdditionalJar: forms-9.2.0.jar
#AdditionalJar: io-9.2.0.jar
#AdditionalJar: commons-9.2.0.jar
#AdditionalJar: layout-9.2.0.jar

#AdditionalJar: pdfhelper.jar
#AdditionalJar: fontbox-2.0.27.jar
#AdditionalJar: pdfbox-2.0.27.jar
#AdditionalJar: pdfbox-tools-2.0.27
#AdditionalJar: commons-logging-1.2
#AdditionalJar: pdfbox-app-2.0.27.jar
#AdditionalJar: slf4j-api-2.0.12.jar


I hope this will be useful to someone—if not for anything else, then as an idea... (At the same time, I have a question... Maybe my solution is "amateurish." If anyone has a better idea for replacing text and images in a PDF, I would be grateful for any recommendations on a suitable library.)
 

Attachments

  • DemoPdfChanger.zip
    301.8 KB · Views: 18
  • PdfHelper.jar
    2 KB · Views: 15
Top