Print Page | Close Window

Exception created with message ''

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1897
Printed Date: 12 Dec 25 at 10:19AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Exception created with message ''
Posted By: waynefulcher
Subject: Exception created with message ''
Date Posted: 21 Jul 11 at 9:54PM
I have a small application that simply loads a pdf and reads a text file and updates the pdf field values with values from the text file and saves the pdf back. I have a pdf that a customer created that is causing my application to produce the error message:
"Project <MyProject> raised exception class Exception with message ''. "
when I call the .LoadFromFile() method.
I am using Delphi 7 and I was using QuickPDF 7.19, when I got this error I decided to upgrade to 7.26 and now I still get the same error. All I do is create my QuickPDF component, call the unlock() method which is passing validation OK, then I call the .LoadFromFile() method. Once this error occurs my application is hosed even though I wrapped it in a try..except. In fact it does not even call the logic in my exception block and you only know there is an error if running in the Delphi IDE. I really think it must be something specific to this PDF because this app works great with other pdfs.
I am not sure how to get support for this issue. I would need to send the pdf file to someone who could try to see what in the pdf is causing QuickPDF to crash.



Replies:
Posted By: AndrewC
Date Posted: 22 Jul 11 at 9:00AM
Make sure you are checking the return value from the LoadFromFile call.  If it doesn't return 1 then the file has not been correctly loaded.  

In this case it seems the PDF is malformed.  A malformed PDF is a PDF that has errors and does not conform to the PDF specification.  Unfortunately Adobe Acrobat fixes these errors and acts as if nothing is wrong with the file.

If you can upload the file or created a support case via 

   http://www.quickpdflibrary.com/support/support-query.php

then we can check the PDF to see what errors it contains.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk