For binary data, you need to encode it before it can become part of an XML document. Use base64 encoding like
SOAP and email attachments but of course it will have to be decoded back to the binary format.
The simplest thing might be to embed a link to the PDF file rather than the bulk file.
Bill