I want to know if a PDF document uploaded to my applet is encrypted. Being an applet I don't want to have the whole of PDFBox (which does this) with my applet so I'm looking for something smaller or the code for doing this directly!
I am trying to go through the code for PDFBox to strip out just the necessary code but not sure if this is WAY too much work or even if it violates the licence.