@Aaron_Dempwolff you cannot make a call to sling model by button click, thats more of client side interaction but you can make a call to servlet(JS Ajax call)and get the return of pdf url it generated and take the user to that pdf in same tab or new tab. Just an idea.