-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
dayvidpow wrote:
|> The easiest way is to put your data as extra keys in the info
dictionary. If
|> you want it more "hidden" they can go to the catalog dictionary.
|
| Are there any sample / example code as to how to accomplish this?
|
I don't think there's any example for that online. To create the custom
data, use Document.addHeader() as in:
~ document.addHeader("key1", "value1");
To retrieve the meta data, use PdfReader.getInfo(). This will return a
hash table with all the meta data.
~ reader.getInfo().get("key1")
will return "value1" based on the code sample above.
I hope this helps,
Xavier
- --
Xavier Le Vourch
Brittany Software, Inc.
<[EMAIL PROTECTED]>
PGP Key (ID 0x896C5947): http://brittanysoftware.com/gpg_key.asc
Key fingerprint: 73B3 6370 B8C5 4325 F2D8 4115 0372 5805 896C 5947
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFINemIA3JYBYlsWUcRAiByAKCCxuYKjY88qpDRsOyFPAMEkLwyiQCgkf2O
JxepcUY2oZvVMp08eJlftQY=
=hx6+
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar