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

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -