-
1. Re: Print to a specific printer
gkaiseril Aug 5, 2012 10:31 AM (in response to ΓΒΠ)Use the 'printParams' to set your printer's name, printerName, and other parameters and then use the 'print' method with the 'printParams' option to print. You may need to use 'printerNames' to get the system name of your specific printer.
-
2. Re: Print to a specific printer
ΓΒΠ Aug 13, 2012 9:49 PM (in response to gkaiseril)Hi Thank you for the help.
I have entered the following codes both work separately. However I can not get them to work together. The first line prints page 3 the second one prints to the specified printer.
Any tips on what I am missing to get them to work together? I know next to nothing about Java.
Thank you
John
print()
var pp = this.getPrintParams();
pp.printerName = "Brother QL-570";
this.print(pp)
-
3. Re: Print to a specific printer
ΓΒΠ Aug 13, 2012 10:00 PM (in response to gkaiseril)For some Reason Adobe did not post the entire message the java scrip to print just page 3
print()
Works as long as I have the label printer as the default printer.
-
4. Re: Print to a specific printer
Test Screen Name Aug 14, 2012 6:34 AM (in response to ΓΒΠ)A tip, which I'm sure you'll just find annoying but one day it may help you. You aren't using Java, you're using JavaScript. These are two quite different things, both of which sometimes get used with PDFs. Sometimes JavaScript is shortened to JS, but it's probably best to just write it all out. (Why might it matter? One day you may be trying to follow advice on the web, and it's vital to know whether it's about Java or JavaScript).
-
-
6. Re: Print to a specific printer
ahlaj77 Aug 15, 2012 12:40 PM (in response to ΓΒΠ)Did you by chance run across the Adobe Acrobat Guide for Javascript in Print Production? In the bookmarks section click "Print Production"
http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/javascript/AcroJSGuide.pdf