setup content type in aws api-gateway for pdf code example
Example: what is proxy integration api not converting base64 to binary
//Set Request "Accept" Header and Response "Content-Type" Header
//to the same mimeType also update the APIGateway "BinaryMediaType"
//property in settings to the same mimeType.