Skip to content

FullSphere/Strip-PDF-Metadata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Strip-PDF-Metadata

Finds all PDFs in a folder and removes their metadata. Also updates the PDF Title metadata to match the filename (without the .pdf extension).


Requirements

  • exiftool installed and accessible in your system PATH.

Install ExifTool

  • macOS (Homebrew):

    brew install exiftool
  • Ubuntu/Debian:

    sudo apt update
    sudo apt install libimage-exiftool-perl
  • Windows: Download and install from exiftool.org, then add it to your system PATH.


Usage

  1. Clone or download this repo.
  2. Place your PDF files in the target folder.
  3. (Optional) Edit the folder variable in clean-pdfs.sh to point to your folder. Use . for the current directory.
  4. Make the script executable:
    chmod +x clean-pdfs.sh
  5. Run the script:
    ./clean-pdfs.sh

What it does

  • Recursively finds all .pdf files in the specified folder.
  • Removes all embedded metadata.
  • Sets the PDF Title metadata to match the filename (excluding .pdf).

License

MIT


Built by FullSphere

About

Finds all PDFs in a folder and remove the metadata, updating the meta title to the name of the file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages