powershell - iterate over a collection of PDFs looking for specific info.subject

This topic contains 3 replies, has 3 voices, and was last updated by Profile photo of Dave Burns Dave Burns 1 week ago.

  • Author
    Posts
  • #58702
    Profile photo of Christian Bahnsen
    Christian Bahnsen
    Participant

    Does anyone know how to iterate over a collection of PDFs using Powershell, looking for documents with specific information stored in one of the info properties, e.g., info.subject?

    As part of a document-workflow process I'm working on, I'm going to be storing values in some of the info properties, viz., Author, Subject, and Keywords. It would be very useful to later be able to find PDF documents that have specific information stored in those properties.

    In Windows, if you look at the Properties for a PDF document, on the PDF tab you can see some of the info properties. Ideally, I'd be able to access those properties without having to actually open the PDF.

    Christian Bahnsen

  • #58705
    Profile photo of Olaf Soyk
    Olaf Soyk
    Participant

    Out of the box ... without some specialized function or module or something like this Powershell does not know that much about pdf files. You can show what's available with :

    Get-Item -Path -path to your pdf file-\-your pdf file-.pdf | Select-Object -Property *

    😉

    • #58706
      Profile photo of Christian Bahnsen
      Christian Bahnsen
      Participant

      Thanks for your reply.

      Yes, the info properties are metadata, so they don't show up in the standard file properties.

      I'm hoping someone has already cracked this nut. The Adobe Acrobat technical support community doesn't seem to have the breadth and depth I find for MSFT products.

      Christian

  • #58763
    Profile photo of Dave Burns
    Dave Burns
    Participant

You must be logged in to reply to this topic.