PDF annotation assignment plugin

PDF annotation assignment plugin

by Davo Smith -
Number of replies: 106
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I've just released a new assignment feedback/submission plugin for Moodle 2.3+.

It is based on my previous UploadPDF assignment type (that works with Moodle 1.9-2.2) and allows students' work to be annotated within the web browser, before being returned to the student as a PDF. The original submission must be in the form of a PDF for this to work and available annotations include comment boxes, lines (freehand and straight), boxes, ovals, highlights and image stamps.

As I write this, the plugin is still officially in 'beta', as it is only just finished and hasn't had extensive testing yet, but I'm hoping that user feedback will allow any bugs that do exist to be quickly fixed.

More details (and download links) can be found at https://moodle.org/plugins/view.php?plugin=assignsubmission_pdf and https://moodle.org/plugins/view.php?plugin=assignfeedback_pdf (note that both parts are required for this to work).

Attachment assignsubmission_pdf1_small.png
Average of ratings: Useful (1)
In reply to Davo Smith

Re: PDF annotation assignment plugin

by Germán Valero -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Davo,

Thanks again for the nice plugins you just uploaded to the Moodle plugins database. I just made the Mexican spanish translations and will write you about this plugins once I have tried them in my local server.

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Michael de Raadt -

Thanks for creating these new plugins for PDF annotation, Davo.

I've done some testing and they appear to be working as expected.

Attachment plugin-assignmentPDF-annotation.png
In reply to Michael de Raadt

Re: PDF annotation assignment plugin

by ben reynolds -

Concurring with Michael. This works quite nicely. Very cool.

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

As I've not had any reports of problems with this plugin, I've now updated the status to 'stable'.

Please let me know if anyone finds any issues.

Average of ratings: Useful (1)
In reply to Davo Smith

Re: PDF annotation assignment plugin

by Michael Wuttke -

Hallo Davo,

I am administrating a moodle site and since moodle 2.2 I am using the assignment_uploadpdf module. Now I would like to upgrade to moodle 2.4 and would like to use only the new assign module with your new assignment module submission/feedback. Is there a way to migrate the old assignments_uploadpdf from type moodle 2.2 to the new assign plugin for the moodle 2.3+ type?

I don't want to delete the allready uploaded and reviewed assignments. There are approximately 100 assignments in the system using the uploadpdf type.

Thanks for help!

Michael

In reply to Michael Wuttke

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

There isn't currently any code in my assignsubmission_pdf plugin to transition files from the old to the new assignment type. I'm not sure when I'll have a spare evening to write this code.

Both versions should be able to co-exist on a system (as long as you have the most up-to-date version of the uploadpdf plugin).

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Frankie Kam -
Picture of Plugin developers

Davo

From mod/assign/submission/pdf/README.txt:-

>The teacher can then log in, go to the usual marking screen and click on
>'Annotate submission', which will bring up the first page of the
>student's work on screen.
>

I can't seem to find the link to  'Annotate submission' on my Moodle 2.4.1 production site. I've got Ghostrid...erm..GhostScript installed already on my Linux server. Here's the screenshot of the "View/grade all submissions" output:

If you notice on the upper-right part of the image, the "PDF Feedfack" link is grayed out. Can't be clicked on.  Below are the settings part of the assignment. As you can see, I've enabled PDF Feedback.

Am I doing something wrong? What am I missing?

In reply to Frankie Kam

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

From the screenshots, you've submitted some files to the 'file submission' plugin, but not submitted anything to the 'pdf submission' plugin.

From what I can see on the settings screen, when you went to submit your assignment, you should have been shown two different filemanagers - one for the file submission (which you have enabled) and one for the pdf submission (which you also have enabled). Files need to be submitted to the pdf submission to be annotated.

It also looks like you haven't got 'quick grading' enabled on the overview page. As with all feedback types (comments, text, file upload) you can only provide feedback from the overview page if you turn on 'quick grading'. Otherwise, you need to click on the 'grade' icon on an individual user to see their grading page and the 'annotate submission' link.

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Frankie Kam -
Picture of Plugin developers
Hi Davo. I'm stumped. Actually I have also submit via the PDF submission FIle Manager. Still can't see any "Annotate PDF" link. Where is it supposed to show up? Actually the server where my Moodle 2.4.1 resides has already been setup with Ghostscript. The same server public_html area contains my Moodle 1.9 in which the PDF annotation for Moodle 1.9 works beatifully. So I'm still puzzled why I still can't see the "Annotate PDF" link. Thanks for the quick grading tip. Frankie Kam
In reply to Frankie Kam

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Frankie I don't know what to suggest.

Having tried several times, I can only reproduce the screenshots shown by turning off PDF submission.

If you haven't done that, then I don't know what to suggest.

With quick grading on, I can see this:

 

On the grading screen I see this:

On the submission screen I see this:

 

Note the 'download response' and 'view response online' links are there as I have already saved some feedback for those users.

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Frankie Kam -
Picture of Plugin developers

Hi Davo

I have a confession to make. PDF Feedback on my site works fine and there is nothing wrong with it. I just messed up when I was testing it out and I didn't really examined in  detail your feedback. Pure laziness on my part. And I gave up too soon back then. 

BUT I did finally have another stab at getting the plugin to work on my site. Guess what? It works! Actually it was working all the time, it's just that I missed two crucial steps in my haste. Yes, as you had advised, I needed to submit to the "PDF Submission" file manager. I had previously submitted to the File Submission file manager (wrong one) and I had not turned ticked the PDF submission checkbox (tsk! tsk!). and the other trick was to turn "Quick Grading" to on. I can now see the so illusive (to me) "Annotate submission" link. Eureka!!!

