-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature request] anonymize PDFs via UI redaction (Drawing black rectangle etc) #465
Comments
"select areas to anonymize" Can you explain the general process |
Of course. The best explanation can you find here in another software: https://code-industry.net/masterpdfeditor-help/redacting-pdf-document/ |
Just to add a little more description of the workflow in a couple other pdf editors that have this feature: This is a feature I've used regularly in both Adobe Acrobat and Foxit PDF; they both have a similar approach:
Foxit PDF screenshots:Redaction menu: Text highlighting (not visible in the screenshot is the cursor for selecting text): Highlighted text marked for redaction: Highlight a custom area to be redacted: Highlighted area marked for redaction: Redaction applied: |
It would also be beneficial to manually be able to select text to be redacted: When highlighting words/text manually, only that word/text gets redacted |
@Frooodle I forgot to inform you that I'm currently working on this issue/feature |
I would like to know when this feature will be available. I urgently need this feature, thank you. |
This is our next priority feature coming soon! |
@Frooodle Thank you for your feedback. Do you have an estimated release date? I’m really looking forward to this feature. |
With Christmas holidays coming up timing is very unpredictable 😂 At least a week and less than 2 months 😂 |
@omar-ahmed42 Hello, I would like to inquire about this feature. What is the technical plan you have in mind? Are you planning to use pdf.js to add a mask layer on top? |
@xuzhu007 Hello, My plan was to use PDF.js to display the PDF and provide custom tools for redaction in the toolbar, based on the chosen/selected tool a corresponding redaction mode is enabled allowing the user to select/draw redactions on top of the document, then submitting the document for processing and performing the redaction process on the actual PDF in the backend. At the same time providing the user with option to redact certain pages entirely, whether by specifying page number(s), range(s) or functions such as (2n) for even page numbers for example. |
# Description ## Manual Redaction: - ### Text Selection-based redaction: -  - Users can now redact currently selected text by selecting the text then clicking `ctrl + s` shortcut or by pressing on **apply/save/disk icon** in the toolbar. - Users can delete/cancel the redacted area by clicking on the box containing the text, then clicking on `delete/trash` icon or by using the shortcut `delete`. - Users can customize the color of the redacted area/text (after the redaction was applied) by simply clicking on the box containing the text/area then clicking on the `color palette` icon and choosing the color they want. - Users can choose to select the color of redaction before redacting text or applying changes (this only affects newly created redaction areas, to change the color of an existing one; check the previous bullet point). - ### Draw/Area-based redaction: -  - Users can now redact an area in the page by selecting the then clicking `ctrl + s` shortcut or by pressing on **apply/save/disk icon** in the toolbar. - Users can delete/cancel the redacted area by clicking on the drawn box, then clicking on `delete/trash` icon or by using the shortcut `delete` (requires temporarily turning off drawing mode). - Users can customize the color of the redacted area (after the redaction was applied) by simply clicking on the box containing the area then clicking on the `color palette` icon and choosing the color they want. - Users can choose to select the color of redaction before drawing the box or applying changes (this only affects newly created redaction areas, to change the color of an existing one; check the previous bullet point). - ### Page-based redaction: -  - Users can now redact **ENTIRE** pages by specifying the page number(s), range(s) or functions. - Users can customize the color of page-based redaction (doesn't affect text-based nor draw-based redactions). ### Redaction modes: There are three modes of redaction/operation currently supported - Text Selection-based redaction (TEXT) - Draw/Area-based redaction (DRAWING) - None - by simply not choosing any of the above modes (NONE). ## How to use: - **Text Selection-based redaction:** click on this icon in the toolbar  to enable `text-selection redaction mode` then select the text you want to redact then press `ctrl + s` or click on the disk/save icon . - **Draw/Area-based redaction:** click on this icon in the toolbar  to enable `draw/area-based redaction` then `left mouse click (LMB)` on the starting point of the rectangle, then once you are satisfied with the rectangle's placement/dimensions then `left mouse click (LMB)` again to apply the redaction. - **Example:** `Left mouse click (LMB)` then move mouse to the right then bottom then `Left mouse click (LMB)`. - Note: Red box/rectangle borders indicate that you have not yet saved (you need to left click on the page to save)  once saved the borders will become green  (they also become clickable/hover-able when drawing mode is off). - **Page-based redactions:**: Insert the page number(s), range(s) and/or functions (separated by `,`) then select your preferred color and click on `Redact` to submit.  - **Color Customizations:** - You can change the redaction color for new redactions by clicking on this icon in the toolbar . - You can change the redaction color for existing redactions by hovering over the redaction box then clicking on it (`Left mouse click LMB`) then clicking on color palette (highlighted in red in the picture)  then select your preferred color. - **Deletions:** - You can delete a redacted area by hovering over the redaction box then clicking on it (`Left mouse click LMB`) then clicking on the trash icon (highlighted in red in the picture) . ## Card in the home page:  Closes #465 ## Checklist - [x] I have read the [Contribution Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md) - [x] I have performed a self-review of my own code - [x] I have attached images of the change if it is UI based - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] If my code has heavily changed functionality I have updated relevant docs on [Stirling-PDFs doc repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/) - [ ] My changes generate no new warnings - [ ] I have read the section [Add New Translation Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md#add-new-translation-tags) (for new translation tags only) --------- Co-authored-by: Anthony Stirling <77850077+Frooodle@users.noreply.github.com>
Another cool feature would be to anonymize specific parts of PDF files.
The text was updated successfully, but these errors were encountered: