ENH: Add an uncompress functionality
Is it possible to uncompress PDF? similar to:
# uncompress
qpdf --stream-data=uncompress a.pdf b.pdf
# compress
qpdf b.pdf c.pdf
https://github.com/qpdf/qpdf/releases
Hi @3052
No, currently pdfly does not offer such functionality
hey @MartinThoma, @Lucas-C i have tried working on this feature but i am not able to find out where you are referencing packages in pdfly?
I need to add uncompress.py there
i am not able to find out where you are referencing packages in pdfly?
You could intiate a new .py file in https://github.com/py-pdf/pdfly/tree/main/pdfly
And then reference it in https://github.com/py-pdf/pdfly/blob/main/pdfly/cli.py
@Lucas-C I have implemented the feature but i am having trouble linting it with black, my local system with black shows no need for reformatting while the CI run fails with Black error.
Especially if i format it with Black then ruff results in an error and if format it with ruff then black results in error
i am having trouble linting it with black, my local system with black shows no need for reformatting while the CI run fails with Black error.
What is the error you are facing exactly?
And what is your version of black?
On my side:
$ black --version
black, 24.10.0 (compiled: yes)
i am having trouble linting it with black, my local system with black shows no need for reformatting while the CI run fails with Black error.
What is the error you are facing exactly?
And what is your version of
black?On my side:
$ black --version black, 24.10.0 (compiled: yes)
From my tinkering, everything is compliant except the I001 rule in ruff which checks for "Imports not at the top of the file." in the cli.py file
I dont know how but its somehow messing with black.
if i use ruff format cli.py it formats these.
And as for the version issue with black, i used github codespaces and that solved the issue.