Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux alternative to pdftk to fill in forms

pdftk has had a libgcj outdated dependency for years. Unfortunately, that means pdftk can't be installed in any recent RedHat/CentOS/Fedora installation.

I have been searching for alternatives and I can see some people are using tools like pdfunite to do some things that pdftk used to do.

Unfortunately, I've not been able to find any tool that extracts form fields data and/or fills a form from the command line. Is there such an alternative?

I can see this was asked before seven years ago in 2009, but the accepted answer is no longer relevant. The issue in 2016 is the outdated (and unsafe!) dependency. Hence, why I'm creating a new question.

like image 929
cortopy Avatar asked Nov 20 '22 00:11

cortopy


1 Answers

https://github.com/LibrePDF/OpenPDF is actively maintained iText clone that includes a Java version of pdftk

Debian is moving to https://gitlab.com/pdftk-java/pdftk , a Java reimplementation of pdftk which is a drop in replacement (but needs a JRE).

like image 153
Rich Avatar answered Dec 05 '22 20:12

Rich