Skip to main content

SaralGyaan PDF Parser

SaralGyaan PDF Parser is a command-line PDF parsing tool which allows you to:-

  1. Delete Pages from a PDF
  2. Merge PDFs
  3. Sort Pages of a PDF
  4. Split a PDF

Installation

You can install SaralGyaan PDF Parser from PyPI: pip install sg-pdfparser The PDF Parser supports Python 3.6 and above.

How to use?

The SaralGyaan PDF Parser is a command line application, named pdfparser. To start it you can simply open the terminal, go to the folder containing the PDF file(s) to be parsed and call the program:-

$ pdfparser
Welcome to PDF Parser

What do you want to do?

1. Delete Pages from a PDF
2. Merge PDFs
3. Sort Pages of a PDF
4. Split a PDF

Press ctrl + C to exit.
Enter your choice (1-4):

Delete Pages from a PDF

If you select the option to delete pages, it will ask for the filename followed by '.pdf'

Enter your choice (1-4): 1
Delete Pages from a PDF
Enter the name of file with extension(.pdf)

Make sure the pdf file exist at the location and once you provide a valid pdf file, it will give you two options:-

What do you want to do?
 1. Delete specific pages
 2. Keep Specific pages

Both the options accept comma separated values of pages or page ranges or both e.g. 1, 2, 3-5 or 1-2 or 2-3, 4-6. One, thing you need to know that if you use Keep specific pages and change the order like 1-2, 6-4, then it will re-arrange the pages too.

Merge PDFs

This options accepts comma separated file names and it will merge the files in the order, it is provided as an input.

Sort pages of a PDF

Sort pages, give you three options

What do you want to do?
1. Reverse order of all the pages
2. Swap Pages
3. Move certain pages to a specific index
  1. The first one, will simply reverse the order of the pages.
  2. The second one will swap two pages, you can input multiple or single swaps e.g. 1-3, 2-7, 8-9, etc.
  3. The third one will move the page to a certain page number (not index). It also accepts comma separated values. So 21-2 will move page number 21 to 2 and hence shifting the rest of the page to right.

Split a PDF

This gives you two options:-

What do you want to do?
 1. Split all the pages
 2. Split specific pages
  1. The first option will make n splits for n-paged PDF file.
  2. The second one will split the pdf into the ranges or pages as provided. e.g. 1, 3, 9-22, will give three split files first page, third page and pages from nine to twenty two.

Video Usage Guide

You can also check out our Usage Guide on Youtube.

License

© 2020 Udit Vashisht

This repository is licensed under the MIT license. See LICENSE for details.

Metadata

Release files for sg-pdfparser 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sg-pdfparser 1.0.2
File Size Uploaded Provenance Actions
sg-pdfparser-1.0.2.tar.gz 10.4 kB Without provenance Details for sg-pdfparser-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sg-pdfparser 1.0.2
File Interpreter ABI Platform Actions
sg_pdfparser-1.0.2-py3-none-any.whl Python 3 none any Details for sg_pdfparser-1.0.2-py3-none-any.whl

Total release size: 22.3 kB

Release files / sg-pdfparser-1.0.2.tar.gz

Download URL sg-pdfparser-1.0.2.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c2b12d4a599095c8b53b3f360f8c8173f6c38362b5ed6af77e441faf3f379479
BLAKE2b-256 checksum
How to use checksums
3613d2b877b0193237f20ca033ad03c3d64e8c075b66928afc3b58703c12d48f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release files / sg_pdfparser-1.0.2-py3-none-any.whl

Download URL sg_pdfparser-1.0.2-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f560d65b42cb87cf1e5532bddaa9e5668c0981ce9fd860f7cb810205b5b7fadc
BLAKE2b-256 checksum
How to use checksums
48167a9ae85783b8802ee1e4f7295e160a92dff3b123170876f5ef7172b1de09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Security for sg-pdfparser 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page