项目作者: greed2411

项目描述 :
Scripts to merge and split PDFs, merge images into PDFs
高级语言: Python
项目地址: git://github.com/greed2411/PDFtools.git
创建时间: 2017-11-24T07:43:29Z
项目社区:https://github.com/greed2411/PDFtools

开源协议:

下载


PDFtools

A set of scripts which make handling PDFs easier. Works across all platforms. Tested on Pop! OS 20.04 and Python 3.8.11.

merger

Script to merge PDFs

Usage

Open Terminal where the script is present

  1. $ python pdfmerger.py
  2. Enter the path to the pdf files : /media/greed/Windows8_OS/Me/Files/VIT/FALLSEM_17-18/OS
  3. Enter output filename : osfatportions
  4. Wait...
  5. Done xD
  6. $

subset

Script to create a PDF which is a subset of the original PDF.

Usage

Open Terminal where the script is present, make sure the script and the pdf file are in the same directory.

Note : when you give 6-13, it includes 6, 13 and all the numbers inbetween them.

  1. $ python subset.py
  2. Enter the name of the pdf : osfatportions
  3. Enter the slicing : 1-3 6-13 16 19-20
  4. Enter output filename : splitted
  5. Wait...
  6. Processing 498 pages...
  7. Returning 14 pages...
  8. Done.
  9. $

images2pdf

Script to create a PDF with all the images in the current working directory.

Usage

Open Terminal where the script and the images are present and run the images2pdfgenereator.py

Note: script supports both .jpg and .png formats only. Haven’t tested with any other formats.

  1. λ python images2pdfgenerator.py
  2. Enter output filename: test
  3. Done.
  4. λ