Solved

Java and PDF

Posted on 2004-09-07
10
371 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
ID: 12002029
What part of that API do you think can limit the number of print copies?
0
 
LVL 92

Expert Comment

by:objects
ID: 12002060
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
ID: 12002074
be safer to run pjx (or whatever) on the server, and return an image to the client for printing.
0
 

Author Comment

by:AmyL
ID: 12002104
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
ID: 12002131
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:AmyL
ID: 12002160
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
ID: 12002162
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 250 total points
ID: 12002187
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 12002206
8-)
0
 
LVL 92

Expert Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

911 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

21 Experts available now in Live!

Get 1:1 Help Now