How to export metadata informations like document title and author name of indesign book to pdf
Hi, I am trying to export metadata informations like Author name and Document title available in first document of book to single pdf. While manually exporting whole book to single pdf, I am able to get all metadata informations by selecting the all documents in book by exporting it with option available in book menubar "Export selected documents to pdf"!
But while trying to export via script, unable to get meta informations available in first document of book. Attached the script for reference. Is there any other way to achieve this!
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
app.documents.everyItem().close(SaveOptions.YES);
app.activeBook.save();
var myBookName = app.activeBook.name.replace(".indb", "");
var myFilePath = app.activeBook.filePath + "/" + myBookName + ".pdf";
var myFile = new File(myFilePath);
app.activeBook.exportFile(ExportFormat.PDF_TYPE, myFile, false);