{"id":20174,"date":"2022-07-05T09:10:59","date_gmt":"2022-07-05T07:10:59","guid":{"rendered":"https:\/\/www.wjst.de\/blog\/?p=20174"},"modified":"2022-07-05T09:10:59","modified_gmt":"2022-07-05T07:10:59","slug":"headless-chrome-is-better-than-wkhtmltopdf-to-store-pdfs-of-websites","status":"publish","type":"post","link":"https:\/\/www.wjst.de\/blog\/sciencesurf\/2022\/07\/headless-chrome-is-better-than-wkhtmltopdf-to-store-pdfs-of-websites\/","title":{"rendered":"Headless Chrome is better than wkhtmltopdf to store PDFs of websites"},"content":{"rendered":"<p>I have been using wkhtmltopdf for ages but as I am getting more and more issues with missing fonts, I was looking for an alternative in particular when going for websites that load dynamically.<br \/>\nHere is the macOS syntax<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&quot;\/Applications\/Google\\ Chrome.app\/Contents\/MacOS\/Google\\ Chrome&quot; --headless --disable-gpu --print-to-pdf=\/Users\/xxx\/Desktop\/pdf\/test.pdf https:\/\/chromestatus.com\/features\r\n<\/pre>\n\n<p>&nbsp;<\/p>\n<div class=\"bottom-note\">\n  <span class=\"mod1\">CC-BY-NC Science Surf , accessed 06.04.2026<\/span>\n <\/div>","protected":false},"excerpt":{"rendered":"<p>I have been using wkhtmltopdf for ages but as I am getting more and more issues with missing fonts, I was looking for an alternative in particular when going for websites that load dynamically. Here is the macOS syntax &quot;\/Applications\/Google\\ Chrome.app\/Contents\/MacOS\/Google\\ Chrome&quot; &#8211;headless &#8211;disable-gpu &#8211;print-to-pdf=\/Users\/xxx\/Desktop\/pdf\/test.pdf https:\/\/chromestatus.com\/features &nbsp; CC-BY-NC Science Surf , accessed 06.04.2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[2681],"class_list":["post-20174","post","type-post","status-publish","format-standard","hentry","category-computer-software","tag-pdf"],"_links":{"self":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/20174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/comments?post=20174"}],"version-history":[{"count":1,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/20174\/revisions"}],"predecessor-version":[{"id":20175,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/20174\/revisions\/20175"}],"wp:attachment":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/media?parent=20174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/categories?post=20174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/tags?post=20174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}