|
Hi,
I'm having trouble figuring out the "right" way to create my own renderer. I want to create a module like Dump.pm that allows me to supply a callback function like renderText() that will be called on each text object in a page. On my own laptop, I've found I can create a file called Mydump.pm in /Library/Perl/5.8.8/CAM/PDF/Renderer, and it works as expected. However, this seems pretty clumsy and more importantly I don't have root access on the machine where I'm actually trying to run this code. I've tried passing various strings to $contentTree->render(); , but I haven't figured out how to get it to call a module outside of the CAM/PDF/Renderer directory.
Is there a trick to this I'm missing? Or do I need to convince my sysadmin to install my renderer into the system-wide CAM::PDF module?
Thanks!
-Tim
|