I then proceeded to annotate the PDF and generated a response file. From the user point of view, he/she can view the Response File online. So everything is hunky-dory! Yes! Another WOW FACTOR for Moodle. Moodle rocks!!!

Thanks for a great plugin and this is IMHO, a very, if not the very, most useful plugin for teachers to use for students. Provided they have a lightpen or a stylus instead of a mouse to doodle and to 'write' annotations, hehe. Frankie Kam.

 

In reply to Davo Smith

Re: PDF annotation assignment plugin

by andrew dos santos -

I am trying to use this plugin to create feedback for some assignemnets within a pdf however i keep getting this error:

Unable to generate image - details: Command:/usr/bin/ghostscript -q -sDEVICE=png16m -dSAFER -dBATCH -dNOPAUSE -r100 -dFirstPage=1 -dLastPage=1 -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -sOutputFile="/home/sceafric/clx_moodledata/temp/assignfeedback_pdf/5bb61d8bac0f08a7434f4e8a1857a8685adc593f/img/image_page1.png" "/home/sceafric/clx_moodledata/temp/assignfeedback_pdf/5bb61d8bac0f08a7434f4e8a1857a8685adc593f/sub/submission.pdf" 2>&1
Result:

 

This puzzle me because when i run the command in the linux box my moodle instance is running on it completes just fine and the output image is is shown in the correct directory.

 

Can anyone one assist me?

In reply to andrew dos santos

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Have you got the very latest version of the code from github? ( https://github.com/davosmith/moodle-assignfeedback_pdf /  https://github.com/davosmith/moodle-assignsubmission_pdf )

If so, when you go to the settings page (site admin >  plugins > assignment plugins > feedback plugins > pdf feedback), does the 'test ghostscript path' link work?

In reply to Davo Smith

Re: PDF annotation assignment plugin

by andrew dos santos -

Thanks for replying so fast.

I believe that it is the newest version however i dont get the option to change ghostscript path nor do i get a test ghostscript path in the feedback part. I can change the ghoscript path in the submissions sections though.

 

Attachment Screenshot - 27032013 - 114842.png
In reply to andrew dos santos

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

If you don't have that option under PDF feedback, then you don't have the latest development version of the code from github. I am in the process of making a lot of changes to the code and the latest version on Moodle.org does not have all of these features yet. One new feature is a link to test the ghostscript path on the settings page (which is why I specifically asked if you had the latest version from github). The latest version number is 2013032500 (for both plugins).

In reply to Davo Smith

Re: PDF annotation assignment plugin

by andrew dos santos -

Thanks again.

I loaded the newest versions and the test ghostscript link is here now, i tested it and i get this error similar to the original error, i have also confirmed that the path to gs is correct:

 

Unable to generate image - details: Command:/usr/bin/gs -q -sDEVICE=png16m -dSAFER -dBATCH -dNOPAUSE -r100 -dFirstPage=1 -dLastPage=1 -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -sOutputFile="/home/sceafric/clx_moodledata/temp/assignfeedback_pdf_test/image_page1.png" "/home/sceafric/public_html/clx/mod/assign/feedback/pdf/testgs.pdf" 2>&1
Result:

In reply to andrew dos santos

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Andrew - I'm afraid I don't know what to suggest.

I assume you have a linux set up (from the path), that you have ghostscript installed on the server, you don't have any security restrictions in place to prevent the PHP 'exec' command from running and you have checked that switching on debugging ( http://docs.moodle.org/en/Debugging ) doesn't show any other errors? 

In reply to andrew dos santos

Re: PDF annotation assignment plugin

by William Lu -
Picture of Particularly helpful Moodlers

I am having same problem.

Click on 'Annotate submission' got:

Unable to generate image - details: Command:/usr/bin/gs -q -sDEVICE=png16m -dSAFER -dBATCH -dNOPAUSE -r100 -dFirstPage=1 -dLastPage=1 -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -sOutputFile="[tempdir]/assignfeedback_pdf/50c5e7f7a356ea1c2a481a8ba9b7b347f0166c7b/img/image_page1.png" "[tempdir]/assignfeedback_pdf/50c5e7f7a356ea1c2a481a8ba9b7b347f0166c7b/sub/submission.pdf" 2>&1
Result:GPL Ghostscript 8.62: Unrecoverable error, exit code 1

 

My gs test passed fine.

I am in Moodle2.5.1

 

Dear Andrew,

Have you got a clue yet?

In reply to William Lu

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

You seem to have a slightly out of date version of ghostscript - you might find that upgrading to a more recent version (9.07 is the latest, according to the website) might fix the problem.

Whatever it is, does appear to be an internal problem within ghostscript, rather than an issue with my plugin itself.

In reply to William Lu

Re: PDF annotation assignment plugin

by William Lu -
Picture of Particularly helpful Moodlers

Fixed by the IT of our Uni, see below:

The error was caused by missing fonts. Fonts used by ghost scripts should be installed separately and/or available in the search path used by ghostscript.

In our case the search paths are:

. : /usr/share/ghostscript/8.62/lib :

/usr/share/ghostscript/8.62/Resource :

/usr/share/ghostscript/fonts :

/usr/share/fonts/TTF

sym linked the font folder /usr/share/fonts/Type1/

to /usr/share/ghostscript/fonts/

Regards,

Aravind.

 

Thanks to Aravind!smile

Average of ratings: Useful (1)
In reply to William Lu

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Thanks for posting that info - I've added it to the README for the plugin (it will be included next time I release to Moodle.org).

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Bryan Dawson -

We are looking to use these PDF extensions for the marking of Lab Reports and other student coursework containing a mix of text and other sources.

We have them installed on a test server, and they work perfectly when used via Google Chrome on PC.  However:

1) When used on FireFox PC, the graphical overlay is not being cleared when you change pages.  This means that the overlay 'collects' all graphical annotations as you go through the document so by the time you reach the last page, it shows every line, box, stamp etc that was used anywhere in the document.  The text comments (which are presumably on a different overlay) are fine.  The created PDF for downloading is also fine - it's just the on-screen rendition of graphics that has the problem.

