Click here to get back home

Perl PDF modules - help please

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Perl PDF modules - help please Geoff Wilkins 08-11-2004
Posted by Geoff Wilkins on August 11, 2004, 2:31 pm
Please log in for more thread options
Hi all.

I'm trying to write a script which will insert text into a PDF template
file and output a new PDF file.

I can do this with PDF:Reuse - but I have to specify the co-ordinates
for where the text should appear. What I want, instead, is to be able
to replace "place-holders" in the template file with the text.

Can any one suggest a Perl PDF module which will help with this? Or any
other way of doing it?

--
Best wishes,

Geoff Wilkins
GeoffW@wordsmith.demon.co.uk


Posted by Bill Karwin on August 11, 2004, 11:32 am
Please log in for more thread options
Geoff Wilkins wrote:
> I'm trying to write a script which will insert text into a PDF template
> file and output a new PDF file.
>
> I can do this with PDF:Reuse - but I have to specify the co-ordinates
> for where the text should appear. What I want, instead, is to be able
> to replace "place-holders" in the template file with the text.
>
> Can any one suggest a Perl PDF module which will help with this? Or any
> other way of doing it?

You could define your place-holders as form fields and use either
Adobe's FDF toolkit or PDF::FDF::Simple to generate the data to plug
into them.
http://search.cpan.org/~schwigon/PDF-FDF-Simple-0.03/lib/PDF/FDF/Simple.pod

I haven't done this, I just have a vague understanding of how PDF and
FDF work together. Perhaps Adobe's Perl toolkit, documentation,
tutorial on FDF can help, they are on this page (and requires a free
registration to download it):
http://partners.adobe.com/asn/acrobat/forms.jsp

Good luck,
Bill K.


Posted by Geoff Wilkins on August 12, 2004, 7:28 am
Please log in for more thread options
Thanks for your help, Bill - and I'm happy to have given the rest of you
something to occupy your time with. Bye for now.

>Geoff Wilkins wrote:
>> I'm trying to write a script which will insert text into a PDF
>>template file and output a new PDF file.
>> I can do this with PDF:Reuse - but I have to specify the
>>co-ordinates for where the text should appear. What I want, instead,
>>is to be able to replace "place-holders" in the template file with
>>the text.
>> Can any one suggest a Perl PDF module which will help with this? Or
>>any other way of doing it?
>
>You could define your place-holders as form fields and use either
>Adobe's FDF toolkit or PDF::FDF::Simple to generate the data to plug
>into them.
>http://search.cpan.org/~schwigon/PDF-FDF-Simple-0.03/lib/PDF/FDF/Simple.pod
>
>I haven't done this, I just have a vague understanding of how PDF and
>FDF work together. Perhaps Adobe's Perl toolkit, documentation,
>tutorial on FDF can help, they are on this page (and requires a free
>registration to download it):
>http://partners.adobe.com/asn/acrobat/forms.jsp
>
>Good luck,
>Bill K.

--
Best wishes,

Geoff Wilkins
GeoffW@wordsmith.demon.co.uk


Similar ThreadsPosted
Which Perl modules to use January 25, 2006, 12:37 pm
Using Perl modules in PHP -- ? July 7, 2006, 6:02 am
How to know what perl modules on my machine October 8, 2004, 4:04 pm
Perl encryption modules April 6, 2005, 3:20 pm
Pre-compiled SSL Perl modules August 6, 2006, 7:11 am
Uninstalling Perl modules January 9, 2007, 11:42 pm
perl modules installation July 13, 2007, 11:29 am
Perl unable to find modules August 12, 2004, 12:58 pm
installing perl modules and ports September 16, 2004, 12:36 pm
amine ramdane's perl modules September 26, 2004, 7:34 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap