Method for retreiving embedded PDF file from JSON