added GetDocumentWithOpts to allow getting full atachmant data and contents in bulk