This function returns the metadata of the given PDF document. The result is returned as a table array.
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.
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.
| 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 |