2) Internet Explorer 8 PC is a disaster.  Although the document shows up in the editor, none of the controls function properly, and the screen layout is corrupted.  Unfortunately this is our institution's default browser, so it's a serious problem.

Does anybody have any similar experiences or workrounds?

Is there any intention to provide a more sophisticated text entry system e.g. that accepts and renders HTML?

submission plugin is 2013013000

the feedback plugin is 2013021300

 

Thanks,

Bryan Dawson

In reply to Bryan Dawson

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Locally it is working perfectly in Firefox, Chrome and IE9.

IE8 has a very slight bug, that causes stamps to display a border around them, but apart from that is working fine.

Could you possibly try out the lastet versions of the plugins from github?

https://github.com/davosmith/moodle-assignfeedback_pdf 

https://github.com/davosmith/moodle-assignsubmission_pdf

There are no plans to accept HTML in the comments - I cannot immediately see what the use case for this would be and it would certainly cause problems if anyone typed a '>' or '<' character within the text, which wasn't meant to be a HTML tag (quite aside from the way that the text would be inconsistent between when you were editing it and when you were viewing it).

If the above links do not solve your problems, please could you let me know which Moodle version you are using as well as the theme you have chosen.

 

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Bryan Dawson -

I have now installed the newest (March 25th) versions, and the situation is reversed: IE8 is fine, and has boxes round the stamps, but both Chrome and FireFox have non-functioning interfaces, as shown below:

corrupted layout of editor interface

In reply to Bryan Dawson

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Have you tried clearing your web browser caches?

When you do an upgrade like this, your web browser has a habit of keeping old bits of javascript code around, which don't match with changes to the page layout. These would timeout after 24 hours, but clearing your browser caches should fix it straight away.

If that doesn't solve the problem, then could you look in the chrome developer tools 'Menu > Tools > Developer tools' (or in the Firefox javascript console) and let me know any error messages that appear?

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Bryan Dawson -

Thanks, that fixed it.  It now works with IE8, FF and Chrome.

Regards,

Bryan Dawson

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Dave Livingston -

I recently installed both the assignment and feedback plugins. The assignment side worked fine, however when I installed the feedback plugin the assignfeedback_pdf_x tables did not get created in the db.

Is there an easy way to create those tables with out having to manually  enter them into the database? 

Is there a way I can uninstall and reinstall the feedback plugin?

I am using postgres 8.

Thanks in advance for your help.

Dave

Attachment screen-capture-2013-05-30 03.33.40 pm.png
Attachment screen-capture-2013-05-30 03.34.43 pm.png
In reply to Dave Livingston

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Sounds a bit odd.

I would suggest going to admin > plugins > assignment feedback > manage assignment feedback plugins (this is off the top of my head) and then uninstalling the plugin there.

Visiting the 'home' page, should then spot the plugin again and install it afresh (which should hopefully set everything up for you).

If that doesn't work, you could always set up the plugin on a clean Moodle install, then export the DB structure for those tables + re-import (via whatever DB admin interface you are using).

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Dave Livingston -

Removing both plugins, upgrading moodle to the newest version and reinstalling from git seems to have fixed the bad install.

Thanks for the help and quick response.

Dave

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Rob Woof -

Hi Davo,

I'm running Moodle 2.4.4+ and I am doing some testing of the PDF Submission/PDF Feedback plugins (version 2013061200 of both) in preparation for roll-out.

I noticed an issue with Blind Marking. Blind Marking (i.e. teachers cannot see student names when grading assignments) is required at my institution, and is built into Moodle 2.4 and 2.5. However when I activate PDF Feedback the student's name is shown in the tab's title bar when annotating, even though Blind Marking is selected.

Am I missing something, or do I need to hold off using this wonderful plugin for now?

Cheers,

Rob

In reply to Rob Woof

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Blind marking is not a feature I've looked at supporting.

I don't know how much work would be involved in doing so (probably only a couple of lines of code, if it is just the title bar that is an issue), I just haven't looked yet.

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Rob Woof -

Thanks, Davo.

I suspected as much. I'll have a dig through the code and see what I can see. I have looked again, and it is just the title bar, which means there must be only one or two lines of code involved.

I'll have a dig around, and see what I can see.

Cheers,
Rob

In reply to Rob Woof

Re: PDF annotation assignment plugin

by Rob Woof -

I had a bit of a dig around, and found three places where there would need to be changes. I had a go myself, but my PHP ability hit the wall pretty quickly.

In the end, I inserted some fixed text strings to replace the parts that put the submitter's name into the page title. Instead of the name, it now says "Anonymous".

