PDF Get Metadata
PDF Get Metadata
Section titled “PDF Get Metadata”Type: pdf-get-metadata · Package: PDF Activities v1.0.0 · Output: Dictionary
Returns the metadata of a PDF: title, author, creation and modification dates, number of pages and more. Useful for classifying documents, validating their origin or recording file information.
How it works
Section titled “How it works”Reads the information from the document and returns it as a dictionary with standard keys.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
path | expression | PDF file path. |
Optional parameters
Section titled “Optional parameters”Ninguno.
Output
Section titled “Output”Returns a Dictionary with these keys: Title, Author, Subject, Creator, Producer, Keywords, PageCount, CreationDate, ModDate.
Example
Section titled “Example”PDF Get Metadata path = = ruta → output: metaLog message = = "Título: " + str(meta["Title"]) + " — " + str(meta["PageCount"]) + " páginas"Related activities
Section titled “Related activities”- PDF Get Page Count — only the number of pages.
- PDF Get Text — the content of the document.