Posted: 10 Apr 2017 11:09 EDT Last activity: 6 Nov 2018 20:02 EST
Using Interfaces in .NET Components - iTextSharp
I have a question about Interfaces when trying to use iTextSharp (a .NET PDF Library). I have been able to add a reference to it and Choose Items... for the toolbox in Pega Robotics after I edited AssemblyInfo.cs and changed the false to true as in [assembly: ComVisibleAttribute(true)]. But I can't seem to "Add Constructor for Type" for Interfaces declared in itextsharp.dll.
For example, when I click on "Add Constructor for Type" to iTextSharp.text.pdf.parser, I search in vain for ITextExtractionStrategy even though I know it is there because I can see it in the Solution Explorer for iTextSharp which I have easy access to because I had to recompile it as stated previously.
I can get around this by creating a relatively simple script, but really prefer to avoid scripts when I can. Is there some other means by which I can create and use an Interface within Pega Robotics?
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
When using a third party assembly, it is probably best to use a script when possible. While you won't be able to get support on your specific script from the Pega support team, you are certain to find a wealth of knowledge on CodeProject or other sources on the web since the code will be operating with a third party assembly. For iTextSharp, I have used it in the past by creating a custom component or via a script.
My organization put in a service request, but I haven't gotten my hands on a release which contains the new PDF support. I'm very interested to see what you have come up with particularly after getting more familiar with iTextSharp. Working with PDFs is bringing back memories of my early days in programming. I did a lot of work with dot matrix plotters in the 1970's and 1980's.