Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

nodejsでMarkdownファイルを署名入りでPDF化する

More than 1 year has passed since last update.

markdown-pdfを利用し、Markdown記法で書かれたREADMEを署名付きでPDF化したいと思います。

1. markdown-pdfをインストール

グローバルインストールしておくと便利です

npm install -g markdown-pdf

2. footerファイルを用意

running.jsというファイルを作りフッター情報を記載します。(header情報も記載できます)

exports.header = null;

exports.footer = {
        height: "1cm",
        contents: function(pageNum, numPages) {
          return "<p><span style='font-size:10px; float:right;'>copyright © 2018 HogeHoge All Right Reserved</span></p>"
        }
    };

3.PDF化

markdown-pdf -h running.js <markdown-file-path>でPDF化できます。(markdown-pdf <markdown-file-path>で署名なしになります)

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away