I want to redirect to another link after generate pdf file how to solve the both problem I use this code just generate file
<button type="submit" class="btn" onclick="homepage(); return false;">Generate</button>
when try this code (<input type="submit" onclick="homepage(); return false;" value="Calculate"/>
) just redirect to my homepage