Skip to content

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.

Reads the information from the document and returns it as a dictionary with standard keys.

ParameterEditorDescription
pathexpressionPDF file path.

Ninguno.

Returns a Dictionary with these keys: Title, Author, Subject, Creator, Producer, Keywords, PageCount, CreationDate, ModDate.

PDF Get Metadata path = = ruta → output: meta
Log message = = "Título: " + str(meta["Title"]) + " — " + str(meta["PageCount"]) + " páginas"