Skip to content

Conversation

gozelski
Copy link

@gozelski gozelski commented Sep 29, 2025

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:

  • Launch app
  • Test scanner submission of assigment that allows pdfs and not jpegs

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

  • Follow-up e2e test ticket created
  • A11y checked
  • Tested on phone
  • Tested on tablet
  • Tested in dark mode
  • Tested in light mode
  • Approve from product

…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
@gozelski gozelski changed the title Allow Document Scan to fallback to pdfs Allow Document Scan to Fallback to Pdfs Sep 29, 2025
@gozelski gozelski changed the title Allow Document Scan to Fallback to Pdfs [Student] Allow Document Scan to Fallback to Pdfs Sep 29, 2025
@gozelski gozelski changed the title [Student] Allow Document Scan to Fallback to Pdfs [Student] Allow Document Scan to Fallback to PDFs Oct 7, 2025
Copy link
Contributor

@suhaibabsi-inst suhaibabsi-inst left a 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.

gozelski and others added 2 commits October 14, 2025 16:35
- 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]>
Copy link
Contributor

@suhaibabsi-inst suhaibabsi-inst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code +1

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