In order to put the plugin into use, I will run with that hack for now.

BTW, in every other respect this plugin totally rocks. I salute your effort!

In reply to Rob Woof

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Rob,

Just to let you know, the latest version of my assignfeedback_pdf plugin on Git Hub ( https://github.com/davosmith/moodle-assignfeedback_pdf ) now replaces the user/group name with 'Blind marking' when that feature is enabled (and disables the ability to view previous assignments for the given user).

If you were able to double-check it does what you wanted, before I push an update back to Moodle.org, then that would be appreciated.

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Rob Woof -

Hi Davo,

Yep, that works! 'Blind marking' instead of student name is great. I've installed it on my dev server and had a play, and it works exactly as described!

I really appreciate your efforts here. It is a wonderful feature to have the Blind Marking built in. I had figured out a hack, but built in beats hack any day!

Many, many thanks!

Rob

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Pauline Fogarty -

Hi Davo

Im just wondering if the UploadPDF activitiy could be available to students to use so they could peer-review and supply each other with feedback on each others work? If they could upload their assignments and make them accessible to others in their class, I think students would enjoy this feature for commenting /annotating. Any suggestions?

I know there is a Workshop activity designed for the purpose of peer assessment but using uploadpdf or this assignment/submission activity would be more interactive and even enjoyable for them.

By the way, we are about to upgrade to 2.5 so which plugin would be advisable : plugin=assignsubmission_pdf or plugin=assignment_uploadpdf

I have used Moodle Forums in the past where students share their assignments in Word format and use Word’s comment feature for annotation but this UploadPDF would be far better. Any suggestions would be great.

It would even be more amazing if UploadPDF was usable within the Workshop activity but I doubt that is feasible . Any and all feedback on this welcome! Thank you

In reply to Pauline Fogarty

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Definitely use feedback_pdf and submission_pdf - uploadpdf is now unmaintained and will probably stop working at some point (with future versions of Moodle).

No, there is no functionality in the Moodle assignment type to allow annotating of PDFs of other students. There are some changes being made to the plugin in the process of integrating it into Moodle core in 2.6 (hopefully), which *may* mean that it is possible to then update it further and have it work in other places in Moodle. However, this is unlikely to happen in 2.6.

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Pauline Fogarty -

Thanks for your response Davo.

I have downloaded the plugins you suggested for moodle 2.5 which appears to be successful.  However I am trying to test its functionality but keep coming up against an error.

When I set up an assignment activity I cannot see witin Submission and Feedback Types, I do not see the option to tick PDF Submission or PDF Feedback Submission. However I did notice when I go into Site Administration>Plugins>Assignment Plugins>Submission Plugins>Manage Submission Plugins - the option for PDF Submission is there but it is 'hidden' under the Hide/Show icon. I have tried unhiding and going back to Assignment settings but it still wont show. When I go back to check it again in site administration, it has automaticaly reverted back to 'hide' mode again.

Likewise  within Manage assignment feedback plugins: Pdf feedback keeps reverting to ‘hide’  mode.

Is there something Im missing? I hope you can assist as I have spent a long time on this and cannot figure out what may be causing this. Thanks again.

Pauline

In reply to Pauline Fogarty

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Go to the feedback global settings settings and click on the 'test ghostscript path' link - if these tests fail, then the plugin is automatically disabled, to prevent teachers using the plugin before it has been configured.

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Richard Lian -

Hi Davo - might seem like a silly question, but I can't seem to find how to use the new plugin.

I am on version 2.3.5

I have installed the two plugins and tested the Ghostscript path with is successfull. But when I go to add an activity I can't see anything for assignment PDF. Am I just being daft?

In reply to Richard Lian

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Do you mean that you can't see it in the activity chooser?

It's not supposed to be there - it should be on the settings page once you create an assignment (along with the standard submission & feedback types).
In reply to Davo Smith

Re: PDF annotation assignment plugin

by Richard Lian -

Hi Davo,

I created a single file upload and an advanced uploading of files one and can't seem to see the settings if I click on Edit settings for the assignment.

If I check site settings I can see both the submission and feedback plugins in the activity section.

Thanks.

Attachment moodle pdf.PNG
In reply to Richard Lian

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

The feedback/submission plugins only work with the new mod_assign module ('assignment' in Moodle 2.3, not 'assignment (2.2)'). If you are still using the old mod_assignment module ('assignment (2.2)') then you will need to install my uploadpdf assignment plugin instead - https://moodle.org/plugins/view.php?plugin=assignment_uploadpdf

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Richard Lian -

Hi Davo,

We used to use your UploadPDF plugin - it worked great!

We are on Moodle 2.3.5 - should our assignment version not match this or I have I missed something here?

In reply to Richard Lian

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

In Moodle 2.3, the old assignment module (mod_assignment) was replaced by a new version (mod_assign). The code for mod_assignment is still present, but (except for upgraded sites) it is disabled by default.

In Moodle 2.3+ the old assignment type (if enabled) is referred to as 'Assignment (2.2)'. 

My uploadpdf plugin works with mod_assignment (AKA 'Assignment (2.2)'), my submission pdf and feedback pdf plugins work with mod_assign ('Assignment' in Moodle 2.3+). You can use whichever of these two versions of my plugin you want to, but your screenshot says 'Assignment (2.2)' at the top of it, so you are using the old Moodle 2.2 (and below) form of assignment, so my submission/feedback pdf plugins will not appear. If you want to use the new versions of my plugins you need to create a new assignment (not a new 'assignment (2.2)').

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Richard Lian -

Hi Davo,

I understand now. It looks like I have a problem with my "Assignment" module i.e. the one for 2.3. The old "Assignment 2.2." seems to work fine.

I started a new thread - have you seen this before?

In reply to Richard Lian

Re: PDF annotation assignment plugin

by Richard Lian -

Hi Davo,

I have upgraded to Moodle 2.5 and your new plugins work a treat.

Thanks for the help!

Regards,

Richard

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Pauline Fogarty -

You were right Davo, the ghostscript path had an error and as soon as I corrected the file path, I was back in business. Am now looking forward to using this fantastic feature. Thank you very much!

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Frankie Kam -
Picture of Plugin developers

Hi Davo

Moodle PDF assignment type - how does it handle multiple teachers / multiple markers? do they all annotate the same document, or can they annotate one version each?

Regards
Frankie Kam

In reply to Frankie Kam

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

There is one set of annotations per document - if a two teachers annotate at once, then you will see the other teacher's annotations as soon as you change pages (there isn't a mechanism for pulling up the annotations from the current page without moving pages, as that would be a lot of work to implement and only rarely useful).

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Kate Davies -

