You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
こんにちは。フロントエンドエキスパートチームの穴井(@pirosikick)です。福岡在住で、普段は福岡のweworkで働いています。他のメンバーは皆、東京に居てリモートで仕事をしていますが、モブでわいわい開発していますし、weworkが快適すぎて、毎日楽しいです! フロントエンドエキスパートチームでは、サイボウズの各プロダクトが抱えるWebフロントエンドの課題を解決するのが仕事の一つです。 blog.cybozu.io 最近の取り組みとして、Puppeteerで不要なCSSを消した事例を紹介します。 このブログは、6/19に福岡で開催した「Google I/O '19のWebをまとめる会」で登壇したときの内容を詳細に説明しつつ、アップデートした部分もあるので、発表見たぞ、スライド見たぞという方も見ていただけますと幸いです。 speakerdeck.com きっかけ とあるプロダクトのCS
はじめに Headless Chrome を Node.jsで使用できるライブラリ PuppeteerでPDFを出力する紹介です。 サーバサイドで、HTML出力したものをPDFにして、帳票としてクライアント側に出力するなんてことありますよね・・・。あんまりないかな・・・。 どちらにしても、僕はよくやるんです。そういうときPuppeteerを使用するんですが、ハマったポイントとかもあるので、合わせて紹介します。 簡単な使い方。 サンプルは本家にあるとおりです。 GoogleChrome/puppeteer 注意点として、NodeJSのバージョンはv7.6.0以降を選んでください。それ以下だと、サンプロプログラムが動かないです。 まずは、puppeteerをインストールします。 $ npm i --save puppeteer それから、プログラムを書きます。ここでは、index.jsとしまし
Requirements Node 7.6.0 or greater. Usage First, include the convertHTMLToPDF from the package in your .js file: const convertHTMLToPDF = require("pdf-puppeteer"); var callback = function (pdf) { // do something with the PDF like send it as the response res.setHeader("Content-Type", "application/pdf"); res.send(pdf); } /** * Usage * @param html - This is the html to be converted to a pdf * @param
In one of our recent projects at Coletiv the user had to be able to generate a PDF invoice with the list of orders he did on the platform we have built using Elixir. By that time I didn’t know what could be the best solution or if there was some native implementation to use. With this article I want to share with you the steps I followed, the decisions I have made until I reached the final solutio
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く