New: Markdown to PDF built for AI agents, PDF to E-Invoice for Factur-X/ZUGFeRD, and PDF to PDF/A for archive-ready PDF/A-3b.

PDF Passwords, Watermarks and Content Removal: Choose the Right Operation

5 MIN READ

Different PDF operations solve different problems. A password can restrict opening a document. A watermark identifies a distributed copy. Removing selected text changes document content.

Choose the operation that matches your requirements, understand its limitations, and inspect the result before sharing it.

Remove Selected Text

PDF.co provides separate operations to delete matching text and replace matching text.

Check every occurrence and inspect the output. Removing a visible string does not establish that sensitive information is absent from images, metadata, attachments, or other document content.

Do not treat a text-replacement test as a complete redaction review.

Add a Watermark

Use /v1/pdf/edit/add to add text or an image, such as a recipient name, logo, or document reference.

A watermark can identify a copy and communicate ownership or intended use. It does not encrypt the file, verify authenticity, or reliably prevent copying, OCR, or content extraction.

Check its placement so it does not obscure information recipients need to read.

Set PDF Passwords and Permissions

Use /v1/pdf/security/add to configure PDF passwords and permission settings.

These controls serve different purposes:

  • User password: Requires recipients to enter a password to open the encrypted PDF.
  • Owner password: Manages document permissions and bypasses those restrictions when used to open the file.
  • Permission settings: Request restrictions such as disabling printing, copying, or editing in PDF readers that honor them.

Use strong, different passwords and keep the owner password private. Test the result with the user password in the readers your recipients use.

Share passwords separately from the document-delivery channel. Permission restrictions should not be treated as a guarantee against copying visible information.

Create an Image-Based PDF

Use /v1/pdf/makeunsearchable to create an image-based version of a PDF.

This can be useful when a destination requires a rendered copy rather than selectable source text. Check readability and the impact on accessibility and interactive form controls.

OCR can still recover visible text. Rasterization is not a substitute for removing confidential content or controlling access.

Export PDF Pages as Images

Use /v1/pdf/convert/to/jpg, or the corresponding PNG or TIFF operation, when your destination needs page images, previews, or thumbnails.

Choose a resolution that keeps the required text and graphics legible. Deliberately reducing resolution does not establish protection against OCR and can make the document harder for legitimate readers to use.

Check the Output Before Distribution

Review the complete output, verify any passwords and permissions you selected, and confirm that the delivered copy contains only the information the recipient should receive.

You can explore the operations with an approved sample document in the PDF.co API Tester.

Was this page helpful?

Related Tutorials

See Related Tutorials

Try it with your document.

Create an account, get an API key and test a request.

Get Started Free

© Copyright 2016-2026 Artifex Software, Inc d/b/a PDF.co — All Rights Reserved