We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.
I received a joboptions file "my_preset" and I put it under the location of C:\Program Files\Adobe\Adobe InDesign Server 2021\Resources\Adobe PDF\settings\mul.
Then I tried to load this preset:
var my_preset = app.pdfExportPresets.item("[my_preset]"); app.documents.item(0).exportFile(ExportFormat.pdfType, myFile, my_preset);
But the server couldn't load this file:
Invalid value for parameter 'using' of method 'exportFile'. Expected PDFExportPreset, but received nothing.
I tried to restart the InDesignServerService x64 service but it still can't load this preset.
Anything I can do to use this preset file? I'm sure it's a valid one because it worked on another machine. Simply coping it to my machine didn't work.
Thanks Mike, unfortunately I got the same error message. I think itemByName() or item() might be the same function.
Yeah I also found that link. But I don't have a Typefi service running in my machine.
Hi Mike, yeah I also tried without  brackets but still failed.
why don't you try to load the joboptions file with
app.importFile( ExportPresetFormat.PDF_EXPORT_PRESETS_FORMAT , pdfExportPresetFile );
Also read the comments below my reply there.
( ACP )