Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm excited! #166

Open
FredWahl opened this issue Jun 15, 2023 · 4 comments
Open

I'm excited! #166

FredWahl opened this issue Jun 15, 2023 · 4 comments

Comments

@FredWahl
Copy link

I wrote a tool that automates jpegtran. You give it a path and then it runs jpegtran for every jpg file it finds. Very useful and written in c++. So I should be able to do the same for this tool. I have tons of pdf files. Whenever I find something useful, I save it as a pdf. Sadly, I don't know python but I have decided to learn. So this will be interesting once I have learned enough.

@FredWahl
Copy link
Author

Thank you. Interesting and a good reason to learn Python. I have found a sdk also. another question. Since I want to automate pdfsizeopt, what are the return values? I assume it returns 0 for success but are there other values? jpegtran returns 1 or 2 but I can't figure out what it means. Winrar can be automated as a cli and they have documented these.

@FredWahl
Copy link
Author

Almost forgot. While I do have tons of pdf's, I have run other tools on them. I suspect pdfsizeopt wouldn't yield anything for most of them.Therefore, I wonder if there are pdf files for testing that are made in such a way that they are useful to see how much they can be reduced in size. I found pdfVera and their goal is to verify that pdf's meet ceratin criteria and there are many. It seems as if they have created "Hello, world" files which violate these rules. I have no idea how, maybe I should ask

@zvezdochiot
Copy link

zvezdochiot commented Jun 16, 2023

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

No branches or pull requests

2 participants