Solved

Java and PDF

Posted on 2004-09-07
10
370 Views
Last Modified: 2008-02-26
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
0
Comment
Question by:AmyL
  • 4
  • 4
  • 2
10 Comments
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
What part of that API do you think can limit the number of print copies?
0
 
LVL 92

Expert Comment

by:objects
Comment Utility
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.
0
 
LVL 92

Expert Comment

by:objects
Comment Utility
be safer to run pjx (or whatever) on the server, and return an image to the client for printing.
0
 

Author Comment

by:AmyL
Comment Utility
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.
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
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
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:AmyL
Comment Utility
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
0
 
LVL 92

Assisted Solution

by:objects
objects earned 250 total points
Comment Utility
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 250 total points
Comment Utility
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
8-)
0
 
LVL 92

Expert Comment

by:objects
Comment Utility
Let me know if you have any further questions or get stuck :)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
array11 challenge 16 50
wordappend challenge 8 83
Modeling a class in java 5 31
what is a "java.lang.System Property"   ? 20 34
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now