Re: [PEPr] Comment on PDF::PDF_PageExtractor
| From: | Arnaud Limbourg | Date: | Sat, 03 Jul 2004 07:49:17 +0000 |
| Subject: | Re: [PEPr] Comment on PDF::PDF_PageExtractor | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-31519@lists.php.net to get a copy of this message | ||
> > I'm also in favor of having *one* PDF-read-class.
>
> Do you mean one package or really only one class? The first is possible,
> the second I would discourage in favor for a proper design.
>
> > There are other tools out which allow reading of PDFs, extracting
> > texts and images, reordering pages or even encrypting a PDF etc.
>
> How many of them are implemented with PHP and could be easily used on a
> simple shared host webspace? ;)
>
> > Also it would be nice if extracting/parsing would allow modifying of
> > existing PDFs (adding pages, or even just adding text to a page) and
> > saving it again.
>
> Can you give some more detailed information what you imagine of. I said
> it before, the parser will the foundation for all applications that
> modify .pdf files and would like to see it as seperate package in PEAR.
> All others can maybe summarized in a utility package.
I also think it's not a godd idea to have a fat class doing everything. PDF_Parser should be
what its name implies.
If there is a PDF_Writer package somebody can write a package using the other two. Maintenance is
easier and each package does only what it's supposed to do.
Arnaud.