問題タブ [html-pdf]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript - ページ番号html-pdf node.jsを記録するには?
node.jsにhtml-pdfを使用して、htmlからpdfを作成しています。html-pdf には、フッターにページ番号を追加する機能が組み込まれています。これらのページ番号を何らかの方法で、おそらく配列に記録したいと思います。これは私の現在のコードです:
pageFooter div 内の {{page}} は、新しいページごとにページ番号を 1 ずつ自動的に増やします。ページ番号の値を変数に記録するにはどうすればよいですか?