Assignement pdf annotation not working : spinning wheel.

Assignement pdf annotation not working : spinning wheel.

by Éric Bugnet -
Number of replies: 3
Picture of Documentation writers Picture of Plugin developers Picture of Translators

Hello.

I'm on Moodle 3.9 with Fordson and Boost theme, update with GIT. Tested with different browsers and different teacher and admin accounts.

I try to explain my problem and what I do to check any solutions.

On novembre I saw that when I want to correct an assignment with the pdf annotation, the windows didn't work correctly (I hope that 3.10 can correct it, but it didn't (I've tested the upgrade, but come back to 3.9 with snapshoot  because of Fordson theme)).

The problem is that I always got a spinnig wheel on the document part as below :



First I worked on Google doc conversion. I tested it : it works fine.

I also set up the unoconv conversion and make it first on the list. I tested it localy with command line, and it works. I tested with moodle too and it works.


I made a new assignment. As a student, I put a small Word doc for the assignment.


I manually activate the task for document convertion.


Note that I got a problem like other people but don't know how to correct it (don't know if it's linked with my actual problem).


I can find that my file has been correctly converted like you can see here (sourcefileid → destfileid) :



I can also see that png and combined file was made (only 1 page) :

I manually download this 3 file, and all was fine : there are the doc, pdf and png files as expected I think.


So : all the files are converted and present on the server.


Nothing special in the firefox inspector, only this 404 warning :

GET : https://moodle.ecolelamache.org/%22https:////moodle.ecolelamache.org//theme//image.php//boost//assignfeedback_editpdf//1618838273//nav_prev/%22


Could someone help me ???

Éric

Average of ratings: -
In reply to Éric Bugnet

Re: Assignement pdf annotation not working : spinning wheel.

by Mehmet Uysal -

I have a similar problem and wanted to include my observation. The same thing happens with pdf files in Boost theme.

I changed my theme to adaptable and the pdf was loaded correctly. Adding this so maybe the problem can be better spotted.


In reply to Mehmet Uysal

Re: Assignement pdf annotation not working : spinning wheel.

by Wynand Louw -
Assignment - Annotation not working after this update, Moodle 4.0.4+ (Build: 20221028) Sitting with the same issue as this one but cannot create a new issue on the tracker.

Tried different browsers and different templates, to no avail. The PDF just remains blank.

In reply to Éric Bugnet

Re: Assignement pdf annotation not working : spinning wheel.

by Ken Task -
Picture of Particularly helpful Moodlers
Dunno if the following will help or not ... but ...

Have a 4.0.4+ (Build: 20221108) ... doc conversion via unoconv or Google working, so is Annotation of PDF's.

New in version 4 paths:

/admin/settings.php?section=systempaths

Path to pdftoppm - says ...

Poppler is a PDF rendering library which includes the tool pdftoppm for converting PDF files to PNG. Performance is generally better than when using Ghostscript, particularly for large files. If available, pdftoppm will be used in preference to Ghostscript. On most Linux installs, the path can be left as /usr/bin/pdftoppm. Otherwise, you need to install the poppler-utils or poppler package, depending on your Linux distribution. On Windows it is provided by Cygwin installs.

https://poppler.freedesktop.org/

/usr/bin/pdftoppm --help
pdftoppm version 0.26.5
Copyright 2005-2014 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2011 Glyph & Cog, LLC
Usage: pdftoppm [options] [PDF-file [PPM-file-prefix]]
  -f <int>                 : first page to print
  -l <int>                 : last page to print
  -o                       : print only odd pages
  -e                       : print only even pages
  -singlefile              : write only the first page and do not add digits
  -r <fp>                  : resolution, in DPI (default is 150)
  -rx <fp>                 : X resolution, in DPI (default is 150)
  -ry <fp>                 : Y resolution, in DPI (default is 150)
  -scale-to <int>          : scales each page to fit within scale-to*scale-to pixel box
  -scale-to-x <int>        : scales each page horizontally to fit in scale-to-x pixels
  -scale-to-y <int>        : scales each page vertically to fit in scale-to-y pixels
  -x <int>                 : x-coordinate of the crop area top left corner
  -y <int>                 : y-coordinate of the crop area top left corner
  -W <int>                 : width of crop area in pixels (default is 0)
  -H <int>                 : height of crop area in pixels (default is 0)
  -sz <int>                : size of crop square in pixels (sets W and H)
  -cropbox                 : use the crop box rather than media box
  -mono                    : generate a monochrome PBM file
  -gray                    : generate a grayscale PGM file
  -png                     : generate a PNG file
  -jpeg                    : generate a JPEG file
  -tiff                    : generate a TIFF file
  -tiffcompression <string>: set TIFF compression: none, packbits, jpeg, lzw, deflate
  -freetype <string>       : enable FreeType font rasterizer: yes, no
  -thinlinemode <string>   : set thin line mode: none, solid, shape. Default: none
  -aa <string>             : enable font anti-aliasing: yes, no
  -aaVector <string>       : enable vector anti-aliasing: yes, no
  -opw <string>            : owner password (for encrypted files)
  -upw <string>            : user password (for encrypted files)
  -q                       : don't print any messages or errors
  -v                       : print copyright and version info
  -h                       : print usage information
  -help                    : print usage information
  --help                   : print usage information
  -?                       : print usage information

What's in your moodledata/temp/assignfeedback_editpdf/pageimages
directory?

'SoS', Ken

Average of ratings: Useful (2)