# Kettering XML and PDFs **Category:** [NHS Spine & APIs Support](https://openhealthhub.org/c/nhs-spine/25) **Created:** 2024-06-21 13:15 UTC **Views:** 87 **Replies:** 0 **URL:** https://openhealthhub.org/t/kettering-xml-and-pdfs/2763 --- ## Post #1 by @chris.cooper Hi All I'm new and would like some help please. I'm currently developing a service to send messages on MESH using the below spec. [https://digital.nhs.uk/developer/api-catalogue/message-exchange-for-social-care-and-health-api#post-/messageexchange/-mailbox_id-/outbox](https://digital.nhs.uk/developer/api-catalogue/message-exchange-for-social-care-and-health-api#post-/messageexchange/-mailbox_id-/outbox) The service work well with plain text in the body. But now I need to send PDFs, I have seen that the best way may be using Kettering XML. I have tried just simply sending a example as a body through the MESH API, but it fails (Bad Request). What am I doing wrong? Once I have got my simple Kettering xml sending, I would like to alter it, so I contains a pdf body. Guessing this is sending a base 64 string of the pdf in the below section? Any help would be a help, thanks ``` 2 -//IETF//DTD HTML//EN ``` --- **Canonical:** https://openhealthhub.org/t/kettering-xml-and-pdfs/2763 **Original content:** https://openhealthhub.org/t/kettering-xml-and-pdfs/2763