0

I'm trying to read a pdf file, to extract some info from it, and it seems like a way to do it is to set some metadata, and then retrieve it using something like the as3-xmp lib.

However, what I'm trying to write inside as metadata is a whole xml, and it is probably big, something like hundreds of lines.

Is this possible using XMP?.

Artemix
  • 8,497
  • 14
  • 48
  • 75
  • "Hundreds of lines" should not be a problem. The metadata of a single included image already may cross that line. I'd say, go for it. ("Hundreds of lines" of XML doesn't really translate in a lot of data. Besides, it's usually plain ASCII text and so very well compressible.) – Jongware Oct 06 '14 at 21:21
  • Thanks for your input!, a doubt though, in Adobe Acrobat for example you have only the option to add a list of key-value like entries, is there a way to append an xml?, or should I manually edit the metadata somewhere?. – Artemix Oct 06 '14 at 21:34
  • We do this with PDF Fields, the limit is is 65kb and if needed, we split the XML into multiple fields and recontruct it server side. – Kevin Brown Oct 06 '14 at 21:41
  • Note, you could also just use a file attachment unless you wish to somewhat "hide" the XML from someone who has the PDF. – Kevin Brown Oct 06 '14 at 21:43
  • I googled PDF Fields, but nothing shows up that seems to resemble what you are using. Also, is there a way to access these fields by code? (AS3). – Artemix Oct 07 '14 at 19:03

0 Answers0