You can use PeGS::PDF under the same terms as Perl itself.