Hi Davo, 

I've installed the plugins on my localhost (windows) with 2.4, but when I am annotating the PDFs a message appears over the pdf "Server communication failed - do you want to resend the message?" The option to resend just causes the message to reappear moments later, ditto for cancel. 

I can't seem to save draft annotations or publish them subsequently. Using Chrome 28. The message also appears when previewing the annotations later (not that any get saved).

Have I forgotten to do something? What should I look for?

I also have: Strict Standards: Declaration of assign_submission_pdf::get_files() should be compatible with assign_plugin::get_files(stdClass $submissionorgrade) inC:\xampp\htdocs\moodle2\mod\assign\submission\pdf\locallib.php on line 766

Many thanks.

In reply to Kate Davies

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

If you turn off debugging does it work?

It looks like this is another place where the assign_submission API has changed between Moodle versions - if you edit the line giving the error and delete the 'stdClass $user' bit, then it should remove the warning message.

 

Average of ratings: Useful (1)
In reply to Davo Smith

Re: PDF annotation assignment plugin

by Kate Davies -

Hi Davo, 

Yes - turning off debugging completely has fixed the problem and all the test markings I made on Monday appeared to boot. 

Thanks for that!

In reply to Kate Davies

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Glad to hear that Kate.

I'll go back and review the compatibility of my plugin against Moodle 2.3/2.4 when I get a spare moment (hopefully tonight) and I should be able to eliminate those warning messages (which are breaking the AJAX calls from the browser back to the server).

 

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Just to update on this - it looks like a backported change introduced via MDL-39760 caused this strict standards warning. I've worked around it by releasing a new Moodle 2.3 / 2.4 version of my plugin, but that will only be compatible with the latest versions of Moodle 2.3/2.4 and will not be backwards compatible if anyone has an earlier version of Moodle 2.3/2.4.

 

In reply to Davo Smith

Re: PDF annotation assignment plugin

by t brown -

I love the idea of this plugin. We installed it last night. When I tested it something strange happened. With in the Assignment module, the option for PDF Submission and PDF Feedback keep disappearing.

When we go back to plugin in Admin settings is is turned to "hide". Then when we go back to Assignment we can see it, but as soon as I save the test assignment, it disappears.

Any ideas?  We are running 2.5

 

Thanks in advance.

In reply to t brown

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Have you followed the step 5 of the installation instructions: https://github.com/davosmith/moodle-assignsubmission_pdf/blob/master/README.txt ? 

Have you tried clicking on the 'test ghostscript' link after doing that?

The plugin deliberately disables itself if ghostscript is not properly configured (to prevent teachers seeing an option that doesn't work). I'd prefer it to be a temporary disabling until the plugin is configured, but the API doesn't allow me to do that (the function I'd need to override to allow that is 'final' and cannot be overridden).

In reply to Davo Smith

Re: PDF annotation assignment plugin

by t brown -

Davo,

 

Thanks. I really don't know because my Tech is handling it. I have forwarded this to him and will know later today. Hopefully, this resolves it. Really looking forward to using it.

 

Thanks

In reply to Davo Smith

Re: PDF annotation assignment plugin

by andy emerine -

Does this work from a student side? For instance I just received a request from a teacher. She said, "I have fill in the blank notes from our text book that are really good. These are PDF documents. Is there a way I could make these accessible to my students in Moodle and allow them to type/draw on them and make annotations?"

In reply to andy emerine

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Theoretically, the frontend could be made to work with students annotating PDFs.

However, the code has not been set up to work that way and it would take quite a bit of rewriting to allow this to happen.

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Rob Johnson -

Hi Davo,

I am hoping for some help troubleshooting PDF submissions from Google Drive.  I am using Moodle 2.4.5+, version 2013061201 of the PDF assign plugin and version 2013061200 of the feedback plugin.  I have hacked my Google Drive repository to return PDF files instead of .rtf.  This works fine.  Students compose in GDrive, browse GDrive in the file picker and submit.

The problem I have is when the submission is viewed for annotation.  The text rendered is extremely small.  Please see image below.

 GDrive PDF

If I download the submission, the text is readable in a PDF viewer.  PDF submissions created outside of Google Drive look fine.  I have attached the PDF used for the screenshot in case that helps.  Any ideas?

