02-27-2018 03:04 PM
I have need to fill out a PDF form (or equivalent) from the command line. I have found several tools that work well, but it seems they all require x11 based systems or java. The two with the most promise are http://flpsed.org/flpsed.html and https://www.pdflabs.com/tools/pdftk-server/ but the ./configure files error out.
PDFtk fails at java_lib.o (Yikes)
flpsed requires fltk and when installing fltk it fails at "checking for X... "
A little investigation says that it requires X11
FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit for UNIX®/Linux® (X11),
Am I going to run into a dead end here because I'm on a armv7 architecture and that is not a X11 based system?
Anyone have any suggestions as to how I can fill out a form and save to a pdf in the Linux environment? I have plenty of solutions in Windows, but I am trying to move all these tasks to the linux environment. At this point I'd like to stick with the armv7 because of cost. I have a 64-bit Linux controller for testing. I am going to see if I can get these tools to work in that environment.
Solved! Go to Solution.
03-01-2018 01:21 PM - edited 03-01-2018 03:12 PM
Hi Doug,
From a cursory search, there doesn't appear to be a package that can manipulate PDFs without X, like you pointed out. The initial thought was to use LaTeX, but it is not included in the layers that we pull in. Plus, you cannot edit existing PDFs with it (so it looks like it does not fit your use case). However, it could be a useful tool if you wanted to create a PDF without UI on the target.
That does not leave many options, but the steps below may work. This has not been tested by NI and is outside of the scope of NI support.
Andy
Product Support Engineer