Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
Exception created with message '' |
Post Reply |
Author | |
waynefulcher
Senior Member Joined: 23 Jun 08 Location: United States Status: Offline Points: 99 |
Post Options
Thanks(0)
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.
|
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
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.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store