1. A method comprising: extracting one or more features corresponding to one or more objects from a file containing two or more codestreams, including extracting at least one of the one or more features without decoding; ranking document objects based on a task being performed by an application, and the one or more extracted features; and selecting a set of the document objects based on rank and at least one constraint.