Giter Club home page Giter Club logo

pdg2pdf's Introduction

pdg2pdf

This is a simple CLI script to convert a series of PDG files to a single PDF file. 本脚本用于将一系列 PDG 文件转换为单个 PDF 文件。

Usage

usage:

  • pdg2pdf.py [-h] [--path PATH] [--output OUTPUT] [--del_exif]
  • pdg2pdf.exe [-h] [--path PATH] [--output OUTPUT] [--del_exif]

optional arguments:

Arguments Description
-h, --help show this help message and exit
--path, -p PATH a path with target .pdg files inside
(default: the folder where this script is located)
--output, -o OUTPUT the name of output .pdf file (default: output.pdf)
--del_exif, -d delete the EXIF data from the .jpg file

Example:

  • python pdg2pdf.py -p "C:/Users/xxx/Desktop/book" -o "book.pdf" -d
  • pdg2pdf.exe -p "C:/Users/xxx/Desktop/book" -o "book.pdf" -d

Before running the script, renamimg .pdg files in a sequence is recommended. 在运行本脚本之前,建议将 .pdg 文件按顺序重命名。

Requirements

  • Python 3.6+
  • jpg2pdf~=0.1.0
  • piexif~=1.1.3
  • tqdm~=4.66.2

Reference

pdg2pdf's People

Contributors

r3c0ger 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.