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

Welcome Forums General PowerShell Q&A 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

 
Participant
1 year, 10 months ago.

  • Author
    Posts
  • #58702

    Participant
    Points: 0
    Rank: Member

    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

    Participant
    Points: 2
    Rank: Member

    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

      Participant
      Points: 0
      Rank: Member

      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

    Participant
    Points: 0
    Rank: Member

The topic ‘powershell - iterate over a collection of PDFs looking for specific info.subject’ is closed to new replies.