views:

216

answers:

3

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 BUT I dont want the user to see this This information has to be in the PDF File because when the file gets passed around I still need that metadata about certain objects in the file How can I do this TIA

A: 

The easiest way to do that is simply append the information as text to the end of the pdf file.

R Ubben
but how do i make sure the user does not see it
Rahul
A: 

Depending on how you are generating and reading your PDFs you can use pdftk to edit your metadata. You can add an invisable tag to the PDF by adding it as a metadata property with a key and value by using pdftk dump_data to write all metadata to a text file, then append the new key and value to the text file, then use pdftk update_info to put back all the metadata, including the new key value pair.

northpole
A: 

PDF supports XMP metadata. You should append your plug-in specific information as a payload in the XMP portion.

dirkgently