Skip to content

somisawa/auto-ohin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auto-ohin

You can ohin on the input pdf easily. In other words, you can put an image such as e-signature or e-imprinting on pdf.

ohin = imprinting, signature

Keywords

e-signature, 電子署名, 電子押印, 電子印鑑, 押印廃止

Installation

pip install auto-ohin

Requirement

python = "^3.7"

Usage

1. First of all, you only need config files like below.

local root = "path/to/root/"; # row path
local pathgen(path) = root + path;
{
    "input_path": pathgen("input.pdf"), # pdf path on which you want to sign.
    "save_path": pathgen("output.pdf"), # save path you want to save to.
    "img_path": pathgen("inkan.png"), # img path which you want to put on the pdf.
    "obj_pages": [1, 3], # List of page numbers you want to put. This is 1-indexed.
    "position": [147, 225], # The position List(mm)[width, height] to put image. The origin point is the lower left corner.
    "img_size": [20, 20], # List(px)[width, height] you want to resize.
    "pdf_size": "A4" # Now A0~A5 are available.
}

2. Run this simply in commandlines.

auto-ohin path/to/config.jsonnet

Samples

All input and output samples are available in experiments

Author

License

"auto-ohin" is under MIT license.

About

You can ohin on the input pdf easily.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published