javascript - PDFBox setOpenAction to print -
i'm new pdfbox, have requirement send pdf printer when opened. using pdfbox api generate pdfs. have used below code try setting action on open nothing worked. please help. have used different javascript window.print(); this.print(); print();
pddocument doc = new pddocument(); pdactionjavascript javascript=new pdactionjavascript("app.print();"); doc.getdocumentcatalog().setopenaction(javascript);
try pdactionjavascript("this.print({bui: false, bsilent: true, bshrinktofit: true});");
Comments
Post a Comment