I want to be able to store some plugin-specific data in a PDF so that I can read it back when that PDF is loaded back, without this metadata being visible to the user.
How can I put this metadata into the PDF File?
PDF supports XMP metadata. You should append your plug-in specific information as a payload in the XMP portion.