-
Notifications
You must be signed in to change notification settings - Fork 21
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
Text redaction annotation support #234
Comments
…to correct the offset, as nothing was changed layout wise.
…otation bounds when marking what's redacted.
…ell break layout for a following TD.
…was breaking the layout afterward.
…re added correctly so multiple line contains calls work as expected.
…t byte of content stream on full copies
…ions for search hits. Document still needs to be exported to remove the content marked by the redaction annotation.
After a first test, everything seems to work well, thanks a lot! |
Good to hear and good point. I'll make the change the dialog. |
Merged changes into the GH-314. Fill add future refinements and bug fixes to this new ticket which has both text and image redaction support merged. |
Text redaction annotation support would allow a user to select the respective annotation tool, highlight some text as one would do with the regular highlight annotation tool. But in this case the selection colour would be black and it would be opaque. A user could work their way though the document redacting as needed. The user would then likely need to take advantage of an export redacted document. The dialog would need a few options like encryption or signing options and the ultimately a save/burn button. The save would take advantage of the GH-233 and over write any existing objects with new content.
The redaction text annotation type would take care of the content stream marking and removal of content. There are a couple ways this can be done. The simplest way would probably be to remove the text, and the pre and post text locations updated. A highlight annotation would be drawn as an overlay that would give the black marker effect based on the removed text bounds.
Rewriting the content stream might be as simple as checking if each StringObject intersects the annotation bounds. Individual rules could then be written on how to split the content stream and carry the horizontal displacement to avoid any changes to page layout.
Dependent on GH-233
The text was updated successfully, but these errors were encountered: