[poppler] Thoughts on OO-ifying and modularising the pdftothml utility?
Alec Taylor
alec.taylor6 at gmail.com
Fri Oct 28 23:37:35 PDT 2011
The current pdftohtml.cc is extremely in need of modularity. I'm
considering making the utility more modular, to the point of making it
object-orientated.
int main(int argc, char *argv[])
PDFtoHTML *foo = new PDFtoHTML;
if(!foo->setArgs(argDesc, &argc, argv) {
delete foo;
return false;
else {
delete foo;
return true;
}
}
Public member functions could include:
GBool PDFtoHTML::toXML(char passes);
GBool PDFtoHTML::toHTML(GBool images, GBool complex);
GBool PDFtoHTML::PDFinfo();
GBool PDFtoHTML::removeRestrictions();
&etc
What do you think? - Worth doing? - Useful? - Too far?!
More information about the poppler
mailing list