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  Dave Burns 1 year, 7 months ago.

  • Author
  • #58702

    Christian Bahnsen

    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

    Olaf Soyk

    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

      Christian Bahnsen

      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.


  • #58763

    Dave Burns

You must be logged in to reply to this topic.