Hey
danmit,
I'm responding to this cos no one else has yet.
I've had a look around for literature on using groovy or java to decode a pdf and i haven't found anything....everything seems to point to progressing a base64 encode to pdf.
I'm sure you CAN do it, but i can't with my knowledge of groovy/java. Perhaps one of the java experts on this thing can be of more help?
However, with my "Test Architect" hat on, i'd argue against trying to decode the pdf anyway. As you know the pdf is an image, but if you've asserted on filesize down to the specific byte size, i'd suggest it's overkill to even bother trying the decode, as even a single different character in the file would cause a byte size differential, surely?
That's all i got i'm afraid!
Cheers,
Rich