{"repo":"SebastiaanKlippert/go-wkhtmltopdf","free":true,"listed":false,"github":"https://github.com/SebastiaanKlippert/go-wkhtmltopdf","clone":"git clone https://github.com/SebastiaanKlippert/go-wkhtmltopdf.git","description":"Golang commandline wrapper for wkhtmltopdf","language":"Go","stars":1182,"topics":["wkhtmltopdf","pdf-document","go","golang","pdf-generation","html-to-pdf","pdf","html"],"license":"MIT","category":"media-processing","readme_excerpt":"go-wkhtmltopdf Golang commandline wrapper for wkhtmltopdf See http://wkhtmltopdf.org/index.html for wkhtmltopdf docs. :warning: WARNING :--------------------------- wkhtmltopdf is no longer maintained and now archived on GitHub. See https://wkhtmltopdf.org/status.html This go package is still maintained and will be for a while, but I recommend looking for alternatives for new projects. What and why We needed a way to generate PDF documents from Go. These vary from invoices with highly customizable lay-outs to reports with tables, graphs and images. In our opinion the best way to do this was by using HTML/CSS templates as source for our PDFs. Using CSS print media types and millimeters instead of pixel units we can generate very acurate PDF documents using wkhtmltopdf. go-wkhtmltopdf is a pure Golang wrapper around the wkhtmltopdf command line utility. It has all options typed out as struct members which makes it very easy to use if you use an IDE with code completion and it has type safety for all options. For example you can set general options like The same goes for adding pages, settings page options, TOC options per page etc. It takes care of setting the correct order of options as these can become very long with muliple pages where you have page and TOC options for each page. Secondly it makes usage in server-type applications easier, every instance (PDF process) has its own output buffer which contains the PDF output and you can feed one input document from an io.Reader","default_branch":null,"files":null,"tree":[],"storefront":"/r/SebastiaanKlippert","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SebastiaanKlippert/go-wkhtmltopdf/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}