Skip to content

Pdf Metadata Remover API

POST https://api.findutils.com/api/tools/pdf-metadata-remover/execute

Remove document metadata from a PDF: the Info dictionary fields (Title, Author, Subject, Keywords, Creator, Producer, CreationDate, ModDate and any custom keys) and the XMP metadata streams. Pass fields to remove only some Info keys. The result lists what the file carried before and what the cleaned file carries, read back from the output. Page text, images, annotations, embedded files and the trailer document ID are not changed. Encrypted PDFs are refused. Input and output are base64-encoded PDFs.

Needs an API key. Running a tool needs an API key. Keys are not for sale yet: ask for early access. About API keys

Request body

application/json
  • pdf

    string required

    The base64-encoded PDF to clean.

  • fields

    array optional

    Info keys to remove, such as ["Author", "Creator"]. Omit to remove every Info key.

  • remove_xmp

    boolean optional

    Also remove the XMP metadata streams. Default: true. Default true.

Example arguments

Verified
{
  "pdf": "JVBERi0xLjQKMSAwIG9iago8PCAvVHlwZSAvQ2F0YWxvZyAvUGFnZXMgMiAwIFIgPj4KZW5kb2JqCjIgMCBvYmoKPDwgL1R5cGUgL1BhZ2VzIC9LaWRzIFszIDAgUiA1IDAgUl0gL0NvdW50IDIgPj4KZW5kb2JqCjMgMCBvYmoKPDwgL1R5cGUgL1BhZ2UgL1BhcmVudCAyIDAgUiAvTWVkaWFCb3ggWzAgMCAyMDAgMjAwXSAvQ29udGVudHMgNCAwIFIgL1Jlc291cmNlcyA8PCA+PiA+PgplbmRvYmoKNCAwIG9iago8PCAvTGVuZ3RoIDM3ID4+CnN0cmVhbQpCVCAvRjEgMTIgVGYgMjAgMTAwIFRkIChwYWdlIDEpIFRqIEVUCmVuZHN0cmVhbQplbmRvYmoKNSAwIG9iago8PCAvVHlwZSAvUGFnZSAvUGFyZW50IDIgMCBSIC9NZWRpYUJveCBbMCAwIDIwMCAyMDBdIC9Db250ZW50cyA2IDAgUiAvUmVzb3VyY2VzIDw8ID4+ID4+CmVuZG9iago2IDAgb2JqCjw8IC9MZW5ndGggMzcgPj4Kc3RyZWFtCkJUIC9GMSAxMiBUZiAyMCAxMDAgVGQgKHBhZ2UgMikgVGogRVQKZW5kc3RyZWFtCmVuZG9iagp4cmVmCjAgNwowMDAwMDAwMDAwIDY1NTM1IGYgCjAwMDAwMDAwMDkgMDAwMDAgbiAKMDAwMDAwMDA1OCAwMDAwMCBuIAowMDAwMDAwMTIxIDAwMDAwIG4gCjAwMDAwMDAyMjUgMDAwMDAgbiAKMDAwMDAwMDMxMiAwMDAwMCBuIAowMDAwMDAwNDE2IDAwMDAwIG4gCnRyYWlsZXIKPDwgL1NpemUgNyAvUm9vdCAxIDAgUiA+PgpzdGFydHhyZWYKNTAzCiUlRU9GCg==",
  "fields": [
    "Author",
    "Creator",
    "Producer"
  ],
  "remove_xmp": true
}