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

Assignment: Annotate PDF - adding a 'rotate' button

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

       Requirements: Make sure you have installed “ghostscript” on Moodle server.

       

       Create assignment

      1. Login Moodle using an account which has permission to create course (At least Editing Teacher role)
      2. Create a course
      3. Add an Assignment activity to the course
      4. Tick Annotate PDF on Feedback Types setting of the assignment
      5. Save Setting.

      Submit Assignment

      1. Login Moodle using a Student account
      2. Upload and submit a PDF file (more than 2 pages for testing purposes) in the assignment

       Grade Assignment:

      1. Login Moodle using an account which has grading permission .
      2. Go to the assignment and grade the submission
      3. Click on the ‘Rotate left’ and ‘Rotate Right’ button, next to ‘Comment Expand’ button on navigation bar. Check that the current page is rotated accordingly.
      4. Add Comments, Annotation, Stamps to the page
      5. change to next page and rotate if necessary
      6. Add Comments, Annotation, Stamps to the page
      7. Enter grade
      8. Click ‘Save changes’ button to generate feedback file.

      Backup:

      1. Back up the course, make sure "includes enrolled users" option is checked.
        • Backup for the course is located in Course administration > Backup.

      Restore:

      1. Restore the backup as a new course.
        • The link for restoring the course in located in Course administration > Restore.

      Expected  Behavior:

      1. Check that the Image is rotated 90 degree to the left or right accordingly.
      2. Check that all annotations (including comments) are moved to their old positions with relation to the document coordinate
      3. In the restored course, Check that the pages are rotated at the same degrees as they were in the backup course.

       

      Show
       Requirements: Make sure you have installed “ghostscript” on Moodle server.    Create assignment Login Moodle using an account which has permission to create course (At least Editing Teacher role) Create a course Add an  Assignment  activity to the course Tick  Annotate PDF  on Feedback Types setting of the assignment Save Setting. Submit Assignment Login Moodle using a Student account Upload and submit a PDF file (more than 2 pages for testing purposes) in the assignment  Grade Assignment: Login Moodle using an account which has grading permission . Go to the assignment and grade the submission Click on the ‘Rotate left’ and ‘Rotate Right’ button, next to ‘Comment Expand’ button on navigation bar. Check that the current page is rotated accordingly. Add Comments, Annotation, Stamps to the page change to next page and rotate if necessary Add Comments, Annotation, Stamps to the page Enter grade Click ‘ Save changes’  button to generate feedback file. Backup: Back up the course, make sure "includes enrolled users" option is checked. Backup for the course is located in Course administration > Backup. Restore: Restore the backup as a new course. The link for restoring the course in located in Course administration > Restore. Expected  Behavior: Check that the Image is rotated 90 degree to the left or right accordingly. Check that all annotations (including comments) are moved to their old positions with relation to the  document  coordinate In the restored course,  Check that the pages are rotated at the same degrees as they were in the backup course.  
    • Affected Branches:
      MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Pull Master Branch:
      MDL-61537-Master

      Description

      Hi,
      I'll quote part of the description from MDL-47051:

      To help the grading process, we would like to request a 'rotate' button that could help solve the problem of students submitting homework in landscape mode, or upside down.

      This issue was closed as a duplicate of MDL-43462.
      Unfortunately, this was not a duplicate, because MDL-43462 dealt about PDFs to be cut off and we cannot reopen MDL-47051 again. So I'll open this issue.

      This is about adding a possibility to rotate the generated PDF within the editor.
      This is useful, especially if users do their solutions handwritten, take a photo (smartphone in landscape orientation) of this and upload the jpg. This has two effects:

      • The jpg is reduced in size to fit to the plain PDF background which orientation is in portrait
      • And it is placed in it's landscape mode

      Without the possibility to rotate this representation, it's hard to read and correct the uploaded solution!

      Best, Kathrin

        Attachments

        1. landscape_image.png
          landscape_image.png
          317 kB
        2. screenshot-1.png
          screenshot-1.png
          238 kB
        3. with-patch-on-first-load.png
          with-patch-on-first-load.png
          119 kB

          Issue Links

            Activity

              People

              • Votes:
                19 Vote for this issue
                Watchers:
                17 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  20/May/19

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Time Spent - 4 hours, 40 minutes Remaining Estimate - 4 hours, 55 minutes
                  4h 55m
                  Logged:
                  Time Spent - 4 hours, 40 minutes Remaining Estimate - 4 hours, 55 minutes
                  4h 40m