Download pdf creator html7/1/2023 ![]() DownloadOutput - Force the browser to download the PDF file.FileOutput - Store the PDF to your file system.StringOutput - Get the PDF contents as a string.The following output handlers are available: UrlInput - Fetch the HTML contents from an URL.StringInput - Accepts the HTML contents as a string.The following input handlers are available: $converter = new Converter( $input, new DownloadOutput()) Use Spiritix\ HtmlToPdf\ Output\ DownloadOutput Use Spiritix\ HtmlToPdf\ Input\ UrlInput Now you may use it's specific functionality to get your PDF file. You just need a converter instance, pass an input and an output handler to it and set some options if you like.Īfter running the conversion, the converter will provide you with the output handler instance. The usage of this library is pretty simple. php composer.phar require spiritix/html-to-pdf Usage Spiritix/html-to-pdf package in your project's composer.json. HtmlToPdf can be installed via Composer by requiring the ![]()
0 Comments
Leave a Reply. |