Originally Posted by =X=
There is a Perl library called PDF::API2 that allows you to create and edit (including metatdata) PDF from a perl script.
You might want to try it out.
Heh... just what calibre needs, another dependeny.
The page for it doesn't say anything about its license. Can I assume it is open source since it is hosted on sourceforge?