Re: Re: How would you do this?

"Mr. Shawn H. Corey" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.pdfapi2
Message-ID <[email protected]>
spinningwebz2002 wrote:
> Maybe instead of fastest, easiest, what is easiest on the server 
> (which uses less memory)? Opening existing pdf's and getting pages 
> out of them or creating a new one from scratch using the content. All 
> the content is stored in previously process html files that I just 
> run through a routine to make text bold, italic etc. I am leaning 
> towards the creating from scratch since the more I think about it, 
> the easier it would be to keep track of pages, inserting blank pages 
> etc..

What is fastest / easiest depends on your circumstances.

But `openpage` allows you to copy content; it does not allow you to use it.  If you are creating something like a Table of Contents (ToC) or a List of Titles (LoT) (List of Tables, List of Figures, List of Illustrations, List of Plates, List of Listings) or an Index, you would have to do so from the original source.

Since you mentioned that you are using the server, I assume that you are creating this document on-the-fly.  If so, why?  Does its contents change often enough to justify slowing down your server to produce it?  Could you create it off-line and download the finish product as static files for the server?

Another thing, `openpage` copies.  If you want to change things like the page number, you have to know where it is.  To change it, print a white rectangle over it and then print the new page number.  (People who view it on a slow machine will momentarily see the old page number.)  In other words, if you want a pristine PDF, create it from the original source.


-- 
Just my 0.00000002 million dollars worth,
  Shawn

"For the things we have to learn before we can do them, we learn by doing them."
  Aristotle
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.