Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-15457 Moodle 3.11 QA
  3. MDLQA-16046

CLONE - An admin can set either ghostscript or pdftoppm to be used for converting PDF to PNG files

XMLWordPrintable

      This test requires Ghostscript and Poppler to be installed on the server. You also need a large PDF file (the larger the better as you will then notice a greater time difference).

      1. Log in as admin, go to Site administration > Server > System paths.
      2. Verify that the Path to ghostscript setting points to your local gs path (be sure it is correctly set).
      3. Verify that Path to pdftoppm setting is empty.
      4. Verify the queue of conversions is empty (table assignfeedback_editpdf_queue 
      5. Create a course and add an assignment with default options and Feedback types: Annotate PDF.
      6. Log out then log in as a student, and submit the PDF file to the assignment.
      7. Verify the database table assignfeedback_editpdf_queue has 1 record
      8. Run the scheduled task:

        php admin/cli/scheduled_task.php --execute='\assignfeedback_editpdf\task\convert_submissions'


        This execution will use gs to generate PNG files from your PDF file. Record the total execution time.

      9. Log out then log in as admin again and go to grade the submission.
      10. Verify that you see the submission content.
      11. Go to Site administration > Server > System paths and add your local pdftoppm path to the_Path to pdftoppm_ setting (be sure it is correctly set).
      12. Repeat steps 6-10 using the same file (remove and add it again) and the same assignment.
      13. Mention in a comment the pdftoppm time and the gs time.

        1. MDLQA-16046 - Step 12 running task.png
          33 kB
          Carlos Escobedo
        2. MDLQA-16046 - Step 13 confirm time running tasks.png
          68 kB
          Carlos Escobedo
        3. MDLQA-16046 - Step 12 grade pdf.png
          137 kB
          Carlos Escobedo
        4. MDLQA-16046 - Step 12 queue empty.png
          59 kB
          Carlos Escobedo
        5. MDLQA-16046 - Step 4 empty queue.png
          60 kB
          Carlos Escobedo
        6. MDLQA-16046 - Step 8 running task.png
          33 kB
          Carlos Escobedo
        7. MDLQA-16046 - Step 10 grade assign.png
          128 kB
          Carlos Escobedo
        8. MDLQA-16046 - Step 11 system path pdftoppm.png
          114 kB
          Carlos Escobedo
        9. MDLQA-16046 - Step 12 add pdf.png
          132 kB
          Carlos Escobedo
        10. MDLQA-16046 - Step 12 queue no empty.png
          100 kB
          Carlos Escobedo
        11. MDLQA-16046 - Step 12 remove pdf.png
          127 kB
          Carlos Escobedo
        12. MDLQA-16046 - Step 5 add pdf.png
          127 kB
          Carlos Escobedo
        13. MDLQA-16046 - Step 7 queue pdf.png
          99 kB
          Carlos Escobedo
        14. MDLQA-16046 - System path gs.png
          202 kB
          Carlos Escobedo

            cescobedo Carlos Escobedo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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