ã¯ããã« Headless Chrome ã Node.jsã§ä½¿ç¨ã§ããã©ã¤ãã©ãª Puppeteerã§PDFãåºåããç´¹ä»ã§ãã ãµã¼ããµã¤ãã§ãHTMLåºåãããã®ãPDFã«ãã¦ã帳票ã¨ãã¦ã¯ã©ã¤ã¢ã³ãå´ã«åºåãããªãã¦ãã¨ããã¾ãããã»ã»ã»ãããã¾ããªãããªã»ã»ã»ã ã©ã¡ãã«ãã¦ããåã¯ãããããã§ããããããã¨ãPuppeteerã使ç¨ãããã§ãããããã£ããã¤ã³ãã¨ããããã®ã§ãåããã¦ç´¹ä»ãã¾ãã ç°¡åãªä½¿ãæ¹ã ãµã³ãã«ã¯æ¬å®¶ã«ããã¨ããã§ãã GoogleChrome/puppeteer 注æç¹ã¨ãã¦ãNodeJSã®ãã¼ã¸ã§ã³ã¯v7.6.0以éãé¸ãã§ãã ããããã以ä¸ã ã¨ããµã³ããããã°ã©ã ãåããªãã§ãã ã¾ãã¯ãpuppeteerãã¤ã³ã¹ãã¼ã«ãã¾ãã $ npm i --save puppeteer ãããããããã°ã©ã ãæ¸ãã¾ããããã§ã¯ãindex.jsã¨ãã¾ã
{{#tags}}- {{label}}
{{/tags}}