Rob

In reply to Rob Johnson

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I'm not sure - the PDF is simply fed into ghostscript via the command line and the PNG image produced by that is sent back to the browser. Something strange must be happening with the PDF when you are pulling it out of Google Drive, as there really isn't anything strange that gets done to it by my code.

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Ada Yau -

It seems only selectable text PDF file is acceptable in PDF annotation assignment plugin. We received several scanned assignments and returned error "Unable to generate image".

In reply to Ada Yau

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I've used plenty of PDFs with images in them and they've worked without any issues.

My best guess would be that the file was very large and that it was timing out waiting for ghostscript to generate the pages.

Please could you turn on debugging on your site and see if you get a more detailed error message?

In reply to Davo Smith

Re: PDF annotation assignment plugin

by umesh chavan -

Hello Davo,

Hope You all doing well!!

Thanks for your plugins!!!Its helping my teachers and students a lot!!!

A very strange thing we observed,

1. A PDF created by students is very much clear, but when submitted for grading, while Annotation the content gets distorted.If the submitted files downloaded and opened in PDF reader it again shows normal content. Hence students are loosing their marks. example is attached here.

Uploaded opened in annotation :


Original PDF

so is there any compression ratio used or resolution change is required or ????

I have installed latest version of Moodle on local server and accessed locally. The Ghostscript test is also working fine..

2. When Teacher creates assignment with due date and time ex. 5.30pm, it shows 6pm at students window and they are able to submit after 5.30pm.

where should we check for the time change?


Thanks

Umesh

In reply to umesh chavan

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Hi Umesh,

Firstly, I strongly suggest you use the standard PDF annotation plugin that is now built in to Moodle core (since Moodle 2.6 - made even more prominent with Moodle 3.1).

As for the formatting of the output - that is down to ghostscript. If you have a particular PDF that is not creating a correct output with the latest version of ghostscript, then I suggest you contact the maintainers of ghostscript and report the problem to them.


In reply to Davo Smith

Re: PDF annotation assignment plugin

by umesh chavan -

Thanks Davo,

i tried installing latest ghost script but the problem still persists.

secondly as you advised for using Annotate PDF,

1. If I disable the Feedback PDF, to use annotate PDF, it does not show Annotation Tab.

2. when i tried opening Annotate PDF, there was an error so I could not apply it (???)

3. Can we rotate the PDF while checking ( as if there is original file in landscape page format, it shows in annotation as portrait only)

How do I resolve the error?


the help link does not relate to the problem.


In reply to umesh chavan

Re: PDF annotation assignment plugin

by umesh chavan -

Hello Davo,

Thanks for the guidance.

I tried and got success to remove the error and now its working fine.

using error message only I figured out the solution and resolved it.

Now I can use both the PDF feedback and Annotation plugin.

About the development of Annotate PDF plugin by moodle where to discuss for more changes in the module?


Thanks

Umesh

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Graeme Dunkley -

I'm very new to moodle and I've just tried to get this plug-in to work. I installed it directly from the plugin directory, not through linux. Now I can't create any assignments at all - i get an 'unable to read database' error. Help!

In reply to Graeme Dunkley

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Graeme, I'm going to need more information than that in order to help you out.

What version of Moodle are you running?

Which version of the plugin did you install - the 'uploadpdf' version for Assignment (2.2) or the 'submissionpdf' + 'feedbackpdf' versions for the newer Assignment module?

If you turn on debugging ( http://docs.moodle.org/en/Debugging ) do you get any more useful error messages?

Did the install appear to work correctly (did it list the plugin(s) as needing installing, did it say they had been installed OK)?

Were you able to configure ghostscript correctly - on the site settings page does the 'test ghostscript path' link work?

 

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Graeme Dunkley -

Hi Davo, thanks for the prompt reply. I'm very new to moodle, so thanks for you patience too.

1) Moodle 2.6

2) I'm not sure

3) Not really, i expect some kind of 'you have installed' splash page, but i was a page that looked a lot more like an error page

4) i turned on debugging but got nothing

5) 'test ghostscript path' didn't work

i suspect there's a problem with gs - i can't even find the relevant directory on the ftp site. i think i will need to take it up with the person who installed moodle for us

In reply to Graeme Dunkley

Re: PDF annotation assignment plugin

by Graeme Dunkley -

Hi Davo, I've now realised i didn't need the two plug-ins, Annotate PDF is core in 2.6. I've uninstalled them and am still trying to get Annotate PDF to work correctly.

Testing the gs path produces a "non-existent file" error, but my hosting service assures me the path is correct.

Any suggestions?

In reply to Graeme Dunkley

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

