• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Extracting Metadata from a PDF Document?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Extracting Metadata from a PDF Document?


  • Subject: Re: Extracting Metadata from a PDF Document?
  • From: Christopher Stone <email@hidden>
  • Date: Sun, 26 Apr 2015 18:14:25 -0500

On Apr 26, 2015, at 14:49, S. J. Cunningham <email@hidden> wrote:
>
> Does anyone know of a scriptable app or another way to extract the metadata from a pdf document
______________________________________________________________________

Hey Steve,

`mdls` as Wayne mentioned.

mdls "/Users/chris/test_directory/PDF_Examples/test.pdf"

Produces the whole list.

But if you're only looking for specific tags:

mdls -name kMDItemFSName -name kMDItemAuthors -name kMDItemCreator -name kMDItemTitle -name kMDItemDescription -name kMDItemContentCreationDate -name kMDItemKeywords "/Users/chris/test_directory/PDF_Examples/test.pdf"

kMDItemAuthors             = (null)
kMDItemContentCreationDate = 2014-04-13 03:15:03 +0000
kMDItemCreator             = (null)
kMDItemDescription         = (null)
kMDItemFSName              = "test.pdf"
kMDItemKeywords            = (
    "Keyword_01",
    "Keyword_02"
)
kMDItemTitle               = (null)


There's also a little 3rd party cli-tool:

http://macscripter.net/viewtopic.php?pid=110686#p110686

--
Best Regards,
Chris


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


References: 
 >Extracting Metadata from a PDF Document? (From: "S. J. Cunningham" <email@hidden>)

  • Prev by Date: Re: Extracting Metadata from a PDF Document?
  • Next by Date: Outlook 2011 Script Problem
  • Previous by thread: Re: Extracting Metadata from a PDF Document?
  • Next by thread: Outlook 2011 Script Problem
  • Index(es):
    • Date
    • Thread