Copy link to clipboard
Copied
hello all
Please anyone tell me how can I export a document to pdf using joboption?
I have tried this with no result:
iddoc.Export(idExportFormat.idPDFType, pdfcreationfilepath, False, idapp.PDFExportPresets.Item(Joboptionfile))
Where am I going wrong? It gives error : THE REQUESTED MEMBER OF THE COLLECTION DOES NOT EXIST
Please help
Thanks
Copy link to clipboard
Copied
Hi,
Try this JS snippet ...
//Javascript code
var myJoboption = "tca.joboptions"
var myJoboptionsName= myJoboption.split(".joboptions").join("");
var myPDFexportPreset = app.pdfExportPresets.item(myJoboptionsName);
var myPDFname = app.activeDocument.name.split(".indd").join(".pdf")
var myPDF = new File("~/Documents/" + myPDFname);
app.activeDocument.exportFile(ExportFormat.pdfType, myPDF, false,myPDFexportPreset);
Regards
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more