how we can simply export a webpage to pdf on click of button using php

I have seen many third party plugins and other sources of converting to pdf but here the question is, but is there any simple way to convert the webpage into pdf and export them without using any third party plugin.

<input id=”convert_pdf” class=”form-control btn btn-primary” value=”convert(PDF)” >