I’m trying to set a chunk of text data into a PDF so that I can read it out programmatically later.
Is it possible to add a custom property?
Is there a more appropriate way to do this?
there are tons of ways.
You can write transparent text.
Or use SetDocInfoEx with your own key and value.
Or make a hidden field and put something inside as text.
Or make a hidden annotation with some text value.
Or add an attachment into the PDF with the text (see Zugferd example, which includes xml).
Or embed a file into the PDF with the content you like.
This is what I was thinking of, but was overlooking in the API.
Thanks, Christian!
1 Like