Closed dwarring closed 8 years ago
Both classes an roles are needed for various reasons. See closed PDF::DAO issue #11 for details.
This is being revisited. The intention is to completely remove PDF::DAO::Delegator. Types will be completely determined and applied from the type declarations in the PDF::Doc::Type::* roles
Closing in favour of #7. Classes autoloading is currently being used to optimize load and startup times.
Currently, the PDF::Reader.ind-obj method fully realizes DOM objects using an unnecessary and convoluted callback mechanism. This is currently needed to ensure objects are stantiated to the correct type.
But if all of PDF::DOM classes are converted to roles, We can then simply subclass the ind-obj method then apply the roles at run-time. Simpler, more conventional and easier to extend.