I would like to silently print different pages with embedded javascript in PDFs. I looked into adobe's JS guide. This is what i got:
pp = {
printerName: "BrotherA",
bUI: false,
bSilent: true,
nStart: 0,
nEnd: 2};
this.print(pp);
pp = {
printerName: "BrotherB",
bUI: false,
bSilent: true,
nStart: 3,
nEnd: 4};
this.print(pp);
Error message: "There was a problem reading this document (14)."
If i set the param bUI to true, or uncomment it, the code works. But then i got the UI, which i don't want to see.
Anyone some ideas? thx