Print Page | Close Window

DAOpenFile fails with error 409

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=2212
Printed Date: 25 Apr 25 at 11:19AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: DAOpenFile fails with error 409
Posted By: cscooper
Subject: DAOpenFile fails with error 409
Date Posted: 06 Apr 12 at 4:41PM
I can open many PDF files using DAOpenFile, but I've got one PDF file for which DAOpenFile fails with error 409 = "Invalid file structure, file is damaged".  It's definitely a strange PDF, but the previewer inside the system File Open dialog is able to display it, and it opens just fine inside Adobe Reader.

BTW, I'm running the latest 8.14 DLL (just downloaded it yesterday).

Adobe Reader says it's PDF version 1.4, it's SECURED, and it's got forms.

Is 409 the error that gets returned when you have a password-protected PDF file but didn't specify the password?

Is there any way to open the file "read-only" or similar (so the password protection doesn't matter)?

Thanks,
Chris




Replies:
Posted By: Ingo
Date Posted: 06 Apr 12 at 7:45PM
Hi Chris!

It would be good to upload the file anywhere on a free webhosting service so that we're able to test it by our own.
There are two optional passwords for pdf-documents:
One is the main password for a (very) basically protection of the made pdf-settings. This password is nearly unvisible for normal readers of the documents 'cause there's nothing to do.
The other (seldom used) password is the user-password. You need to enter it after loading but before reading the document.
An unknown main password doesn't matter ... you can read the document without problems.
An unknown user password prevent from reading or extracting the content.
A read only modus won't help you reading the file 'cause a pdf-reader has to interpret the content and for this internally objects and structures has to be built in the background and this isn't possible with your one pdf-document.
Please keep in mind that QuickPDF is a small but comprehensive pdf-library with only few mbytes. An adobe reader installation comes along with an over 100 mbytes installation with many dlls so often it's possible to overact some errors in a pdf - for the small QuickPDF sometimes not.

Cheers and welcome here,
Ingo




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