GithubHelp home page GithubHelp logo

auto-ohin's Introduction

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

  • Sota Misawa (mitawaut)
  • mathematical engineering faculty of UTokyo
  • E-mail: [email protected]

License

"auto-ohin" is under MIT license.

auto-ohin's People

Contributors

somisawa avatar

Stargazers

Kaito Sugimoto avatar noranekominarai avatar Yasutaka Kato avatar Hirokazu Takaya avatar Taqqn avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.