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
posted
0
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.
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