You can use the /pdf/convert/to/json2 to extract the PDF contents to JSON format. Please add the profiles parameter below to extract images:
/pdf/convert/to/json2
{ "url": "https://fileurl.pdf", "profiles": "{ 'SaveImages': 'Embed' }" }