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

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -