Skip navigation
hermanpeckel22222
Currently Being Moderated

Writing Name/Value Metadata to a PDF

Jul 12, 2012 5:33 PM

Tags: #pdf #value #metadata #applescript #name #writing

Folks,

 

We are trying to tag our PDF's here with information from our jobs database so as when they run through our Odystar workflow, the information can be used at the gateways (it doesn't matter if you don't know what Odystar is). Easy enough to do and it all works well. The problem is we don't want to be entering this manually, so what we have been working on, is doing it via Applescript.

 

Using an Applescript tool called PDFTK we have been able to enter name/value pairs into the PDF. When you open the resulting PDF in Acrobat and go to PROPERTIES - CUSTOM, the name/value pairs appear. So far so good.

 

If you were to enter these custom name/values into the PDF via Acrobat and save, when you open that PDF in Illustrator and go to FILE INFO - ADVANCED you can see that it has placed them into the ns.adobe.com/pdfx/1.3/ schema. However, if you enter the values via the Applescript tool (PDFTK) they do not appear at all in Illustrator (although they DO appear in Acrobat).

 

I'm struggling to get my head around why this is. I'm thinking we may have to add a custom schema, but I have no idea on this. Has anyone had any experience with this kind of scenario? Does anyone have any better options or tools or ideas for writing this metadata into the PDF?

 

Thanks in advance!!

 

Regards

HP

 
Replies
  • Currently Being Moderated
    Jul 13, 2012 1:32 AM   in reply to hermanpeckel22222

    Whereabouts in the XMP schema does your Applescript tool place the data (if anywhere)?

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 18, 2012 2:30 AM   in reply to hermanpeckel22222

    I'm moving this to the SDK forum - while it's not an SDK-related question, manipulating the internals of a PDF file isn't a JS topic.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points