Hi Everyone,
I just tried to upgrade from v4.0.5 to v5.0.5 if iTextSharp and
discovered to my horror that formerly public property page is now
downgraded to an internal visibility. This would be OK, but I had a
couple bits of test code that said things like this:
trueFieldsCount += acroField.page.Count;
The change is for the better, but I need to know how many entries are in
this list. I can imagine something crude and vulgar like this:
int acroFieldPageCount = 0;
try
{
for(int i=0;i<int.MaxValue;++i)
{
acroField.GetPage(i);
}
}
catch(...)
{
acroFieldPageCount = i;
}
PLEASE STOP ME. This is an abomination. Is there another way?
Cordially,
steve
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
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