Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 30 06:41
    RyanReichenberg closed #14
  • Aug 30 06:40
    RyanReichenberg commented #14
  • Aug 30 06:39
    RyanReichenberg unlabeled #14
  • Aug 30 06:38
    RyanReichenberg labeled #14
  • Aug 28 21:34
    ksaylor11 opened #14
  • Aug 23 22:30

    alecthegeek on master

    Updated for user aliases and ot… (compare)

  • Aug 21 07:36

    alecthegeek on master

    Add support for user-source.upd… (compare)

  • Aug 21 06:24

    alecthegeek on master

    Added support foruser-source.up… (compare)

  • Jul 26 05:44

    alecthegeek on master

    Added a new example for PaperCu… Forgot to apply settings Merge branch 'master' of github… (compare)

  • Jul 01 07:33

    alecthegeek on master

    Added some refinements after in… Merge pull request #13 from Pap… (compare)

  • Jul 01 07:33
    alecthegeek closed #13
  • Jul 01 07:33
    alecthegeek opened #13
  • Jul 01 07:32

    alecthegeek on internal_review

    Added some refinements after in… (compare)

  • Jun 29 08:02

    alecthegeek on master

    Added example for listing expir… Merge pull request #12 from Pap… (compare)

  • Jun 29 08:02
    alecthegeek closed #12
  • Jun 28 02:33
    diptopratyaksa assigned #12
  • Jun 28 02:33
    diptopratyaksa review_requested #12
  • Jun 28 02:33
    diptopratyaksa opened #12
  • Jun 28 02:33
    diptopratyaksa review_requested #12
  • Jun 28 02:25

    diptopratyaksa on internal_review

    Added example for listing expir… (compare)

Christian Serrano
@christian.serrano_gitlab
Oh thanks
am a mulesoft integration consultant in australia
Alec Clews
@alecthegeek
Melbourne?
Christian Serrano
@christian.serrano_gitlab
yes
they have a requirement to send print jobs to paper cut via api
is it actually possible?
I read the public webservices api, but am not sure if sending print jobs is available
Alec Clews
@alecthegeek

We don't have an API to send jobs, but there are a couple of ways to do it.

The easiest is to submit the job via LPR procotocol. If you are using Windows we do supply an LPR print server to support this (MacOS and Linux servers already have this)

I actually listed all the options on our Google Group

https://groups.google.com/d/msg/papercut-webservices-api/4rxmZBAdszA/Ru7xZWd2BgAJ

Christian Serrano
@christian.serrano_gitlab
ok let me have a look first
thank you very much for the immediate response, was browsing for some time now for help, and am glad I came across you char
chat
Alec Clews
@alecthegeek

The other options are

  1. Submit the job using the email to print feature in PaperCut with the correct from email address for the user
  2. Add a PJL header to the print spool (which has worked well for some people.

Links to more details in the Google Group

Christian Serrano
@christian.serrano_gitlab
i applied on the google group, its pending approval
can you be able to approve me please, thanks a lot
what a PJL header? sorry am new to paper cut
Alec Clews
@alecthegeek

In the majority of print spool files the actual print content is described by a PDL (Page Description Language) such as Postscript or PCL/6.

That is then wrapped in a PJL header (Print Job Language) which describes job attributes such as number of copies, paper trays to use etc.

Christian Serrano
@christian.serrano_gitlab
ok thanks
so for the email to print feature, how does it work, where is the email sent, and the print content is it sort of an attachment to the email?
Alec Clews
@alecthegeek
I've approved your group membership -- you can find all the links you need from the message link above
Christian Serrano
@christian.serrano_gitlab
thanks alec for the help
Alec Clews
@alecthegeek
No dramas. Let me know how you get on
We provide free support for developer projects
Christian Serrano
@christian.serrano_gitlab
that's excellent, do you have actual customers who required exposing a REST API and submit the print jobs via your options?
Alec Clews
@alecthegeek

We have had a number of requests to provide this API, but given the existing methods we have struggled to find enough room to work on it.

Recently the integration team became a proper team (i.e more than just me) so we have started to attack our backlog. However to be honest we would not get around to job submission for a few months yet. You can help by sending a feature request to integration-dev-support@papecut.com. "The squeaky wheel gets the most oil"

Christian Serrano
@christian.serrano_gitlab
thanks mate for that
Alec Clews
@alecthegeek
Anytime
AaronFalzon
@AaronFalzon
Hey @alecthegeek is there any api call that shows the last card number that was swiped on a device? We are looking at a customisation for a client that wants to register several cards to a user (into an external SQL Db) and i was considering a little web interface that they could load on an ipad / tablet select a user then swipe the cards on the copier. (basically just saving them having to get another card reader for a PC)
Alec Clews
@alecthegeek
I'm afraid not @AaronFalzon -- Have you considered card self association?
Jonathan Bennetts
@Joffcom

@AaronFalzon I have 3 thoughts that might help you if you didn’t want to take the self association route. PaperCut will show under Logs > Application any failed card reads and the devices name so you could try...

1) parse the server.log files and extract the records from there
2) query the database and take the value from tbl_application_log
3) scrape the logs > application log page to get the data you want

