Found the problem...iTextSharp implements events in a 'unusual/non-standard 
way' which Powershell does not work with.  Powershell expects an event to be 
declared using the .NET standard of using "public delegate" and "public event" 
( see http://msdn.microsoft.com/en-us/library/aa645739(v=vs.71).aspx Visual 
Studio .Net Events Tutorial ).

The only solutions I can see are:

1)      Asking the iTextSharp developers to re-write their code ( most likely 
will not happen as the way it is written works for everyone except people who 
want/need to use PowerShell  ).

2)      Figuring out if a shell or wrapper can be written in C# to map from the 
way iTextSharp handles events to the way .Net/Powershell wants to handle events.

Anyone know C# well enough to attempt # 2? Or give me pointers on doing it 
myself ( I am just getting started in C#, have been programming in other 
languages for years )?

Tim Bernhardson
Technical Services Manager
Sun-Maid Growers of California
7273 Murray Drive, Ste 18
Stockton, CA 95210

Direct Telephone: 1-209-472-8547
Facsimile: 1-209-482-8448
E-Mail: tbern...@sunmaid.com<mailto:tbern...@sunmaid.com>
Web: www.sunmaid.com<http://www.sunmaid.com>

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to