Looks like you're asking VB syntax and variable scope questions. I don't see any iTextSharp question there.
Paulo On Mon, Mar 19, 2012 at 4:50 PM, Al Jones <[email protected]> wrote: > In a Visual Basic 2005 program which scan several hundred PDF's, I'm having > problems trying to trap those situations where I have an invalid pdf. > > Try > Dim reader As New PdfReader(strFile) > Catch > PrintLine(intBOLog, "Failed to open", strFile) > Exit For > End Try > results in any further attempt to use reader as "Name 'reader' is not > declared'" > > outside the try/catch, attempting to Dim reader As New PdfReader(strFile) > results in various exceptions, invalidpdfexception, for example. > > Any ideas on how to handle bad pdf cleanly?? > //al > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > iText-questions mailing list > [email protected] > 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 ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ iText-questions mailing list [email protected] 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
