Git Product home page Git Product logo

reportlabundrm's Introduction

ReportLabUnDRM

Overview

The ReportLabUnDRM script is designed to remove the ReportLab watermark from a PDF file. It is implemented as a command-line tool, allowing users to specify the PDF file they want to process.

Usage

  1. Installation: Ensure you have Python installed on your machine.

  2. Clone the Repository:

    git clone https://github.com/grantUser/ReportLabUnDRM.git
    cd ReportLabUnDRM
    
  3. Run the Script:

    python ReportLabUnDRM.py path/to/your/file.pdf
    

Features

  • Remove Watermark: The script identifies the ReportLab watermark in the second and tenth lines (from the end) of the PDF file and removes these lines.

  • New File Generation: After removing the watermark, the script creates a new PDF file with an incremented version number in the filename.

Example

Suppose you have a PDF file named example.pdf with a ReportLab watermark. To remove the watermark, run the following command:

python script_name.py example.pdf

The script will check if the watermark is present, remove it, and generate a new file named example_undrm.pdf (or example_undrm (1).pdf if a file with the same name already exists).

Note

  • This script relies on Python's argparse module to handle command-line arguments. Ensure you have the necessary permissions to read and write files in the specified directory.

  • Always make a backup of your original file before running any script that modifies it.

reportlabundrm's People

Contributors

grantuser avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.