How do you intend to define the location and content of the string you want to capture? I ask because the pdf format converted to a byte array isn't a plain text stream, it is binary data, which will make handling the data potentially problematic.
I wasn't, now I am, then I won't be anymore.