There is a standard PHP function 'file_exists' ( http://uk1.php.net/file_exists ).

The test code directly calls this function with whatever path you typed into the settings.

If the 'file_exists' returns false, then the error message you mentioned is displayed.

Therefore, the error can only displayed if either the file does not exist in the location you specified, or it is not accessible by the web server software (note, the path must include the name of the executable itself, but if that was all you'd missed out, then you would have got a different error: 'The ghostscript path points to a folder ...').

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Tony Featherstone -

Great plugin.

 

I cannot see how to delete an annotated file once it has been created

 

It is probably obvious - so who is going to tell me first?

In reply to Tony Featherstone

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Tony,

There is no functionality for deleting an annotate file once it has been created. Whilst I was teaching with my plugin, I never came across a situation where I needed to do this.

 

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Tony Featherstone -

Thank you for your response, I understand that you never needed it.

A student uploaded the wrong file and I made some comments on it. He has deleted his file but I cannot delete the annotated file.

The students have expressed surprise that such a mistake cannot be rectified.

I cannot think of another situation where a file cannot be removed.

Surely this is a basic need for tutors or administrators to be able to do?

Could this be done?

In reply to Tony Featherstone

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I can look into doing this, but I can't make any promises about how long it will take to do (as an adapted version of my plugin is now a standard part of Moodle 2.6, I am now tending to do a lot less work on my own standalone version of it).

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Tony Featherstone -

Many thanks,

Is there a quick fix way of doing it, I can access the database and ftp the files. I can also change a bit of code here and there.

I think in due course this might appear as a need from others.

 

Anyway - great plugin!

 

Regards

 

Tony

 

In reply to Tony Featherstone

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

It could probably be removed by manually editing the database table mdl_files (if you don't mind a small amount of space being taken up on the server by the orphaned file still remaining on the disk).

However, that is not usually a safe thing to do.

I will look at this as soon as I can, but this is the first time such a request has come up, so it will take me a while to address it.

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Tony Featherstone -

Ok, really appreciate your efforts.

 

 

In reply to Tony Featherstone

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I've checked in some new code to https://github.com/davosmith/moodle-assignfeedback_pdf (master branch only - so it is compatible with Moodle 2.6).

This adds a 'delete response' link to the main grading page, as long as there is a response to delete.

It does not delete any of the comments/annotations, so they will reappear when you start to annotate a newly submitted response (deleting the comments in one go seemed rather dangerous - you can still delete them individually if you want to get rid of them).

It's marked as beta, as I'm fairly certain it works, but there may be problems I haven't thought of.

Average of ratings: Useful (1)
In reply to Davo Smith

Re: PDF annotation assignment plugin

by Tony Featherstone -

WOW, that was quick.

 

Thank you so much, I will check it out and give you any feedback I can

 

Kind Regards

 

Tony

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Tony Featherstone -

Sorry to bother you again.

 

I have not applied changes like this before.

 

Is there a procedure somewhere for applying these changes from github?

In reply to Tony Featherstone

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Download zipfile.

Unzip.

Delete existing files (from /mod/assign/feedback/pdf) from server.

Upload new files (to /mod/assign/feedback/pdf).

 

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Tony Featherstone -

OK, did that but got the attached message in notifications.

Note: there was not an existing pdf folder to delete, so I just added your folder to mod/assign/feedback.

Note: the zipped folder was called moodle-assignfeedback_pdf-master, so I changed it to pdf.

Any idea what went wrong? - respond only when you have the time.

 

thanks again

 

Attachment Capture Selection-20140403-105707-7.png
In reply to Tony Featherstone

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

If there was no existing 'pdf' folder, then you are not using my plugin, you are using the 'editpdf' plugin that is part of Moodle core in 2.6 (which was based on my plugin, but substantially rewritten by Damyon in Moodle HQ).

My plugin only works if the supporting 'assignsubmission_pdf' plugin is also installed - it has also quite a significantly different UI to the Moodle HQ version. I wouldn't recommend moving over to my plugin if you're already using the new version in Moodle 2.6.

 

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Emily Buckell -

Hi Davo,

I love the idea of annotating PDF's to make grading move faster. I'm having trouble seeing the annotations that my students have made.  We use Foxit in class. I have added a resource file, the students downloaded it, commented on it, and submitted it as an assignment.  When I launch the PDF editor, I cannot scroll down to see the full page.  Also, I can't see the annotations that the students added.  I can see the original document. 

Can you help me out? This could really save me a ton of time grading papers.

 

Emily

In reply to Emily Buckell

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

The scrolling is, I believe, fixed in the latest Moodle code (assuming you're using the standard Moodle 2.6 version of the code, not my 3rd-party plugin version for earlier Moodle versions).

I don't know if there is any way to convince ghostscript to include the foxit annotations when generating the page images that you see when annotating within Moodle (unlike the annotations generated by Moodle, these are actually a separate layer of information, rather than being added directly into the page itself).

I'll look at the ghostscript options and see if there is something that could be added to the code to do this.

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Well I tried a quick test to see if the ghostscript '-dDOPDFMARKS' option would include annotations from software such as FoxIt within the submitted PDFs.

It hasn't been very successful. A few annotations, such as highlights and underlines seem to work and you get the icons appearing for pop-up comments, but other annotations such as polygons, ovals and inline comments don't seem to work. I'm afraid there isn't a solution to this.

To be clear to anyone joining this conversation mid-way through, this only applies to annotations added by 3rd-party PDF editors not appearing during marking, when they are contained within the student's submissions. Normal contents of the file (such as those added by the PDF annotations within Moodle) will work fine.

In reply to Davo Smith

Re: PDF annotation assignment plugin

by Mark Mclennan -

Hi Davo, 

Quick check re: compatibility with Moodle 2.7 (specifically; Moodle2.7+ (Build: 20140626))

Can see the version on your Github showing compatibility for 2.3+ with a specific fix for 2.6 backups. But none of the posts in any of the forum threads seems to have yet mentioned 2.7 - so wondering if the expectation is that it will just work (or that it definitely won't work ?)

Happy to be the first to give it a try - but hoping someone else has already done that...


Cheers

In reply to Mark Mclennan

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I've not (yet) tested my PDF annotation plugin with Moodle 2.7.

I can't think of any reason why it wouldn't work, but I'd encourage users to start using Moodle's built-in PDF annotation features, once they have upgraded to Moodle 2.6 (or above). The core version will get much more maintenance & testing with each new Moodle upgrade than I am able to do with my version.

In reply to Davo Smith

Re: PDF annotation assignment plugin

by umesh chavan -

hello

I have used the plugin with 1.9 and 2.6 moodle ...its working amazingly...

Thanks for such wonderful plugin...


Our teachers are wanting to have more stamp which will be easy for checking drawing files.

There are number of common comments which can be used as stamp.

Is there a way to create your own stamps?

How to go about it?

Please help and guide....


Thanks

Umesh



In reply to Davo Smith

Re: PDF annotation assignment plugin

by Raegan McCallum -

Is there a utility that allows students to markup/annotate PDFs loaded by the teacher?  This would be a great way to use existing resources quickly.

In reply to Raegan McCallum

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

In theory, much of the code could be reused to create such a plugin.

However, I am not aware of anyone who has developed a plugin to do this (either based on my code or the rewrite that Damyon did to get it in to Moodle core).

In reply to Davo Smith

Re: PDF annotation assignment plugin

by umesh chavan -
Hello Davo
The plugin is doing magic for us at our institute...
there are two things..
1. While checking the submission on touch screen (Mobile/Tab) the page moves instead of checking.
2. our teacher would want to have more customized stamps ex. Dimensions are mentioned , Line width is incorrect etc...

Is there any way to add more stamps to the exixting ones?


Thanks

Umesh
In reply to umesh chavan

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Umesh - please take a look at the version of PDF annotation built in to Moodle 2.6 (and above).

This allows you to edit the stamps via the site admin settings (alternatively, with my version, just add some images to the /pix/stamps directory within the plugin's code).

I looked at adding touch support to my version of the plugin, but found it was too easy to get stuck in the middle of the page without being able to scroll back off it again (as every attempt to scroll would result in drawing instead). I think the core version works better with touch.

In reply to Davo Smith

Re: PDF annotation assignment plugin

by umesh chavan -

Thanks Davo..

I will try adding additional stamp images and check.

so does it mean we wont be able to use touch screen for checking or annotating the submissions?


secondly could you please help me out for moodle 1.9 where my students upload submissions

the uploadpdf and annotation was working well with this version of moodle, but suddenly started getting the error as

Unable to generate image from PDF - check ghostscript is installed and this module has been configured to use it (see README.txt for more details)..the image attached here....

moodle 1.9 is been hosted on shared server.


thanks


umesh

Attachment Untitled.jpg
In reply to umesh chavan

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

With my plugin, on a tablet, you can check submissions and add comments (if I remember correctly), you just can't draw annotations. I haven't tried with the Moodle core version on a tablet, so I can't comment.

I'm afraid Moodle 1.9 is not something I offer any support for now. It looks like the exact format of the PDF is unsupported by the version of ghostscript you have installed on the server. If you have command-line access to the server, you could try running the ghostscript command that is shown in the error message, but I can't offer more advice than that.

In reply to Davo Smith

Re: PDF annotation assignment plugin

by umesh chavan -

Hello Davo,

OHHHH!!! Its very strange for me that it worked for us submission checking online using your module in Moodle 1.9 and now suddenly stopped.

We have hosted moodle on shared server (cent os) and according to the support team the hosting company they said there was no such script running ever and they cant install for us.

So am surprised then how the submission and pdf checking was working for last 4 months?

is there any setting is to be done in moodle 1.9?

if the ghostscript was never installed on the server then .....???

please help me as my this term, students are submitting submission for checking and teachers are waiting for it....


please please

thanks

umesh

In reply to umesh chavan

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I cannot help with server problems.

None of the versions of PDF annotation work if ghostscript is not installed on the server (and accessible to PHP). There is a test in the global settings (for recent versions of the plugins) which can check to see if it thinks ghostscript is available. If it is, then the problem is with the particular PDF, if not then this is something you will have to negotiate with your server admins.


In reply to Davo Smith

Re: PDF annotation assignment plugin

by umesh chavan -
Hallo Davo,

Thanks for your support...

when debugging mode is on i got an error..

Warning: exec() has been disabled for security reasons in /home/bncaorg/public_html/lms/mod/assignment/type/uploadpdf/mypdflib.php on line 273
In reply to umesh chavan

Re: PDF annotation assignment plugin

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I think that the error is pretty clear - your hosting company has disabled the 'exec' PHP command (for security reasons). 

The exec command is very powerful and in an shared environment it is probably sensible to disable it.

In this case, the code cannot function without it - it is used to call the external ghostscript program to generate the images of the pages. You need to talk to your hosting company about allowing the use of 'exec' in this case (it should be secure in this instance) or you need to look at finding a different hosting company.

In reply to Davo Smith

Re: PDF annotation assignment plugin

by umesh chavan -

Hello davo,

I tried with the stamps for moodle 2.6

suing both the ways ...admin/settings/plugins and all there i added one png image of size 200x200 and then replaced it with 40x40 also still it doent work

secondly i copied the image to the folder pix.. still the images are appearing in stamps...

how do i add??/

can we have some text as stamp

ex..stamp will have comment as "wrong dimensions"

"incorrect plan" etc

In reply to Raegan McCallum

Re: PDF annotation assignment plugin

by Cheryl Tyler -

I came on here looking for the same thing Reagan.  Did you ever find a solution or even a work around?