Skip to content

PDFの指定の位置にテキストを自動的に埋め込むスクリプトです

Notifications You must be signed in to change notification settings

tomoakinishimura/pdf-writer

Repository files navigation

pdf-writer

  • 指定フォルダを再起的にPDFファイルの書き換えを行います
  • DLはこちらから最新版を https://github.com/tomoakinishimura/pdf-writer/releases
  • Windowsコマンドプロンプトにてダウンロードした指定execファイルを実行してください
C> ./pdw-writer.exe --input フォルダ --output フォルダ
  • 他下記方法のオプションが利用できます
Usage: ./pdf-writer [options]
Sample1: ./pdf-writer --input xxx --output xxx
Sample2: ./pdf-writer --input xxx --output xxx --size 14 --isBold true --color 205,92,92 --x 10 --y 10

Options:
--input <inputFolderPath>    Specify the input folder path.
--output <outputFolderPath>  Specify the output folder path.
--size <fontSize>            Specify the font size. (default: 12)
--isBold <boolean>           Specify the true to be bold. (default: false)
--color <R,G,B>              Specify the text color in RGB format. (default: 0,0,0)
--x <xCoordinate>            Specify the x-coordinate. (default: 5)
--y <yCoordinate>            Specify the y-coordinate. (default: 5)
--help                       Display this help message.

開発向け

# for mac
deno compile --unstable --allow-read --allow-write --no-check --node-modules-dir pdf-writer.ts

# for windows
deno compile --unstable --allow-read --allow-write --allow-net --no-check --node-modules-dir --target x86_64-pc-windows-msvc  pdf-writer.ts