-
Notifications
You must be signed in to change notification settings - Fork 121
[Student] Allow Document Scan to Fallback to PDFs #3670
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
[Student] Allow Document Scan to Fallback to PDFs #3670
Conversation
…nd not jpegs refs: none builds: Student, Teacher affects: Student release note: none test plan: - Launch app - Test scanner submission of assigment that allows pdfs and not jpegs
suhaibabsi-inst
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making this PR.
Would be great to address the following points.
- rename: PDFDocument.write(nameIt:) -> PDFDocument.write(name:) - put temporary pdf documents in `Documents/` instead of `documents/` - Only append `.pdf` path extension if it is not already applied Co-authored-by: Suhaib Al-Absi <[email protected]>
suhaibabsi-inst
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code +1
98c1043
into
instructure:feature/MBL-19549-Merge-Scanned-Images-Into-PDF-Document
|
Will be moving forward with this, and eventually it will make it into our master branch just before the intended release. |
The VisionKit Document Scanner is now enabled for assigments that allow pdfs and not images, submitting the scanned document as a multipage pdf.
refs: none
builds: Student, Teacher
affects: Student
release note: none
test plan:
This is visually the same as uploading JPEGs; the only difference lies when saving: the file outputted is a single multipage pdf.
"Failed to save pdf" is most likely not localized; this could reverted to the same string as images, be localized, or use another already localized string.
Checklist