From: Frank Davis Date: 2006-07-22T08:52:40+09:00 Subject: Re: Ruby and XFDF This is just a guess, but the first place I'd look would be what command-line arguments Acrobat Reader supports under Linux. There's a good chance you can pass the name of an xfdf to acrobat this way, so you could just use %x{ } to launch it with the appropriate form data. If you need more automation than that (for example, to automatically print the resulting form), I know Acrobat is highly scriptable using Javascript. If it supports being passed a Javascript file on the command line, you could generate the xfdf file, then generate a short javascript file that tells Acrobat to open up and print the form. -----Original Message----- From: listrecv@gmail.com [mailto:listrecv@gmail.com] Sent: Friday, July 21, 2006 1:15 PM To: ruby-talk ML Subject: Re: Ruby and XFDF Frank Davis wrote: > I'm doing the same thing in a C# application. The technique I use > should work fine in Ruby also. The XFDF files are pure XML, so I use > an XML builder to generate the XFDF file. Yes, that's exactly why I'd like to work with them. Very easy to do this accurately using REXML (or similar). > Under Windows, I can also take > advantage of the fact that files with a .xfdf extension are associated > with Acrobat. For example, if I tell Windows to execute "MyForm.xfdf", > Acrobat will launch, read the xfdf file, and automatically open the > Acrobat PDF listed in the xfdf, and populate the form fields using the > data in the xfdf file. Intersting approach. I need this to run automated, on a (Linux) server, so this idea won't work. Any other ideas?