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: Uses PyMuPDF now instead of PyPDF2 and pdf2image. Also rewrited some part to remove OpenCV dependency.

Licence

GNU GPL v3.0

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.3.tar.gz (16.9 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.3-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Nyquisis-1.0.3.tar.gz
  • Upload date:
  • Size: 16.9 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.3.tar.gz
Algorithm Hash digest
SHA256 49cd7819b6c7ad9d5692fc3dc4b46c3a85a68727f1892daeca6c48b6002def53
MD5 0baeb6722880f0b8c6563697f6f04daf
BLAKE2b-256 0925e756ed21963d47fbe455c0f4f02013a7f910f4efe375957be8fc0a2a11c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Nyquisis-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 17.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 78304fb4bcebc3e14dd7ba4a4f36a270ac3e6d0e512710826caf79dc5d5fca27
MD5 7ebb0e66ca6eaecb51d95f5360ad7894
BLAKE2b-256 faac236b43d4199a5fd64138ad295e0f37aa7cd6464398b746bf1d10f4a38dff

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