Is it posible for the workflow to extract metadata from a pdf from PDF document properties ?
Need the string in the Keywords field.
The following script uses Workflow’s AlambicEdit API toread the metadata from the current PDF job file and store the Keywords properties in a process variable named keywords.
var myPDF = Watch.GetPDFEditObject();
myPDF.open(Watch.GetJobFileName(),false);
var meta = myPDF.GetInfos();
Watch.SetVariable("keywords",meta.keywords);
myPDF.Close();
More information on the AlambicEdit API can be found in the online help.
Thanks Phil
Can a datamapper do the same trick ?
(Not with this scipt of cause)
No, the DataMapper cannot access the PDF Metadata. But you can still use Workflow to extract it and then pass it as a runtime parameter to your data mapping config.
Will pass it in a runtime parameter.