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

How to show in django cms breadcrumbs full path? -

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

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