Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

export to pdf using joboption

Guest
Aug 26, 2015 Aug 26, 2015

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

TOPICS
Scripting
298
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 26, 2015 Aug 26, 2015
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines