Skip to content

Releases: janosh/pdf-compressor

v0.4.0

04 Jul 16:46

Choose a tag to compare

What's Changed

  • Recursively glob for PDFs when passed directories by @janosh in #18
  • Fix replacing original files with wrong compressed files when handling >10 files at once by @janosh in #20
  • main() add flag --write-stats: takes path for writing file with size reduction stats by @janosh in #21
  • Split main() into compress() and leaner main() function by @janosh in #23
  • ruff fixes by @janosh in #24
  • Add CLI flags --password and --outdir by @janosh in #26

Full Changelog: v0.3.0...v0.4.0

v0.3.0

20 Feb 03:22

Choose a tag to compare

What's Changed

  • Migrate setup.py + setup.cfg to pyproject.toml by @janosh in #15
  • Ruff by @janosh in #16
  • ec3bf8d split release step in test.yml into separate job

Full Changelog: v0.2.1...v0.3.0

v0.2.1

08 Sep 20:52

Choose a tag to compare

What's Changed

3fed10c add test for batch compression and duplicate PDF input file (i.e. compressing same file twice) (closes #4)
413d070 remove unused code
8e56487 fix pylint errors
68b1cc1 breaking: change --on-bad-files error type from TypeError to ValueError
9943155 fix CI OSError: [WinError 17] The system cannot move the file to a different disk drive
ada2044 del_or_keep_compressed() add verbose arg to print file names or full file paths
d4aaeee combine .github/workflows/{test,publish}.yml into 1 workflow

Full Changelog: v0.2.0...v0.2.1

v0.2.0

04 Feb 14:59

Choose a tag to compare

What's Changed

  • Official Windows support! 🎉
  • Use / as path sep even on Windows in #10
  • breaking change: rename CLI flags (hence minor version bump)
    • --error-on-no-pdfs -> --on-no-pdfs
    • --handle-non-pdfs -> --on-bad-files

Full Changelog: v0.1.9...v0.2.0