Printing from panel
I am attempting to print a file from my panel before closing it.
Here is the print script:
if(app.documents.length > 0){
var opts = new PrintOptions();
opts.printerName = 'Art Laserjet';
opts.printPreset = '[Default]'
app.activeDocument.print(opts);
}
}
This works fine when I run from the ExtendScript Debugger in VSCode. When I attempt to run this from my panel, I get an error alert from Illustrator, "Can't Print the illustration. The Color Management settings are inconsistent."
I've attempted to add PrinterColorMangementOptions to the PrintOptions var, but they didn't seem to make a difference. Maybe I just did it wrong? Anyone have any experience with this? I can provide more code if needed.
EDIT my console is feeding me: "Error: an Illustrator error occurred: 300 ('')" . Hopefully this helps get me an answer
