Still need the pdf. Put it somewhere (https://www.wetransfer.com or something like that).
Paulo On Sun, Mar 11, 2012 at 5:57 PM, Al Jones <[email protected]> wrote: > > Well, I told you what I thought might be of help at the moment :) and it > appears to be any of the pdf's I have in hand, but here's the immediate > culprit (not attached, 25 mb file, got kicked back as too large). > Thanks //al > Stack trace: > > System.NullReferenceException was unhandled > Message="Object reference not set to an instance of an object." > Source="itextsharp" > StackTrace: > at > iTextSharp.text.pdf.PdfReader.PageRefs.IteratePages(PRIndirectReference > rpage) > at > iTextSharp.text.pdf.PdfReader.PageRefs.IteratePages(PRIndirectReference > rpage) > at > iTextSharp.text.pdf.PdfReader.PageRefs.IteratePages(PRIndirectReference > rpage) > at > iTextSharp.text.pdf.PdfReader.PageRefs.IteratePages(PRIndirectReference > rpage) > at iTextSharp.text.pdf.PdfReader.PageRefs.ReadPages() > at iTextSharp.text.pdf.PdfReader.PageRefs..ctor(PdfReader reader) > at iTextSharp.text.pdf.PdfReader.ReadPages() > at iTextSharp.text.pdf.PdfReader.ReadPdf() > at iTextSharp.text.pdf.PdfReader..ctor(String filename, Byte[] > ownerPassword) > at iTextSharp.text.pdf.PdfReader..ctor(String filename) > at BookOrg.BookOrgClass.doit() in C:\Users\Al\Documents\Visual Studio > 2005\Projects\BookOrg\BookOrg\BookOrg.vb:line 240 > at BookOrg.BookOrgClass.btnStart_Click(Object sender, EventArgs e) in > C:\Users\Al\Documents\Visual Studio > 2005\Projects\BookOrg\BookOrg\BookOrg.vb:line 161 > at System.Windows.Forms.Control.OnClick(EventArgs e) > at System.Windows.Forms.Button.OnClick(EventArgs e) > at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) > at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons > button, Int32 clicks) > at System.Windows.Forms.Control.WndProc(Message& m) > at System.Windows.Forms.ButtonBase.WndProc(Message& m) > at System.Windows.Forms.Button.WndProc(Message& m) > at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& > msg) > at > System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.Unsaf > eNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, > Int32 reason, Int32 pvLoopData) > at > System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 > reason, ApplicationContext context) > at > System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, > ApplicationContext context) > at System.Windows.Forms.Application.Run(ApplicationContext context) > at > Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun( > ) > at > Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoAppl > icationModel() > at > Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(St > ring[] commandLine) > at BookOrg.My.MyApplication.Main(String[] Args) in > 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81 > at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] > args) > at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence > assemblySecurity, String[] args) > at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() > at System.Threading.ThreadHelper.ThreadStart_Context(Object state) > at System.Threading.ExecutionContext.Run(ExecutionContext > executionContext, ContextCallback callback, Object state) > at System.Threading.ThreadHelper.ThreadStart() > >> -----Original Message----- >> From: Paulo Soares [mailto:[email protected]] >> Sent: Sunday, March 11, 2012 12:12 >> To: Post all your questions about iText here >> Subject: Re: [iText-questions] itext quandary >> >> You are not telling us much either. We need the complete stack trace >> and the PDF. >> >> Paulo >> >> >> On Sun, Mar 11, 2012 at 3:41 PM, Al Jones <[email protected]> wrote: >> > I thought this would be fairly direct given the dll, but obviously not. >> I'm >> > trying to extract the author and title from several pdf files. I know >> that >> > some may have trash, but I'm willing to put up with whatever I can get. >> > However, I'm not even getting there and would appreciate some ideas. >> The >> > following is a part of a shareware program I'm working on, written in VB >> > 2005 and it aborts on the first call to dimension the pdfreader. At >> this >> > point strfile contains "G:\abBooks\Derren Brown - Absolute Magic.pdf" >> > >> > itextsharp.dll ver 5.2.0.0 has been added as a reference and points to >> the >> > itextsharp.dll which is resident in my project directory. >> > >> > The error being returned is: >> > >> > An unhandled exception of type >> 'System.NullReferenceException' >> > occurred in itextsharp.dll. >> > >> > Additional information: Object reference not set to an >> instance >> > of an object. >> > >> > >> > >> > If FileExt = ".pdf" Then >> > >> > Dim reader As New PdfReader(strFile) >> > >> > Dim infodict As New Dictionary(Of String, String) >> > >> > infodict = reader.Info >> > >> > Try >> > >> > If strAuthors = Nothing Then strAuthors = >> > FindAuthors(infodict("Author")) >> > >> > Catch >> > >> > PrintLine(intBOLog, "Missing/invalid PDF author: " & >> > tempFile) >> > >> > End Try >> > >> > Try >> > >> > If strAuthors = Nothing Then strTitle = >> > infodict("Title") >> > >> > Catch >> > >> > PrintLine(intBOLog, "Missing/invalid PDF Title: " & >> > tempFile) >> > >> > End Try >> > >> > reader.Close() >> > >> > reader = Nothing >> > >> > infodict = Nothing >> > >> > End If >> > >> > >> > >> > I really hate errors that don't tell me anything and this one tells *me* >> > nothing. Can anyone provide some guidance, please? >> > >> > //al >> >> -------------------------------------------------------------------------- >> ---- >> Virtualization & Cloud Management Using Capacity Planning >> Cloud computing makes use of virtualization - but cloud computing >> also focuses on allowing computing to be delivered as a service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> _______________________________________________ >> 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 > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > 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 ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ 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
