Hi
I am trying to export indd file to pdf using uxp scripting. But it show some error like in below screenshot
Kindly please help me to rectify this issue.
document.getElementById("dak-print").addEventListener("click" , function()
{
const {app,ExportFormat } = require('indesign');
const {File} = require('uxp').storage;
var doc = app.activeDocument;
doc.exportFile(
ExportFormat.pdfType,
File(page_loc + "\\"+pdf_filename+".pdf"),
false
);
});
This is my code…
Please help…