pdf-redactor | general purpose PDF text-layer redaction tool | Document Editor library

 by   JoshData Python Version: Current License: CC0-1.0

kandi X-RAY | pdf-redactor Summary

kandi X-RAY | pdf-redactor Summary

pdf-redactor is a Python library typically used in Editor, Document Editor applications. pdf-redactor has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can download it from GitHub.

A general-purpose PDF text-layer redaction tool, in pure Python, by Joshua Tauberer and Antoine McGrath. pdf-redactor uses [pdfrw] under the hood to parse and write out the PDF.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              pdf-redactor has a low active ecosystem.
              It has 148 star(s) with 51 fork(s). There are 6 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 18 open issues and 4 have been closed. On average issues are closed in 58 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of pdf-redactor is current.

            kandi-Quality Quality

              pdf-redactor has no bugs reported.

            kandi-Security Security

              pdf-redactor has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              pdf-redactor is licensed under the CC0-1.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              pdf-redactor releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed pdf-redactor and discovered the below as its top functions. This is intended to give you an instant insight into pdf-redactor implemented functionality, and help decide if they suit your requirements.
            • Build a text layer .
            • Initialize from a CMap object .
            • Update text layer based on provided text layer .
            • Update PDF metadata .
            • Tokenize a PDF stream .
            • Read image data .
            • Redact the PDF .
            • Update the XMP metadata .
            • Convert a Unicode string to Unicode .
            • Update an annotation .
            Get all kandi verified functions for this library.

            pdf-redactor Key Features

            No Key Features are available at this moment for pdf-redactor.

            pdf-redactor Examples and Code Snippets

            No Code Snippets are available at this moment for pdf-redactor.

            Community Discussions

            QUESTION

            Python PDF-Redactor only partially mask content
            Asked 2020-Apr-15 at 21:12

            I'm using the python PDF redactor and it works great: https://github.com/JoshData/pdf-redactor

            The syntax for masking content as specified in the github looks like this, where the regex is the pattern to find and the X's in the lambda expression is the string to replace the found patterns with:

            ...

            ANSWER

            Answered 2020-Apr-15 at 21:12

            You may re-group the patterns to capture what you need to keep, and make use of the match data object, m:

            Source https://stackoverflow.com/questions/61238609

            QUESTION

            Editing PDF metadata fields with Python3 and pdfrw
            Asked 2019-May-21 at 07:43

            I'm trying to edit the metadata Title field of PDFs, to include the ASCII equivalents when possible. I'm using Python3 and the module pdfrw.

            How can I do string operations that replace the metadata fields?

            My test code is here:

            ...

            ANSWER

            Answered 2019-May-21 at 07:42

            You have to use the .decode() method on the metadata fields:

            Source https://stackoverflow.com/questions/56233416

            QUESTION

            pdf-redactor syntax for URL replacement
            Asked 2019-Feb-23 at 07:33

            Using https://github.com/JoshData/pdf-redactor if I provide a PDF with multiple URL links and use the example code:

            ...

            ANSWER

            Answered 2019-Feb-23 at 07:33

            Actually you can do a lot with that lambda in that lib. In this specific case you gave us, anything you insert in that function will have https://www.google.com as and output.

            But if you want to make something different from that you can use either the URL (href) or the annotation (or both!) as parameters to change the URLs in the document. I will present to you a way you can change multiple URLs at once:

            Source https://stackoverflow.com/questions/54838533

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install pdf-redactor

            You can download it from GitHub.
            You can use pdf-redactor like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/JoshData/pdf-redactor.git

          • CLI

            gh repo clone JoshData/pdf-redactor

          • sshUrl

            git@github.com:JoshData/pdf-redactor.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link