Link to home
Start Free TrialLog in
Avatar of AmyL
AmyL

asked on

Java and PDF

Does anyone have any experience with PJX? I am trying to enforce once-only printing of a PDF, and so far PJX looks like my most promising avenue, however I can't seem to get any further info on it.

The PDF is located on a server and will be available via a web application, however it is imperative that it only be allowed to print once. It doesn't need to be downloadable. Any good leads would be appreciated.

Thanks!
Amy
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

What part of that API do you think can limit the number of print copies?
For an applet to be able to print it, would mean the applet would need to download it.
So it would still be accessible if people really wanted to get to it.
be safer to run pjx (or whatever) on the server, and return an image to the client for printing.
Avatar of AmyL
AmyL

ASKER

Also, this doesn't need to be bulletproof, as the user could simply print one out and make several copies on a copy machine. It just needs to make it hard to print multiples.

I know this is possible to do, but have gotten nowhere with research.
Your best bet is to stream it directly to the printer without making it into a file and invoking a print dialog. For that you need to be able to locate the printer programmatically, without user interaction
Avatar of AmyL

ASKER

I can get the printer progammatically...

Can you give me just a little more direction? This sounds like what I'm looking for.

I don't need the whole solution, just a good lead.

Thanks!
Amy
SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
8-)
Let me know if you have any further questions or get stuck :)