Script to outline text when open pdf
use AI to directly open pdf , if some computer missing font, so these character will show error glyph.
how to write a correct script , the highlight is selected? thanks

app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
var pdfOptions = app.preferences.PDFFileOptions;
pdfOptions.pageRangeToOpen = "all";
pdfOptions.placeAsLinks = false;
//how to add outline action in here?
var idoc = app.open(File(path)); // full path to your pdf
app.userInteractionLevel = UserInteractionLevel.DISPLAYALERTS;
