Solved

Java and PDF

Posted on 2004-09-07
10
373 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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
 

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java Server Faces parameter pass? 6 50
web application structure 18 77
check java version using powershell 13 93
Unhandled exception type Exception 18 31
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

777 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