Using a Script to Print PDF page from Illustrator
Our company has had a pallet that used to have a print PDF page, but it stopped working due to the printer changed networks. I have gotten the printerName updated but the script will not complete the print. The debugger is stoping on the activeDocument.print(options); I have tried countless entries and I cannot get the script to finish through. Below is a copy of the code that I have so far. What I want it to do is just print the active document to the printer with the scale of fit to page. Am I missing something on the code? Can someone help me with this?
{var thisDoc = app.activeDocument;
options.printerName = "10.32.113.88_1 on VITOHFS01P"; //printer on network
var jobOptions = new PrintJobOptions();
var options = new PrintOptions();
options.fitToPage = true;
options.jobOptions = jobOptions;
activeDocument.print(options);
}
