Hi Jhon,
Could you please upload the image of input payload? Need to check inbound payload.
With the same payload did you try testing the mapping in test tab? I think other option to include the PDF data is to use CDATA in the field. Thus instead of using base64 you can directly put the PDF content in CDATA segment, this will stop parser to interpret the content of the field.
Regards
Anupam