Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-76359

Annotated pdfs as submissions will appear as blank pages for the annotating teacher

Details

    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • Hide
      Pre-requisites
      1. Make sure that a document converter is installed and working on your site (i.e. Unoconv)
      2. Ensure that ghostscript is installed and configured in the pathtogs admin setting
      Setup
      1. Create a course
      2. Enrol 1 student into the course
      3. Enrol 1 teacher into the course
      4. Create a new assignment:
        1. Under Site Administration "Submission types", ensure that the following is enabled:
          1. File Submission
        2. Under Site Administration "Assignment settings", ensure that the following is enabled: 
          1. "Annotate PDF"
      Reproduce
      1. Login as a student
        1. Add a submission with:
        2. an annotated pdf (example is pinned to issue)
      2. Login as the teacher
        1. Navigate to the assignment
        2. Follow "View all submissions"
        3. Click "Grade" on the row for the Student
        4. Verify that the page is blank

       

      Testing

      1. Create a course
      2. Enrol 1 student into the course
      3. Enrol 1 teacher into the course
      4. Create a new assignment:
        1. Under Site Administration "Submission types", ensure that the following is enabled:
          1. File Submission
        2. Under Site Administration "Assignment settings", ensure that the following is enabled: 
          1. "Annotate PDF"
        3. Under Site Administration "Annotate PDF" enable the new option:
          1. "preserve annotations"
      5. Login as a student
        1. Add a submission with:
        2. an annotated PDF file (example is pinned to issue)
      6. Login as the teacher
        1. Navigate to the assignment
        2. Follow "View all submissions"
        3. Click "Grade" on the row for the Student
        4. Verify that the generated PDF page preserved its content
      Show
      Pre-requisites Make sure that a document converter is installed and working on your site (i.e. Unoconv) Ensure that ghostscript is installed and configured in the pathtogs admin setting Setup Create a course Enrol 1 student into the course Enrol 1 teacher into the course Create a new assignment: Under Site Administration "Submission types", ensure that the following is enabled: File Submission Under Site Administration "Assignment settings", ensure that the following is enabled:  "Annotate PDF" Reproduce Login as a student Add a submission with: an annotated pdf (example is pinned to issue) Login as the teacher Navigate to the assignment Follow " View all submissions " Click " Grade " on the row for the Student Verify that the page is blank   Testing Create a course Enrol 1 student into the course Enrol 1 teacher into the course Create a new assignment: Under Site Administration "Submission types", ensure that the following is enabled: File Submission Under Site Administration "Assignment settings", ensure that the following is enabled:  "Annotate PDF" Under Site Administration "Annotate PDF" enable the new option: "preserve annotations" Login as a student Add a submission with: an annotated PDF file (example is pinned to issue) Login as the teacher Navigate to the assignment Follow " View all submissions " Click " Grade " on the row for the Student Verify that the generated PDF page preserved its content
    • 1
    • Team Alpha - Sprint 1 I1-2023

    Description

      Once a submission was made in consecutive steps the files are prepared to be annotated by a course teacher. One of those steps combines all supplied documents with a php pdf library called "FPDI V2". This library can't handle files with annotations and will just ignore their presence, thus deleting them from the output it generates. As a consequence teachers will find some student Submissions are either incomplete or completely blank.

      As a solution, i propose an opt in setting, that forces another run of ghostscript with the '-dPreserveAnnot' flag on the supplied PDF files before beeing combined. This way, the annotations become actual content of the PDF and it wont get lost in the combining step.

      Attachments

        Activity

          People

            Unassigned Unassigned
            simsch Simon Schniedenharn
            Ilya Tregubov Ilya Tregubov
            Votes:
            7 Vote for this issue
            Watchers:
            19 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 20 minutes Time Not Required
                20m

                Clockify

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.