Home Search

DriveWorks Pro 21
PDFGetMetaData

Send Feedback

PDFGetMetaData

This function returns the metadata of the given PDF document. The result is returned as a table array.

Syntax

PDFGetMetaData([PDF File])

Where:

PDF File is the path to the PDF file from which to get the metadata. If the path is not absolute DriveWorks will attempt to resolve it.

Examples

Rule

Result
PDFGetMetaData("DataSheets\ProductGuide.pdf")Will return:

{"Key","Value";"pdf:Producer","Microsoft® Publisher 2019";"xmp:CreatorTool","Microsoft® Publisher 2019";"xmp:CreateDate","2021-08-05T11:36:33+01:00";"xmp:ModifyDate","2021-08-05T11:36:33+01:00";"xmpMM:DocumentID","uuid:08448818-C8A6-49A4-8CF1-EAAE00A6084C";"xmpMM:InstanceID","uuid:08448818-C8A6-49A4-8CF1-EAAE00A6084C"}

PDFGetMetaData("D:\DriveWorks\DataSheets\ProductGuide.pdf")Will return:

{"Key","Value";"pdf:Producer","Microsoft® Publisher 2019";"xmp:CreatorTool","Microsoft® Publisher 2019";"xmp:CreateDate","2021-08-05T11:36:33+01:00";"xmp:ModifyDate","2021-08-05T11:36:33+01:00";"xmpMM:DocumentID","uuid:08448818-C8A6-49A4-8CF1-EAAE00A6084C";"xmpMM:InstanceID","uuid:08448818-C8A6-49A4-8CF1-EAAE00A6084C"}

Other Key\ Value pairs may be returned depending on the metadata in the PDF document.

Result when viewed as a table

KeyValue
pdf:ProducerMicrosoft® Publisher 2019
xmp:CreatorToolMicrosoft® Publisher 2019
xmp:CreateDate2021-08-05T11:36:33+01:00
xmp:ModifyDate2021-08-05T11:36:33+01:00
xmpMM:DocumentIDuuid:08448818-C8A6-49A4-8CF1-EAAE00A6084C
xmpMM:InstanceIDuuid:08448818-C8A6-49A4-8CF1-EAAE00A6084C