This content has been marked as final. Show 3 replies
I don't know the VB but the JS is:
var myPDFExportPreset = app.pdfExportPresets.item("Preset");
I hope this helps you figure out the VB.
Thanks Brett, your confirmation made me dig a bit further. The earlier attempts I made were actually working, however, when using the preset InD apparently ignores the .PrintPreferences.PrintFile= command and uses the print file from the preset, or at least the last filename used before the preset was saved.
Now I'll look to see if there is a way to set the output filename in the preset.
That was pretty simple. It doesn't matter whether you assign a reference or simply use the item within the presets (InD.PrinterPresets(2), for instance), the part I was missing is that when a preset is used in the .Printout command the .PrintPreferences.Printfile setting is ignored.
You can set the filename for the preset simply by using .PrintFile on the preset and it works wonderfully.
i.e.: MyPrintPreset.PrintFile=MyFilename$ or .PrintPresets(2).PrintFile="MyFilename$