Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

pdf manipulation

by jrsmith (Pilgrim)
on Mar 05, 2001 at 19:23 UTC ( #62248=perlquestion: print w/replies, xml ) Need Help??
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


Replies are listed 'Best First'.
Re: pdf manipulation
by boo_radley (Parson) on Mar 05, 2001 at 19:33 UTC
    this seems to be a good candidate for you :
    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.
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.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://62248]
Approved by root
and the voices are still...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2017-04-26 06:28 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (468 votes). Check out past polls.