c# - Print PDF with Acrobat Pro: select printer -
i can print pdf acrobat (not reader) here code:
var mapp = new acroappclass(); var avdoc = new acroavdocclass(); if (avdoc.open(filename, "")) { var pddoc = (cacropddoc)avdoc.getpddoc(); avdoc.printpagessilent(0, pddoc.getnumpages()-1, 2, 1, 1); pddoc.close(); avdoc.close(1); } if (mapp != null) { mapp.closealldocs(); mapp.exit(); } this print pdf default windows printer.
there way choose printer without changing windows default printer?
here documentation: http://wwwimages.adobe.com/www.adobe.com/content/dam/adobe/en/devnet/acrobat/pdfs/iac_api_reference.pdf
it seems not possible:
printpages uses default printer setting.
Comments
Post a Comment