Code Monkey home page Code Monkey logo

pdfflattener's Introduction

PDF Flattener

Properly redacting PDF files can be an expensive job. Oftentimes, files are released with the impression that they are redacted because you can't see the redacted text. In reality, those big black rectangles can be removed quite easily with the right editor, leaving behind the confidential text that should have been removed.

Preseving PDF form content can be a concern as well. How can we be assured that form content is not altered after we receive it?

When a PDF is flattened, the layered content, like those floating black rectangles and form fields, are all combined into a single image layer.

There are many high cost solutions to achieve this. It can also be done with freely available PDF libraries. This solution uses Apache PDFBox, which is available under the Apache License. This project is licensed under the same license.

Libraries Used

This project, along with all the libraries it uses are licensed under the Apache License.

For convenience, these binaries are bundled into the main build.

Requirements

  • PDFBox requires at least Java 8 to run. This project is compiled to work with Java 8 or better.
  • Memory. Depending on the size of your PDF, it may take over 1 GB of memory to process it.

Usage

How to Redact in Adobe Acrobat Reader for Free

Check the Releases for an executable JAR file. Note that the executable JAR makes use of Java's JFileChooser class, so a GUI is required.

Alternatively, you can include the JAR file in your project, and call the static flattenPDF(File src, File dest) method.

pdfflattener's People

Contributors

dangowans avatar danharasymiw avatar imgbotapp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pdfflattener's Issues

Kind Request - no gui version

I would highly appreciate a version that could be used purely from command line, no GUI.
Input file name and DPI would be only paramenters in.
Default output file name: proposed = input_flattened.pdf
Proposed switch; /O:outputfilename

Thanks in advance!!
CT

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.