Re: How would you do this?
"spinningwebz2002" <spinningwebz2002-/[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.pdfapi2 |
|---|---|
| Message-ID | <[email protected]> |
--- In [email protected], "Mr. Shawn H. Corey" <shawnhcorey@...> wrote: > > 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. I will be doing that - so I will probably have to remake from 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? Each chapter is editable using a flash based html (rich text) editor I wrote. The html code is then processed into the pdf file for bold, italic, underline, bullets etc (no font change or color, that is controled in templates). They also can ad photo pages using predefined templates. Upload photos and add captions. These photo pages are made into single page pdf's for inserting into the code (I had to do this cause they can move the photo page around in a chapter to put it where they want). They can view each chapter online using a flash viewer (I take the individual pdf pages and convert to jpgs using GS and ImageMagick). > > 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. Yeah, definately going to have to go with the original source and make a single pdf. Probably better anyways. With all the individual chapters I would end up with multiple instances of the fonts being embedded, wouldn't I? > > > -- > 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 >