AaronFalzon
@AaronFalzon
@alecthegeek the self registration isn't an option due papercut only nativally supporting 2 card numbers and only one for self registering, (I also use another system that allows users to register several cards at the device.) @Joffcom that might work. i am going to give the customer an option of just getting another card reader and having a terminal at the front desk or something that can register / manage cards, then use a web GUI to administer an SQL DB containing all the card numbers.
Jonathan Bennetts
@Joffcom

@AaronFalzon that is a good plan, we found during testing that a Pi and touchscreen will work with most common readers so the Elatec and RFIdeas ones.

Could be a nice low cost solution for you if you are into that sort of thing, I would love to know what you end up doing and I would imagine @alecthegeek would as well

AaronFalzon
@AaronFalzon
Hey guys, I have finally had a chance to look a little further into this and have a few bit of the puzzle working now just trying to see exactly which way i want to go with it (or if at all!) one thing we thought of doing was create a widget on the PaperCut Admin Dashboard however, it looks like the entire web server is embedded in the Java Application and therefore we cannot use PaperCut's Web server, is there something i am missing? i would love to add PHP to the current webserver or do i need to roll my own webserver/PHP?
Jonathan Bennetts
@Joffcom

Hi @AaronFalzon,

Jetty does support PHP through fastcgi but it isn’t something I would try doing as PaperCut manages the service and any updates could wipe out your changes, It could break the application as well.

You could run IIS, Apache, nginx or another embedded web server on the same server but you need to avoid using the same ports.

What we do depending on what we are making is...

Use mostly JavaScript and place the folders under [install_path]/server/custom/web which works great for small quick projects and will load everything from Jetty.

For larger projects that use the API we use a Go web service or if the customer has one already whatever web server is available, We find that most people have an IIS application hiding somewhere so we create a new site on that.

Hopefully that helps 🙂

Alec Clews
@alecthegeek
Sorry -- I'm on holiday until the end of Sept
AaronFalzon
@AaronFalzon
hi @Joffcom are you suggesting the Jetty server that is embedded in PaperCut already supports PHP?
I am not really keen to use an external Web server for a few reasons but if i must then we will look at that as an option.
Jonathan Bennetts
@Joffcom

Morning @AaronFalzon it was more that Jetty can support php through fast cgi but to enable it you would need to do some questionable changes that would likely lead to an unsupported installation.

Looking back at it while accurate I probably should have just said it doesn’t do it so you didn’t get the wrong idea... sorry about that.

If it does need to be PHP it will likely be easier and quicker to set up another web service on the same server or if it is all internal only you could look at just using the development server PHP comes with.

I did have another think about your problem and there is another approach you could take... if you enable the external card lookup feature in PaperCut so it checks another database for the numbers and use that with self registration you could put PaperCut onto SQL or similar then use a trigger on the table to copy the username and cardNumber to another database getting around the one field for registration

AaronFalzon
@AaronFalzon
Thanks @Joffcom all good! I thought that was what you were meaning regarding the PHP but was quietly hoping you were going to tell me there is some secret thing i can do in the PaperCut config to make jetty play my game :)
As for the multiple cards DB we have played with that a little and while i can see it working for some it might not really be what we want to do. I have 3 different customers all with similar yet different requests, the first I have resolved by adding 10 accounts to their AD and using job delegation, the second I am getting their remote workers call their IT Helpdesk, swipe their card on the brother MFD then the helpdesk operator copies the card number from the log file and updates the user's card number. the third is doing a combination of the above.
The approach I am hoping is a bit of a GUI for the above, user calls helpdesk who will launch a website (or user could possibly have access to this website), user swipes card, if card is unknown it can be mapped to a user's Primary or Secondary ID.
Jonathan Bennetts
@Joffcom

If you was just going for the user calling the helpdesk you could just give helpdesk access to the admin interface with restricted permissions and they can do it all through there. The card number appears in the admin interface under Logs > App log for ones unknown to the system.

There could be something else I am missing but it might be easier and quicker to use what is already there.

I do like the idea of a little registration page though that could be opened on a mobile device. So user logs into the webpage, picks the device from a list and then swipes the card and the query on the backend only looks for that device from the device of logging in and they can just select the number and add it to the account

Bakuryu
@Bakuryu
Instructions given for the implementing with C# include this step:
"Step 2)
Copy the latest version of the .NET XML-RPC DLL from
http://www.xml-rpc.net. (file named CookComputing.XmlRpcV2.dll).
"
Problem is that url no longer works. I don't know of a trusted source to get such a file and its concerning that documentation of such implementation is so poorly maintained.
Jonathan Bennetts
@Joffcom
I can send it to you if you want @Bakuryu, It looks like the website is still there but there is a configuration issue
You can also download the dll from nuget, I am sure @alecthegeek will get the documentation link updated when he is back from his holiday.
Bakuryu
@Bakuryu
I managed to get it, but the bigger issue is that I am trying to use with in a MVC project and I don't know if it will work right that way?
Jonathan Bennetts
@Joffcom
It should be fine in an MVC project, the amount of extra work required would depend on how closely you want to follow the MVC pattern
Bakuryu
@Bakuryu
Is there an easy way to make it work..
Jonathan Bennetts
@Joffcom
The easy way is to just call the server command proxy from your controller
Bakuryu
@Bakuryu
How is there no command for getting a queue of users pending jobs or releasing/deleting them?
Jonathan Bennetts
@Joffcom
That is a fairly advanced operation if you wanted to do that it would be a good plan to talk to your reseller or ASC so they can talk about the release station API options which isn’t public with you.