jrsmith has asked for the wisdom of the Perl Monks concerning the following question:
i'm trying to find a way to manipulate pdf files in perl. i did a search on this site and found discussions of pdf::create, which will solve half my problem but what i need your help with is finding a way to read the contents of a preexisting pdf file. ideally i would be able to read in the contents of a file, change or edit some data, add a few pages at the end and spit it out as a new pdf file. anybody know of a module that will do this? i searched cpan but all pdf related modules seem to be able to create from scratch but not edit. any thoughts are greatly appreciated
JR
Re: pdf manipulation
by boo_radley (Parson) on Mar 05, 2001 at 19:33 UTC
|
this seems to be a good candidate for you :
PDF-111
Especially PDF::Core, which appears to let you write PDF primitives & etc. The interface looks a bit hairy, though.
Of course, the ususal warantee applies; I'm just a search monkey, this module may corrupt memory, drive or children, cause pets to go frothy, etc. | [reply] |
Re: pdf manipulation
by andye (Curate) on Mar 05, 2001 at 22:54 UTC
|
Suggest you have a look at Image::Magick, which can do pdfs. It's a free image manipulation application, with Perl (among other) libraries - it's very adaptable.
andy. | [reply] |
|