# Re: Ruby and XFDF

**URL:** <https://www.ruby-forum.com/t/re-ruby-and-xfdf/99376>\
**Category:** Ruby\
**Created:** [July 22, 2006, 1:53am UTC](https://www.ruby-forum.com/t/re-ruby-and-xfdf/99376 "2006-07-22T01:53:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frank\_Davis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/a9adbd/32.png) [@Frank\_Davis](https://www.ruby-forum.com/u/Frank_Davis)\
**Post date:** [July 22, 2006, 1:53am UTC](https://www.ruby-forum.com/t/re-ruby-and-xfdf/99376/1 "2006-07-22T01:53:52Z")

</div>

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.
