we are investigating the use of iText to generate pdf receipts.
When we incorporate the iText modules in our delivery service code the IDE (IntelliJ IDEA) recognises the import statements and provides intellisense and so on.
However, when we build the service for deployment we get a type-check error saying that 'cannot resolve the class xxxx'.
We are using iText latest, v5.5.12
If we use the same code built with legacy Groovy code the service works (the iText functions create the desired pdf output), so it seems to be only a problem with Fluent, or our IDE setup.
Any ideas would be appreciated.
back to the future.
I'm revisiting this issue as we have a need to render pdf receipts using iText, instead of the OOTB receipt.
I have written a 'Receipt Render' service, but receive a type-check error.
I have installed iText-5.5.8 in my IDE (IntelliJ IDEA) to match the current version in TM. IDEA recognises the iText package an uses intellisense, and imports the iText classes and so on.
However, I still get the type check error: "unable to resolve class com.itextpdf.text.PageSize", and others.
The 3rd Party Libraries refers to the iText package as iText-5.5.8, but the classes that are imported when using the IDE refer to itextpdf.
We have another 'Groovy Service' (Legacy, not Fluent) that uses iText to convert html to pdf; it is in TM and working.
However, I am unable to get the Fluent Render Service to pass type-check.
Any ideas would eb appreciated.
The version of the 3rd party libraries bundled in Transact Manager is listed in the Transact Services Guide. For example, in my TM v5.1.6 instance, the bundled iText version is 5.5.8.
You can find the services guide under the Services menu:
Hope this helps somewhat,