You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add support for One Page PDF and selective label redacting
* redact-cli-py | Add requirements.txt
* Bump version to v0.2.2
Co-authored-by: TFR258 <threis@microsoft.com>
Co-authored-by: Chia-Sheng Chen <chiache@microsoft.com>
1.`local`: this means you read/write data from local machine.
119
-
2.`https://<blob_account_url>/<container_name>?<sas_token>`: this means you read/write data from the the container `container_name` of the Azure blob account `blob_account_url`. Please make sure your `sas_token` grants the correct access (Read/List for input, Read/Add/Create/Write/Delete/List for output).
152
+
2.`https://<blob_account_url>/<container_name>?<sas_token>`: this means you read/write data from the container `container_name` of the Azure blob account `blob_account_url`. Please make sure your `sas_token` grants the correct access (Read/List for input, Read/Add/Create/Write/Delete/List for output).
2. Visit [Create Your SAS tokens with Azure Storage Explorer](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/document-translation/create-sas-tokens?tabs=Containers) to see how to create a SAS token for this program to use.
147
180
3. Currently, this redact CLI only support ASCII character redaction (Latin alphabets without the accent marks).
148
181
182
+
#### PDF Support
183
+
184
+
Batch mode now supports redacting data from one-page PDF documents. The tool will detect any PDF document in the input folder, convert to an image (.png) and redact the image itself placing it in the specified output folder upon completion.
185
+
186
+
#### Batch Redacting specific labels
187
+
188
+
Like the single file `redact.py` script, `batch_redact.py` supports redacting specific labels. Labels to be redacted need to provided together in a string separated by commas.
189
+
```bash
190
+
python batch_redact.py local raw/ local redacted/ "Label_01,Label_02"
0 commit comments