Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate Printing into this server #4

Open
nariox opened this issue Nov 17, 2012 · 15 comments
Open

Integrate Printing into this server #4

nariox opened this issue Nov 17, 2012 · 15 comments
Assignees
Milestone

Comments

@nariox
Copy link

nariox commented Nov 17, 2012

Hi, I've been using PHP Scanner Server in my office, it is great. Since we only have one scanner, I connected it to our Linux Server and now everyone can scan without needing drivers, different log ins etc.

Would it be possible to integrate a Print server as well? I know I could try to use Samba to do it, but some of the computers are not in the same subnet (due to the university's network configuration).

My idea would be:
1 - Upload file
2 - Issue a "lpr" command

Again, thank you for the great software! (;

@GM-Script-Writer-62850
Copy link
Owner

This feature is built in to ubuntu, you just add a network printer, just open system-config-printer
Server - > Settings
Check the appropriate boxes, then add a network printer on the windows client
if i were on xp and wanted to connect to the printer this would be the url
http://10.0.0.50:631/printers/Deskjet-F4400-series
you can get a url from adding the printer as a network printer on the server
this way would be better than adding a feature like that to the scanner, since you can print anything
here is a guide
https://help.ubuntu.com/community/NetworkPrintingWithUbuntu

@nariox
Copy link
Author

nariox commented Nov 19, 2012

Hi, thank you for the fast response.

This is actually part of cups, not specific to Ubuntu (or even Linux), it is a nice feature, but it does have some limitations. For instance, if I want to print from laptop from the office, I would need to install the driver on that laptop, I know it is quite simple, but at the same time, it'd be nice if I could just send the pdf to the server and have it print it for me.

Another use that I've been looking at is printing pdfs from my phone. I know, I know, "who needs that?" right? I don't know, just wondering. I think it would be a nice addition for the php-scanner-server, but I agree that it is somewhat superfluous.

@GM-Script-Writer-62850
Copy link
Owner

i know back when i used XP and i shared my printer there was a option to share it and require other systems to have drivers, there may be a Linux equivalent of this feature, since i don't use windows any more i never had a use for that
do smart phones not support networked printing? there is a print button on the page when you scan something, then the browser uses the print function
PHP has a max file upload size, so keep that in mind
http://www.w3schools.com/php/php_file_upload.asp
you can just save the file to /tmp then run the command with shell_exec then deleted the file you saved

edit:
http://www.ehow.com/how_5981119_print-smartphone.html

@nariox
Copy link
Author

nariox commented Nov 21, 2012

My phone (Android 4.2) does not natively support printing (as far as I
know). By selecting the cups-shared printer, I can do "driverless" printing
(as long as I'm ok with not using some specific capabilities like automatic
double-sided printing etc).

If I select that option, the browser loads the image I selected and issues
a print command on my local machine (not on the server).

Pedro Nariyoshi

On Wed, Nov 21, 2012 at 9:44 AM, GM-Script-Writer-62850 <
notifications@github.com> wrote:

i know back when i used XP and i shared my printer there was a option to
share it and require other systems to have drivers, there may be a Linux
equivalent of this feature, since i don't use windows any more i never had
a use for that
do smart phones not support networked printing? there is a print button on
the page when you scan something, then the browser uses the print function


Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-10599396.

@GM-Script-Writer-62850
Copy link
Owner

I would think you could change the default printer

@GM-Script-Writer-62850
Copy link
Owner

Ok, i just found out what a PITA it is to print from a phone, this shall be done
screenshot
currently under development

@nariox
Copy link
Author

nariox commented Sep 8, 2014

Thanks for reconsidering it.

I have successfully been using AirPrint with https://github.com/tjfontaine/airprint-generate, but that only allows iStuff to print (useful for my wife, but not for me)
There's also Google CloudPrint, but I don't like having my printer accessible by external users. ):

@GM-Script-Writer-62850
Copy link
Owner

Needs some testing
c009dba
works here
it does not seem to work with cups-pdf (it is a pdf printer)

Note the install_git_version script on the downloads section of the wiki
https://github.com/GM-Script-Writer-62850/PHP-Scanner-Server/wiki/Downloads
the update script supports updating to the git version IIRC

@GM-Script-Writer-62850
Copy link
Owner

made some adjustments, still need to add a double sided printing option
1ef89b5#diff-3

@GM-Script-Writer-62850
Copy link
Owner

*double sided printing is probably bugged right now, just found out a way to detect printer options and they appear to have no standard (go figure, printers need to be scraped and all replaced and use a standard API that eliminates the need for drivers)
probably will not get to finish this up till Wednesday :(
i should be able to get printing options to work as well as scanner feature detection
but for now it prints :)

@GM-Script-Writer-62850
Copy link
Owner

And i think i have it ready, but i am not going to say it is stable yet, ready for serious testing though
5ebffac

@GM-Script-Writer-62850 GM-Script-Writer-62850 added this to the 1.4-11 milestone Sep 10, 2014
@GM-Script-Writer-62850
Copy link
Owner

have you had time to try the git version?

@nariox
Copy link
Author

nariox commented Sep 22, 2014

Sorry, I'm quite busy at the moment with teaching and taking classes. I haven't been having any free time at all. Maybe I can try it next month.

@GM-Script-Writer-62850
Copy link
Owner

Tried to use it today and found a rather large bug, i am pretty sure it it ready to go now (fingers crossed)
7a8c538
also added support for multiple copies to be printed (min = 1 and max = 100)

@GM-Script-Writer-62850
Copy link
Owner

Added another update, you will need to rescan for printers after updating

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants