Converted all PDF objs to take data as part of opts arg