Your Code
Your Files
Note: use "/home/myfolder/" to read and write files in your program.
Libraries
com.itextpdf:itext7-core:
Project Successfully Saved.

Result