Skip to content

Add optimize option for compressed output.#60

Merged
vb64 merged 1 commit intovb64:optimize_pdffrom
mss:feature/optimize
Apr 17, 2025
Merged

Add optimize option for compressed output.#60
vb64 merged 1 commit intovb64:optimize_pdffrom
mss:feature/optimize

Conversation

@mss
Copy link
Copy Markdown
Contributor

@mss mss commented Apr 17, 2025

This change adds an optimize option which enables compression on the output file. The files in examples will shrink from 2M to 160k with this option enabled.

I called it optimize instead of compress because it uses the ez_save method which will enable different features depending on the PyMuPDF version used.

@vb64 vb64 changed the base branch from main to optimize_pdf April 17, 2025 13:04
@vb64 vb64 merged commit ce128d6 into vb64:optimize_pdf Apr 17, 2025
8 checks passed
vb64 added a commit that referenced this pull request Apr 17, 2025
…ed pdf-file. (#61)

* Add optimize option for compressed output. (#60)

* Fix coverage.

* Fix pdf examples.

* Fix history.txt

---------

Co-authored-by: Malte S. Stretz <mss@msquadrat.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants