in reply to print alternative to browser

Why don't you want to use print? What does the documentation for your chosen module/framework say?

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.