GM-Script-Writer-62850 / PHP-Scanner-Server

Allows you to use your Linux install as a web based scanner server thus allowing you to scan with any web enabled device; Now supports server side printing! (As of 1.4.11)
59 stars 17 forks source link

Error on generating pdg #21

Closed paolopc67 closed 9 years ago

paolopc67 commented 9 years ago

I have just installed my hp scanner and it work without problems but the web interface is not able to generate pdf files despite the presence of the php fpdf library. I have ubuntu 14.04 and I have verified that when I try to download the scanned file in pdf format it launches after selecting the correct dimension a new tab within the current browser with a blank image. This behavior is identical in different browser safari Firefox chrome and ie. The debug console doesn't give any more information

GM-Script-Writer-62850 commented 9 years ago

confirmed, looks like a JS issue, main.js line 864, files.quantity is undefined seems like a bug from merging the new printing feature with the pdf one

GM-Script-Writer-62850 commented 9 years ago

this should solve this issue commit if you find any issues with it please let me know

GM-Script-Writer-62850 commented 9 years ago

revised for better efficiency

thinks for bringing this to my attention i ran into it the other day and got distracted and forgot to fix it