Re: Do you see a better way of doing this with PDF::API2?

Martin Hosken <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.pdfapi2
Message-ID <[email protected]>
Dear Bob,

> Now the question is, how can I make this faster program wise (it isnt 
> THAT slow, on a 10 page pdf it takes 45 seconds or so)? The one thing 
> I can think of that would work is if I could combine steps 2 & 3, so 
> that while I am making the multipage pdf I can save the current page 
> as a new pdf without closing the multipage pdf. Is it possible to 
> save a page on the fly with a new name and not close the current pdf? 
> Or, can I copy the current page contents into a new pdf structure and 
> save that?
>   

Yes you can conflate steps 2 & 3. For example in the Text::PDF module
(that PDF::API2 was based on) there is an example program to insert
blank pages into a pdf. So it wouldn't be hard to extend that to insert
your photographs. If Text::PDF can do it, then I'm pretty certain that
PDF::API2 would be able to do it as well, and probably easier.

Yours,
Martin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.