No description
Find a file
Tobias Bölz f2c3965a88
All checks were successful
Create a new release for every new commit to main / add-release (push) Successful in 13s
Add workflow that automatically creates releases and .pyz archives
2025-09-03 16:27:39 +02:00
.forgejo/workflows Add workflow that automatically creates releases and .pyz archives 2025-09-03 16:27:39 +02:00
.flake8 Initial commit 2025-08-16 21:27:44 +02:00
pdfdate.py Fix SyntaxError with Python 3.11 2025-08-24 20:15:10 +02:00
pyproject.toml Initial commit 2025-08-16 21:27:44 +02:00
README.md Add compatibility information to README 2025-08-17 18:54:08 +02:00

pdfdate

Change the creation date of a PDF file.

The script replaces the /CreationDate metadata either directly in the PDF file or inside a compressed stream. This does not work with all PDF files (e.g. encrypted PDF files, PDF files created by certain libraries).

So far, it has been successfully tested with PDFs created by multi-function printers from multiple vendors, as well as PDF files created with pdfTeX and XeTeX.

Usage

$ python pdfdate.pyz --help
Usage: pdfdate.pyz [OPTIONS] INPUT_FILE DATE OUTPUT_FILE

  Change the creation date of a PDF file INPUT_FILE to DATE and write the
  result to OUTPUT_FILE.

  DATE has to be in ISO 8601 format (e.g. '2025-08-16T19:56:23+02:00'). If no
  timezone is specified, the system local timezone is assumed.

Options:
  --help  Show this message and exit.

Resources

License

This project is licensed under the MIT license.