Skip to main content

A simple tool automatically drops the duplicate pages in PDF files.

Project description

Nyquisis

Ever downloaded a lecture slide like this?

The duplicates are used for presentation, but they become annoying when one wants to read the PDF slides. This simple tool automatically drops the duplicates in the PDF files, for a better readability.

Install

Use the following command to install Nyquisis, with its dependencies:

$ pip3 install nyquisis

Usage

Use command line to interact:

$ nyquisis ./ve216,chap1,teach.pdf

In this case, it will generate ./output/ve216,chap1,teach.pdf.

You can also specify the output location:

$ nyquisis ./ve216,chap1,teach.pdf -o ./chap1_output.pdf

The path can also be a directory:

$ nyquisis lecture_slides

This will traverse all PDF files under the directory, and generate duplicate-dropped versions in ./output at the same directory as the original PDF file. In this mode the -o or --out argument is invalid.

Features

  • Generate PDF files that without duplicates.
  • Traverse a given directory to perform drop tasks.
  • Preserve the TOC structure in the original PDF file.

Update Logs:

  • 2022/1/20: Remastered.
  • 2020/5/19: Now pdfDropDuplicates will preserve the original TOC structure.
  • 2020/5/18: Code Refactored. Uses PyMuPDF now instead of PyPDF2 and pdf2image, and also rewrited some part to remove OpenCV dependency.
  • 2020/5/17: Project INIT.

Licence

GNU GPL v3.0 Visit my blog: enoch2090

Project details


Download files

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

Source Distribution

Nyquisis-1.0.1.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Nyquisis-1.0.1-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file Nyquisis-1.0.1.tar.gz.

File metadata

  • Download URL: Nyquisis-1.0.1.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/3.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for Nyquisis-1.0.1.tar.gz
Algorithm Hash digest
SHA256 900e44f2ddfdaaeb527326061b03ac2ae6196b820a6f86b40b30ac99c4c65ca0
MD5 fe87f8528a22fddd8ce2b8de049bd36f
BLAKE2b-256 e2d10fdf5cef3491a0b62ddf03336c4bedd8d34802cbe8ff8027fbb62d77fb87

See more details on using hashes here.

File details

Details for the file Nyquisis-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: Nyquisis-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/3.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for Nyquisis-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 69809fe9cebedf991ae79807d66e183c003b2447dc68316f858bc4175b2ca734
MD5 4458ca9bf6824e9d31f14a8f5dc9ec00
BLAKE2b-256 88bee3b61cd2e83ff0b6bbdb52448ba4debf745eec3f1d0115ac7a146c9cb90c

See more details on using hashes here.

Supported by

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