Added getPathData flag to getDocumentInfo

We use this for a while in Avocode and we needed custom getDocumentInfo implementation for that. It should be included in main repo, right? Or is there a reason why it is not yet there?