Skip to main content

You can ohin on the input pdf easily.

Project description

auto-ohin

You can ohin on the input pdf easily.

Installation

pip install auto-ohin

Requirement

Pillow = "^8.0.1"
reportlab = "^3.5.55"
PyPDF4 = "^1.27.0"
jsonnet = "^0.16.0"

Usage

1. First 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
    "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.
}

2. Run simply in commandlines.

auto-ohin path/to/config.jsonnet

Author

License

"auto-ohin" is under MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

auto_ohin-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file auto_ohin-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: auto_ohin-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.0

File hashes

Hashes for auto_ohin-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 20284419efcccf20840d4f4ff11fbebdca81c0d0db0edef12b0ce969baa0a2b1
MD5 eeee8705f169786c080d3f2b88025f3a
BLAKE2b-256 c883bcb33a4be9e2280174ddbbc90cb76a009c0b97caba2fd13ffdfc01b7f1c1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page