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

Add pdfinfo pre-check to Internet Archive workflow #33

Open
rhigman opened this issue Jun 6, 2024 · 0 comments
Open

Add pdfinfo pre-check to Internet Archive workflow #33

rhigman opened this issue Jun 6, 2024 · 0 comments

Comments

@rhigman
Copy link
Member

rhigman commented Jun 6, 2024

Internet Archive uses the Unix command-line tool pdfinfo to test for "syntax errors" in uploaded PDF files, and rejects the submission if any are found. At the moment, due to the way the IA API is structured, this leaves us with a half-created IA entry, which must be fixed manually once the PDF is corrected. (That is, the job can't simply be re-run within GitHub Actions, as for other types of failure.)

Ideally we would add a fast-fail to the iauploader module, running pdfinfo on the file before any data is created for the work within IA, and exiting if "syntax errors" were reported. TBD how we would incorporate this Unix tool into the existing Python logic.

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

1 participant