If you’d like to try it yourself, please visit our free interactive web demo. No code or account is necessary.
How PDFs Are Processed (Enhanced)
PDFs are processed as follows:- First, if the PDF has an invisible text layer (copy-pasteable text), it is extracted from the PDF.
- Any content that doesn’t have an invisible text layer is scanned for text as well as Object Entities).
- The detected objects are replaced with white boxes, and in-place replacements are done for the text.
- PDF Metadata as well as any included attachments are removed from the PDF.
- A new PDF is returned with the in-place replacements and without any attachments.
Parameters
Below are the parameters that control the behaviour of the PDF De-identifier. These parameters shall be specified underpdf_options.
| Parameter | Explanation | Default |
|---|---|---|
approach | This parameter changes which PDF approach is used. | ”automatic” |
density | PDFs are converted into images using this DPI value. Smaller values result in images with smaller resolutions, which will take up less storage space and process faster, at the cost of output quality & redaction accuracy. | 200 |
max_resolution | PDFs are converted into images using the density DPI value. Any resulting images with maximum size length larger than this will be resized to this value, while preserving aspect ratio. | 3000 |
PDF Approaches shows the differences between Standard and Enhanced PDF processing.
Support Matrix
| CPU Container | GPU Container | Community API | Professional API | |
|---|---|---|---|---|
| Supported | Yes | Yes | No | No |
Sample Request
Connect with one of our privacy experts to run this code.
Sample Response
Response