Hi Matthew,
I've done some testing here, and as far as I can see, the PDF will not actually get served.
What is sent though is a header (with a zero content length). that's ok, but not ideal.
You can suppress that by putting
self.Flushed = 1
inside your rejection. For example, in my testing here I rejected all pdf files with this code;
self._trace('loc:filename=' & loc:filename)
if instring('pdf',loc:filename,1,1)
self._trace('rejecting pdf')
self.Flushed = 1
return
end
Cheers
Bruce