title: Sanities PDF java
body: <p>I have a checkmarx scan that give me the alert &quot;The untrusted data is embedded straight into the output without proper sanitization or encoding&quot; when sending a pdf to the front end through a rest api call. Is there anyway to sanitize or encode the pdf? I've looked around and I haven't found much on this. Thank you!</p>