IntelliJ Java IDE
The moose likes Other Open Source Projects and the fly likes iText 5 Replacement for Class com.lowagie.tools.Executable Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "iText 5 Replacement for Class com.lowagie.tools.Executable" Watch "iText 5 Replacement for Class com.lowagie.tools.Executable" New topic
Author

iText 5 Replacement for Class com.lowagie.tools.Executable

Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1109

Dear Reader,
I have legacy code which invokes method printDocumentSilent of class com.lowagie.tools.Executable.
I wish to upgrade the iText library we are using.
We currently have itext-2.0.4.jar
I wish to replace this with itextpdf-5.1.2.jar
What methods of what classes in iText 5 replace method printDocumentSilent of class com.lowagie.tools.Executable ?
Do I need to download another JAR file that contains the replacement class, or classes ? If so, what is it called and from where can it be downloaded ?

Thank you,
Avi.
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2329
This has nothing to do with your problem, but are you aware of the licensing change that came into effect for iText 5? You will most likely have to buy a license to use it for business purposes.
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1109

Tim,
Thanks for the heads up. The application is entirely in-house and used only within our organization.
I resolved the problem by using the java class java.lang.Runtime to execute the following command:

AcroRd32 /t {PDF file to print} {printer name}

Note that this command launches Acrobat Reader, opens the supplied file and immediately prints the file.

Cheers,
Avi.
 
 
subject: iText 5 Replacement for Class com.lowagie.tools.Executable
 
Threads others viewed
Question whit (nameClass.class)
My head is about to explode!
Questions on a segment of java code
Interface and array
packages in applets
developer file tools