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.2.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.2-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Nyquisis-1.0.2.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 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.2.tar.gz
Algorithm Hash digest
SHA256 4fd9d5d373e0e49634fd1d1fb77ad6f3070104107305a09f8cce51118c0b1915
MD5 e44dcfb8d6df0d576fd10c4aca097410
BLAKE2b-256 c09d2b2d948e687e6aa2c868fe1d6663aae84c49d0766dfa1de913ccfbd22dea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Nyquisis-1.0.2-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/4.10.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 93a0f5cd9f3f64108d787cab301b94585ad22b07401ff19f91799b677021d072
MD5 18b2a53cabcaa7c490c3c1b2dce163da
BLAKE2b-256 269c61065ec3e725fc66c0cbcff5e46edfb1dfdd525d396025af6f997d7b3a26

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