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?!
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler