correction for pdf page modification for case of indirect xobject dict in resource dictionaries