This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Print Directly from JSP

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I'm trying to have a report printed out from a PDF attatchment that I have made with iText in a Struts2 action. But apparently, that won't work because the printing control must come from the website itself or else, I wouldn't be able to keep track of what document numbers have been printed or how many of the reports have been printed. Is it possible that I could print the PDF file I made from iText and instead of having it attached or opened in Adobe Acrobat Reader to be printed directly? Or could I control the printer to have it printed at once instead?

Thanks in advance.
 
Marshal
Posts: 67293
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you taking about automatically controlling a printer at the client location? Of course not. Think about the security implications. Would you want any web site you visit to be able to start printing out ads on your printer?

All you can do is to let the user download the file and decide what to do with it.
 
Monica Salvador
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not like that.. I just want to keep track of the transactions, besides, the website is not a real website anyway. It's some company's website and it would run on a VPN. The thing is, if I don't keep track of the printing, money would be lost and lots of it. Seriously.
 
Bear Bibeault
Marshal
Posts: 67293
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need to seek some technology other than pure HTTP. I'm not sure, but perhaps a privileged applet might be able to exert the control you seek. At least it's a direction to investigate.
 
Proudly marching to the beat of a different kettle of fish... while reading this tiny ad
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!